GeoJSONUtils: { fromFlat3Coordinates: ((flat3Coords: [number, number, number][],
geometryType: | "Point" | "LineString" | "Polygon" | "MultiPoint" | "MultiLineString" | "MultiPolygon" | "GeometryCollection") => GeoJSON.Geometry); fromFlatCoordinates: ((flatCoords: number[],
geometryType: | "Point" | "LineString" | "Polygon" | "MultiPoint" | "MultiLineString" | "MultiPolygon" | "GeometryCollection") => GeoJSON.Geometry); getOpenLayersFeature: ((feature: Feature<Geometry, GeoJsonProperties>) => Feature); toFlatCoordinates: ((geojson: Geometry) => number[]); } Type declaration
fromFlat3Coordinates: ((flat3Coords: [number, number, number][], geometryType:
| "Point"
| "LineString"
| "Polygon"
| "MultiPoint"
| "MultiLineString"
| "MultiPolygon"
| "GeometryCollection") => GeoJSON.Geometry)
- (flat3Coords, geometryType): GeoJSON.Geometry
Parameters
- flat3Coords: [number, number, number][]
- geometryType:
| "Point"
| "LineString"
| "Polygon"
| "MultiPoint"
| "MultiLineString"
| "MultiPolygon"
| "GeometryCollection"
Returns GeoJSON.Geometry
GeoJSON geometry object
fromFlatCoordinates: ((flatCoords: number[], geometryType:
| "Point"
| "LineString"
| "Polygon"
| "MultiPoint"
| "MultiLineString"
| "MultiPolygon"
| "GeometryCollection") => GeoJSON.Geometry)
- (flatCoords, geometryType): GeoJSON.Geometry
Parameters
- flatCoords: number[]
- geometryType:
| "Point"
| "LineString"
| "Polygon"
| "MultiPoint"
| "MultiLineString"
| "MultiPolygon"
| "GeometryCollection"
Returns GeoJSON.Geometry
GeoJSON geometry object
getOpenLayersFeature: ((feature: Feature<Geometry, GeoJsonProperties>) => Feature)
- (feature): Feature
Parameters
- feature: Feature<Geometry, GeoJsonProperties>
toFlatCoordinates: ((geojson: Geometry) => number[])
- (geojson): number[]
Returns number[]
Flat coordinates
Creates a simple GeoJSON Geometry object from a list of 3D coordinates.