API / geotoolkit / map / util / GeoJSON / GeoJSON
GeoJSON parser and converter
Constructors
Methods
▸ getClassName(): string
string
▸ Static getClassName(): string
string
▸ Static parse(geoJsonFeatures, iGetFeatureId?, crsConversion?, coordinateOrder?): AbstractFeature[]
Creates GeoToolkit Shape-based AbstractFeature objects based on GeoJSON features
| Name | Type | Description |
|---|---|---|
geoJsonFeatures | FeatureObject | FeatureObject[] | array of GeoJSON features |
Optional iGetFeatureId | IGetId | how to retrieve feature id from geoJson feature's properties |
Optional crsConversion | CrsConversion | function for converting points into the map coordinate system |
Optional coordinateOrder | CoordinateOrder | x/y coordinate order ([1, 0] to reverse) |
▸ Static toGeoJSON(features, crsConversion?, coordinateOrder?): Feature
Converts GeoToolkit Shape-based AbstractFeature objects to GeoJSON format
| Name | Type | Description |
|---|---|---|
features | AbstractFeature | AbstractFeature[] | Iterator<AbstractFeature> | features to be converted to GeoJSON |
Optional crsConversion | CrsConversion | function for converting points into the result coordinate system |
Optional coordinateOrder | CoordinateOrder | x/y coordinate order ([1, 0] to reverse) |