Class NpgsqlNetTopologySuiteExtensions
Extension allowing adding the NetTopologySuite plugin to an Npgsql type mapper.
Namespace: Npgsql
Assembly: Npgsql.NetTopologySuite.dll
Syntax
public static class NpgsqlNetTopologySuiteExtensions
Methods
| Improve this Doc View SourceUseNetTopologySuite(INpgsqlTypeMapper, CoordinateSequenceFactory?, PrecisionModel?, Ordinates, bool)
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). |
CoordinateSequenceFactory? | coordinateSequenceFactory | The factory which knows how to build a particular implementation of ICoordinateSequence from an array of Coordinates. |
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 |
bool | geographyAsDefault | Specifies that the geography type is used for mapping by default. |
Returns
Type | Description |
---|---|
INpgsqlTypeMapper |