Skip to content

Commit 17f94b4

Browse files
“benoitregamey”cmangeat
authored andcommitted
[geocat] set global CRS to EPSG:3857 and add support for EPSG:2056 (LV95)
1 parent ae6fddf commit 17f94b4

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

web-ui/src/main/resources/catalog/js/CatController.js

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@
841841
wms: [],
842842
wmts: []
843843
},
844-
projection: "EPSG:21781",
844+
projection: "EPSG:3857",
845845
projectionList: [
846846
{
847847
code: "urn:ogc:def:crs:EPSG:6.6:4326",
@@ -853,16 +853,37 @@
853853
},
854854
{
855855
code: "EPSG:21781",
856-
label: "Swiss LV03(EPSG:21781)"
856+
label: "Swiss LV03 (EPSG:21781)"
857+
},
858+
{
859+
code: "EPSG:2056",
860+
label: "Swiss LV95 (EPSG:2056)"
857861
}
858862
],
859863
switcherProjectionList: [
860864
{
861865
code: "EPSG:3857",
862-
label: "Google mercator (EPSG:3857)",
866+
label: "Google mercator (EPSG:3857)"
867+
},
868+
{
863869
code: "EPSG:21781",
864-
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",
865-
label: "Swiss LV03(EPSG:21781)"
870+
label: "CH1903 / LV03",
871+
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",
872+
extent: [
873+
485071.57525302575, 74284.81278939791, 837119.8047146694,
874+
299941.78643935296
875+
],
876+
worldExtent: [5.96, 45.82, 10.49, 47.81]
877+
},
878+
{
879+
label: "CH1903+ / LV95",
880+
code: "EPSG:2056",
881+
extent: [
882+
2485071.5752530256, 1074284.812789398, 2837119.8047146695,
883+
1299941.786439353
884+
],
885+
worldExtent: [5.96, 45.82, 10.49, 47.81],
886+
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"
866887
}
867888
],
868889
disabledTools: {

0 commit comments

Comments
 (0)