Search Results for

    Show / Hide Table of Contents

    Class NpgsqlGeoJSONExtensions

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

    Inheritance
    object
    NpgsqlGeoJSONExtensions
    Namespace: Npgsql
    Assembly: Npgsql.GeoJSON.dll
    Syntax
    public static class NpgsqlGeoJSONExtensions

    Methods

    | Improve this Doc View Source

    UseGeoJson(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
    | Improve this Doc View Source

    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
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team