Search Results for

    Show / Hide Table of Contents

    Class NpgsqlNetTopologySuiteExtensions

    Extension allowing adding the NetTopologySuite plugin to an Npgsql type mapper.

    Inheritance
    Object
    NpgsqlNetTopologySuiteExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Npgsql
    Assembly: Npgsql.NetTopologySuite.dll
    Syntax
    public static class NpgsqlNetTopologySuiteExtensions

    Methods

    UseNetTopologySuite(INpgsqlTypeMapper, Nullable<CoordinateSequenceFactory>, Nullable<PrecisionModel>, Ordinates, Boolean)

    Sets up NetTopologySuite mappings for the PostGIS types.

    Declaration
    public static INpgsqlTypeMapper UseNetTopologySuite(this INpgsqlTypeMapper mapper, CoordinateSequenceFactory? coordinateSequenceFactory = null, PrecisionModel? precisionModel = null, Ordinates handleOrdinates = null, bool geographyAsDefault = false)
    Parameters
    Type Name Description
    INpgsqlTypeMapper mapper

    The type mapper to set up (global or connection-specific).

    Nullable<CoordinateSequenceFactory> coordinateSequenceFactory

    The factory which knows how to build a particular implementation of ICoordinateSequence from an array of Coordinates.

    Nullable<PrecisionModel> precisionModel

    Specifies the grid of allowable points.

    Ordinates handleOrdinates

    Specifies the ordinates which will be handled. Not specified ordinates will be ignored. If GeoAPI.Geometries.Ordiantes.None is specified, an actual value will be taken from the GeoAPI.Geometries.ICoordinateSequenceFactory.Ordinates property of coordinateSequenceFactory.

    Boolean geographyAsDefault

    Specifies that the geography type is used for mapping by default.

    Returns
    Type Description
    INpgsqlTypeMapper
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team