Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ArcGISGeoJSON

Hierarchy

  • GeoJSON
    • ArcGISGeoJSON

Index

Constructors

constructor

Methods

getLayers

  • getLayers(): string[]

getType

  • getType(): string
  • inheritdoc

    Returns string

readFeature

  • readFeature(source: string | Object | Node | Document | ArrayBuffer, opt_options: {}): Feature<any>
  • Read a feature. Only works for a single feature. Use readFeatures to read a feature collection.

    api

    Parameters

    • source: string | Object | Node | Document | ArrayBuffer

      Source.

    • opt_options: {}

      Read options.

    Returns Feature<any>

    Feature.

readFeatureFromObject

  • readFeatureFromObject(object: any, opt_options: any): Feature<Geometry>
  • inheritdoc

    Parameters

    • object: any
    • opt_options: any

    Returns Feature<Geometry>

readFeatures

  • readFeatures(source: string | Object | Node | Document | ArrayBuffer, opt_options: {}): Feature<any>[]
  • Read all features. Works with both a single feature and a feature collection.

    api

    Parameters

    • source: string | Object | Node | Document | ArrayBuffer

      Source.

    • opt_options: {}

      Read options.

    Returns Feature<any>[]

    Features.

readGeometry

  • readGeometry(source: string | Object | Node | Document | ArrayBuffer, opt_options: {}): Geometry
  • Read a geometry.

    api

    Parameters

    • source: string | Object | Node | Document | ArrayBuffer

      Source.

    • opt_options: {}

      Read options.

    Returns Geometry

    Geometry.

readGeometryFromObject

  • readGeometryFromObject(object: any, opt_options: any): Geometry
  • inheritdoc

    Parameters

    • object: any
    • opt_options: any

    Returns Geometry

readProjection

  • readProjection(source: string | Object | Node | Document | ArrayBuffer): Projection
  • Read the projection.

    api

    Parameters

    • source: string | Object | Node | Document | ArrayBuffer

      Source.

    Returns Projection

    Projection.

readProjectionFromObject

  • readProjectionFromObject(object: any): Projection
  • inheritdoc

    Parameters

    • object: any

    Returns Projection

setLayers

  • setLayers(layers: string[]): void

writeFeature

  • writeFeature(feature: Feature<any>, opt_options: {}): string
  • Encode a feature as string.

    api

    Parameters

    • feature: Feature<any>

      Feature.

    • opt_options: {}

      Write options.

    Returns string

    Encoded feature.

writeFeatureObject

  • writeFeatureObject(feature: Feature<any>, opt_options: {}): Feature<Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection, {}>
  • Encode a feature as a GeoJSON Feature object.

    override
    api

    Parameters

    • feature: Feature<any>

      Feature.

    • opt_options: {}

      Write options.

    Returns Feature<Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection, {}>

    Object.

writeFeatures

  • writeFeatures(features: Feature<any>[], opt_options: {}): string
  • Encode an array of features as string.

    api

    Parameters

    • features: Feature<any>[]

      Features.

    • opt_options: {}

      Write options.

    Returns string

    Encoded features.

writeFeaturesObject

  • writeFeaturesObject(features: Feature<any>[], opt_options: {}): FeatureCollection<Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection, {}>
  • Encode an array of features as a GeoJSON object.

    override
    api

    Parameters

    • features: Feature<any>[]

      Features.

    • opt_options: {}

      Write options.

    Returns FeatureCollection<Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection, {}>

    GeoJSON Object.

writeGeometry

  • writeGeometry(geometry: Geometry, opt_options: {}): string
  • Encode a geometry as string.

    api

    Parameters

    • geometry: Geometry

      Geometry.

    • opt_options: {}

      Write options.

    Returns string

    Encoded geometry.

writeGeometryObject

  • writeGeometryObject(geometry: Geometry, opt_options: {}): Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection
  • Encode a geometry as a GeoJSON object.

    override
    api

    Parameters

    • geometry: Geometry

      Geometry.

    • opt_options: {}

      Write options.

    Returns Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection

    Object.

Generated using TypeDoc