Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set global CRS to EPSG:3857, change basemap to greyscale swisstopo in EPSG:3857 and add support for EPSG:2056 #253

Open
wants to merge 2 commits into
base: geocat_v4.2.3_report_custom
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,30 @@
xmlns:ows="http://www.opengis.net/ows"
version="0.3.1" id="ows-context-ex-1-v3">
<ows-context:General>
<ows:BoundingBox crs="EPSG:21781">
<ows:LowerCorner>426340.7642533947 -31175.881660288083</ows:LowerCorner>
<ows:UpperCorner>897081.2598204871 439564.6139068043</ows:UpperCorner>
<ows:BoundingBox crs="EPSG:3857">
<ows:LowerCorner>500000 5600000</ows:LowerCorner>
<ows:UpperCorner>1390000 6150000</ows:UpperCorner>
</ows:BoundingBox>
</ows-context:General>
<ows-context:ResourceList>

<ows-context:Layer name="{type=map.geo.admin.ch,name=ch.swisstopo.pixelkarte-farbe}"
<ows-context:Layer queryable="false"
name="{type=wmts,name=ch.swisstopo.pixelkarte-grau}"
hidden="false" opacity="1" group="Background layers">
<ows:Title xmlns:ows="http://www.opengis.net/ows">Swiss National Map (grey)</ows:Title>
<ows-context:Server service="urn:ogc:serviceType:WMS">
<ows-context:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml"/>
</ows-context:Server>
<ows-context:StyleList/>
</ows-context:Layer>

<!-- <ows-context:Layer name="{type=map.geo.admin.ch,name=ch.swisstopo.pixelkarte-farbe}"
group="Background layers"
hidden="false"
opacity="1">
<ows:Title>map.geo.admin.ch</ows:Title>
</ows-context:Layer>
</ows-context:Layer> -->

<ows-context:Layer name="{type=osm}"
group="Background layers"
Expand Down
Loading