Search Results for

    Show / Hide Table of Contents

    Class NpgsqlGeoJSONExtensions

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

    Inheritance
    Object
    NpgsqlGeoJSONExtensions
    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.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
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team