Class NpgsqlGeoJSONExtensions
Extension allowing adding the GeoJSON plugin to an Npgsql type mapper.
Namespace: Npgsql
Assembly: Npgsql.GeoJSON.dll
Syntax
public static class NpgsqlGeoJSONExtensions
Methods
| Improve this Doc View SourceUseGeoJson(INpgsqlTypeMapper, CrsMap, GeoJSONOptions, bool)
Sets up GeoJSON mappings for the PostGIS types.
Declaration
public static INpgsqlTypeMapper UseGeoJson(this INpgsqlTypeMapper mapper, CrsMap crsMap, GeoJSONOptions options = default, bool geographyAsDefault = false)
Parameters
Type | Name | Description |
---|---|---|
INpgsqlTypeMapper | mapper | The type mapper to set up (global or connection-specific) |
CrsMap | crsMap | A custom crs map that might contain more or less entries than the default well-known crs map. |
GeoJSONOptions | options | Options to use when constructing objects. |
bool | geographyAsDefault | Specifies that the geography type is used for mapping by default. |
Returns
Type | Description |
---|---|
INpgsqlTypeMapper |
UseGeoJson(INpgsqlTypeMapper, GeoJSONOptions, bool)
Sets up GeoJSON mappings for the PostGIS types.
Declaration
public static INpgsqlTypeMapper UseGeoJson(this INpgsqlTypeMapper mapper, GeoJSONOptions options = default, 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. |
bool | geographyAsDefault | Specifies that the geography type is used for mapping by default. |
Returns
Type | Description |
---|---|
INpgsqlTypeMapper |