Classdesc

Feature format for reading and writing data in the GeoJSON format.

Param: opt_options

Options.

Api

stable

Hierarchy

Constructors

  • Parameters

    Returns GeoJSON

    Classdesc

    Feature format for reading and writing data in the GeoJSON format.

    Api

    stable

Methods

  • Read a feature from a GeoJSON Feature source. Only works for Feature, use readFeatures to read FeatureCollection source.

    Parameters

    • source: string | Object | Node | Document

      Source.

    • Optional opt_options: ReadOptions

      Read options.

    Returns ol.Feature

    Feature.

    Function

    Api

    stable

  • Read all features from a GeoJSON source. Works with both Feature and FeatureCollection sources.

    Parameters

    • source: string | Object | Node | Document

      Source.

    • Optional opt_options: ReadOptions

      Read options.

    Returns ol.Feature[]

    Features.

    Function

    Api

    stable

  • Read a geometry from a GeoJSON source.

    Parameters

    • source: string | Object | Node | Document

      Source.

    • Optional opt_options: ReadOptions

      Read options.

    Returns ol.geom.Geometry

    Geometry.

    Function

    Api

    stable

  • Read the projection from a GeoJSON source.

    Parameters

    • source: string | Object | Node | Document

      Source.

    Returns Projection

    Projection.

    Function

    Api

    stable

  • Encode a feature as a GeoJSON Feature string.

    Parameters

    Returns string

    GeoJSON.

    Function

    Api

    stable

  • Encode a feature as a GeoJSON Feature object.

    Parameters

    Returns JSON

    Object.

    Api

    stable

  • Encode an array of features as GeoJSON.

    Parameters

    Returns string

    GeoJSON.

    Function

    Api

    stable

  • Encode an array of features as a GeoJSON object.

    Parameters

    Returns JSON

    GeoJSON Object.

    Api

    stable

  • Encode a geometry as a GeoJSON string.

    Parameters

    Returns string

    GeoJSON.

    Function

    Api

    stable

  • Encode a geometry as a GeoJSON object.

    Parameters

    Returns JSON

    Object.

    Api

    stable

Generated using TypeDoc