geopf-extensions-openlayers
    Preparing search index...

    Class GeoJSON

    Hierarchy

    • GeoJSON
      • GeoJSON
    Index
    • Parameters

      • options: { defaultStyle?: any; extensions?: any }

        Options

        • OptionaldefaultStyle?: any

          Styles by default

        • Optionalextensions?: any

          Add properties to file root

      Returns GeoJSON

    dataProjection: Projection | undefined
    defaultFeatureProjection: Projection | undefined
    featureClass: typeof Feature
    options: { defaultStyle?: any; extensions?: any }
    source: any
    supportedMediaTypes: string[]

    A list media types supported by the format in descending order of preference.

    • Protected

      Sets the dataProjection on the options, if no dataProjection is set.

      Parameters

      • options: WriteOptions | ReadOptions | undefined

        Options.

      Returns WriteOptions | ReadOptions | undefined

      Updated options.

    • Protected

      Adds the data projection to the read options.

      Parameters

      • source: any

        Source.

      • Optionaloptions: ReadOptions

        Options.

      Returns ReadOptions | undefined

      Options.

    • Returns Type

      The format type.

    • Read a feature. Only works for a single feature. Use readFeatures to read a feature collection.

      Parameters

      • source: any

        Source.

      • Optionaloptions: ReadOptions

        Read options.

      Returns
          | Feature<Geometry, { [x: string]: any }>
          | Feature<Geometry, { [x: string]: any }>[]

      Feature.

    • Protected

      Parameters

      • object: any

        Object.

      • Optionaloptions: ReadOptions

        Read options.

      Returns
          | Feature<Geometry, { [x: string]: any }>
          | Feature<Geometry, { [x: string]: any }>[]

      Feature.

    • Read Extend Styles for Features. This function overloads ol.format.GeoJSON.readFeatures ...

      Parameters

      • source: any

        Source.

      • Optionaloptions: any

        Options. see olx.format.ReadOptions

      Returns Feature<Geometry, { [x: string]: any }>[]

      Features.

      olGeoJSON#readFeatures

    • Protected

      Parameters

      • object: any

        Object.

      • Optionaloptions: ReadOptions

        Read options.

      Returns Feature<Geometry, { [x: string]: any }>[]

      Features.

    • Read a single geometry from a source.

      Parameters

      • source: any

        Source.

      • Optionaloptions: ReadOptions

        Read options.

      Returns Geometry | null

      Geometry.

    • Protected

      Parameters

      • object: Geometry

        Object.

      • Optionaloptions: ReadOptions

        Read options.

      Returns Geometry | null

      Geometry.

    • Read the projection.

      Parameters

      • source: any

        Source.

      Returns Projection

      Projection.

    • Protected

      Parameters

      • object: any

        Object.

      Returns Projection

      Projection.

    • Encode a feature as string.

      Parameters

      • feature: Feature<Geometry, { [x: string]: any }>

        Feature.

      • Optionaloptions: WriteOptions

        Write options.

      Returns string

      Encoded feature.

    • Encode a feature as a GeoJSON Feature object.

      Parameters

      • feature: Feature<Geometry, { [x: string]: any }>

        Feature.

      • Optionaloptions: WriteOptions

        Write options.

      Returns Feature

      Object.

    • Write Extend Styles for Features. This function overloads ol.format.GeoJSON.writeFeatures ...

      Parameters

      • features: Feature<Geometry, { [x: string]: any }>[]

        Features.

      • Optionaloptions: any

        Options.

      Returns string

      Result.

      olGeoJSON#writeFeatures

    • Encode an array of features as a GeoJSON object.

      Parameters

      • features: Feature<Geometry, { [x: string]: any }>[]

        Features.

      • Optionaloptions: WriteOptions

        Write options.

      Returns FeatureCollection

      GeoJSON Object.

    • Encode a geometry as string.

      Parameters

      • geometry: Geometry

        Geometry.

      • Optionaloptions: WriteOptions

        Write options.

      Returns string

      Encoded geometry.

    • Encode a geometry as a GeoJSON object.

      Parameters

      • geometry: Geometry

        Geometry.

      • Optionaloptions: WriteOptions

        Write options.

      Returns Geometry | GeometryCollection<Geometry>

      Object.