GDI-HE / GeoPortal.rlp

Other
2 stars 0 forks source link

Coordinate search does not work correctly #76

Closed Andreasr28 closed 5 months ago

Andreasr28 commented 11 months ago

Anfrage_ Suche nach Gauss-Krüger im Kartenviewer.zip Affected function Coordinate search Coordinate search, should be possible for:

To recreate, start the search in www.geoportal.hessen.de

In testsystem the function works as expected!! Correct example Gauß-Krüger: Rechtswert Y = 3461404 m, Hochwert X = 5483498 m.

But Error Messages and malfunction ****

  1. The target coordinates are displayed incorrectly GK coordinates have no descendant coordinates.
  2. If empty entries are chosen .. a error message is displayed

    This should not be possible, a search without entries makes no sense.

  3. If valid coordinates are used, another error message is displayed:

    the search doesn not work and the wms hintergundkarte stops working grafik

    This is because when the search is started, the scale in the map viewer is set to 1:0 and this scale range is not provided by HiKa.

Andreasr28 commented 11 months ago

In RLP funktioniert es .. in SL auch grafik

.. in SL auch grafik

dpakprajul commented 11 months ago

Something I found (might be helpful for debugging): In the Netzwerkanalyse in the inspector (debugging console), I see the the GetMap request is called with bbox=0,0,0,0. The link looks like this (with invalid bbox): https://prototyp.geoportal.hessen.de/wms/overview?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=huek&STYLES=&SRS=EPSG:25832&BBOX=0,0,0,0&WIDTH=1184&HEIGHT=273&FORMAT=image/png;%20mode=8bit&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml

When the file is opened I can see the following.

<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msWMSLoadGetMapParams(): WMS server error. Invalid values for BBOX.
</ServiceException>
</ServiceExceptionReport>

But when the same process is done in the test system, the link in the netzwerkanalyse it correct with valid bounding box value: https://prototyp.geoportal.hessen.de/wms/overview?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=huek&STYLES=&SRS=EPSG:25832&BBOX=564385.8763493694,5621374.178020689,564548.0442713691,5621474.138042888&WIDTH=683&HEIGHT=421&FORMAT=image/jpeg&BGCOLOR=0xffffff&EXCEPTIONS=application/vnd.ogc.se_xml

dpakprajul commented 11 months ago

Also there is a problem in Coordinate system in the production system. In the test system it works fine as: (this is the screenshot of test system)

But in the production system, when the projection system is selected to Gauß-krüger 3 (DHDN), it doesn't work. That means it again change the option to Geographische Koordinaten or UTM zone 32N automatically.

In the network analysis, the link is generated which looks like this: grafik

To reproduce: go to: https://www.geoportal.hessen.de/ click on Kartenviewer Select the Werkzeuge on the top Select the Koordinatensystem and change the projection system to Gauß-krüger 3 (DHDN)

karlbrink commented 7 months ago

i tested right now.... (kartenviewer zurücksetzen) search for coordinates works now. i fixed some spatial_ref_sys entries for epgsg 31466, 31467, 31468, 31469.

dpakprajul commented 7 months ago

@karlbrink I looked into it, and worked so far. I have one suggestion in the koordinaten anzeigen in the toolbox. The coordinates are shown but it is not clear from the tools which coordinate system is it showing. What about adding the text before it?

Before: grafik

After: grafik

dpakprajul commented 6 months ago

See this if needed: https://github.com/GDI-HE/Mapbender2.8/commit/1a2fe2a79cb287bb0a3d382dd8b16b5f743be038

dpakprajul commented 5 months ago

@karlbrink @Andreasr28 This issue is solved right? We can close the issue if so.

Andreasr28 commented 5 months ago

I have tested the functions everything works. Issue Done