Skip to content

Commit

Permalink
set global CRS to EPSG:3857 and add support for EPSG:2056 (LV95)
Browse files Browse the repository at this point in the history
  • Loading branch information
“benoitregamey” authored and cmangeat committed Mar 21, 2024
1 parent 52d4ce9 commit 69349e0
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions web-ui/src/main/resources/catalog/js/CatController.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@
wms: [],
wmts: []
},
projection: "EPSG:21781",
projection: "EPSG:3857",
projectionList: [
{
code: "urn:ogc:def:crs:EPSG:6.6:4326",
Expand All @@ -853,16 +853,37 @@
},
{
code: "EPSG:21781",
label: "Swiss LV03(EPSG:21781)"
label: "Swiss LV03 (EPSG:21781)"
},
{
code: "EPSG:2056",
label: "Swiss LV95 (EPSG:2056)"
}
],
switcherProjectionList: [
{
code: "EPSG:3857",
label: "Google mercator (EPSG:3857)",
label: "Google mercator (EPSG:3857)"
},
{
code: "EPSG:21781",
def: "+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +units=m +no_defs",
label: "Swiss LV03(EPSG:21781)"
label: "CH1903 / LV03",
def: "+proj=somerc +lat_0=46.9524055555556 +lon_0=7.43958333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs +type=crs",
extent: [
485071.57525302575, 74284.81278939791, 837119.8047146694,
299941.78643935296
],
worldExtent: [5.96, 45.82, 10.49, 47.81]
},
{
label: "CH1903+ / LV95",
code: "EPSG:2056",
extent: [
2485071.5752530256, 1074284.812789398, 2837119.8047146695,
1299941.786439353
],
worldExtent: [5.96, 45.82, 10.49, 47.81],
def: "+proj=somerc +lat_0=46.9524055555556 +lon_0=7.43958333333333 +k_0=1 +x_0=2600000 +y_0=1200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs +type=crs"
}
],
disabledTools: {
Expand Down

0 comments on commit 69349e0

Please sign in to comment.