Class NpgsqlGeoJSONExtensions
Extension allowing adding the GeoJSON plugin to an Npgsql type mapper.
Inherited Members
Namespace: Npgsql
Assembly: Npgsql.GeoJSON.dll
Syntax
public static class NpgsqlGeoJSONExtensions
Methods
UseGeoJson(INpgsqlTypeMapper, GeoJSONOptions, Boolean)
Sets up GeoJSON mappings for the PostGIS types.
Declaration
public static INpgsqlTypeMapper UseGeoJson(this INpgsqlTypeMapper mapper, GeoJSONOptions options = GeoJSONOptions.None, bool geographyAsDefault = false)
Parameters
Type | Name | Description |
---|---|---|
INpgsqlTypeMapper | mapper | The type mapper to set up (global or connection-specific) |
GeoJSONOptions | options | Options to use when constructing objects. |
Boolean | geographyAsDefault | Specifies that the geography type is used for mapping by default. |
Returns
Type | Description |
---|---|
INpgsqlTypeMapper |