2023-08-05 10:07:57 +02:00
|
|
|
interface GeoJsonGeometry {
|
|
|
|
type:string,
|
|
|
|
coordinates:Array<number>,
|
|
|
|
}
|
|
|
|
|
|
|
|
interface GeoJsonProperties {
|
|
|
|
[key:string]: any,
|
|
|
|
}
|
|
|
|
|
|
|
|
interface GeoJsonFeature {
|
|
|
|
type:string,
|
|
|
|
geometry:GeoJsonGeometry,
|
|
|
|
properties:GeoJsonProperties,
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FeatureCollection{
|
|
|
|
type:string,
|
|
|
|
features:Array<GeoJsonFeature>,
|
|
|
|
}
|
2023-08-02 16:59:24 +02:00
|
|
|
export interface FeaturePropertyMappingConfigType{
|
2023-08-05 09:55:14 +02:00
|
|
|
[key:string]: any,
|
2023-08-02 16:59:24 +02:00
|
|
|
key_converted?:string,
|
|
|
|
truthy_value?:any,
|
2023-08-05 12:09:14 +02:00
|
|
|
transformer?:Function,
|
2023-08-02 16:59:24 +02:00
|
|
|
}
|
|
|
|
export interface BoundingBoxCoordinatesType{
|
|
|
|
xMin: number,
|
|
|
|
xMax: number,
|
|
|
|
yMin: number,
|
|
|
|
yMax: number,
|
|
|
|
}
|
|
|
|
export default interface MappingConfigType{
|
|
|
|
config_name: string,
|
|
|
|
config_author: string,
|
|
|
|
default_properties_of_point: object,
|
2023-08-05 09:55:14 +02:00
|
|
|
tags: FeaturePropertyMappingConfigType
|
2023-08-02 16:59:24 +02:00
|
|
|
}
|