swiss-projection
Version:
Convert from LV03(EPSG:21781) and LV95(EPSG:2056) to WGS84(EPSG:4326)
106 lines (100 loc) • 1.63 kB
text/typescript
export const baselPolygonFeature = {
"type": "Feature",
"properties": {
"KTNR": 12,
"KTNAME": "Basel-Stadt"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
2618243,
1270052
],
[
2616262,
1267990
],
[
2614711,
1267840
],
[
2614602,
1267872
],
[
2613766,
1265748
],
[
2613671,
1265408
],
[
2611744,
1263231
],
[
2611346,
1263338
],
[
2610925,
1264472
],
[
2608775,
1265954
],
[
2608770,
1268212
],
[
2611314,
1271031
],
[
2613986,
1269877
],
[
2615583,
1271829
],
[
2618243,
1270052
]
]
]
}
}
export const yverdonPointFeature = {
type: 'Feature',
properties: {
name: 'Yverdon',
},
geometry: {
type: 'Point',
coordinates: [2539070, 1181442]
}
}
export const collection = {
type: 'FeatureCollection',
features: [
baselPolygonFeature,
yverdonPointFeature,
],
}
export const polygonGeometry = baselPolygonFeature.geometry
export const pointGeometry = yverdonPointFeature.geometry
export const geometryCollection = {
type: 'GeometryCollection',
geometries: [
polygonGeometry,
pointGeometry,
]
}