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