Opened 4 years ago
Closed 4 years ago
#20509 closed defect (fixed)
Layer rendering improperly in JOSM but works everywhere else
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 21.02 |
Component: | Core imagery | Version: | |
Keywords: | poland geoportal user-agent wms | Cc: |
Description
For some reason layer "Geoportal 2: High Resolution Orthophotomap (aerial image)" works everywhere (Example) but in JOSM.
Link to layer: https://mapy.geoportal.gov.pl/wss/service/PZGIK/ORTO/WMS/HighResolution
Attachments (2)
Change History (16)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 4 years ago
Component: | Core → External imagery source |
---|---|
Keywords: | poland geoportal user-agent added |
Milestone: | → 21.02 |
Type: | defect → task |
comment:4 by , 4 years ago
by , 4 years ago
Attachment: | Zrzut ekranu 2021-02-20 212447.png added |
---|
comment:5 by , 4 years ago
Component: | External imagery source → Core |
---|---|
Milestone: | 21.02 |
Resolution: | fixed |
Status: | closed → reopened |
Type: | task → defect |
by , 4 years ago
Attachment: | screen1.png added |
---|
comment:6 by , 4 years ago
comment:7 by , 4 years ago
the bug is still present after deleting all the files in ~/AppData/Local/JOSM/cache
comment:8 by , 4 years ago
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-12-28 22:03:23 +0100 (Mon, 28 Dec 2020) Build-Date:2020-12-30 02:30:55 Revision:17428 Relative:URL: ^/trunk Identification: JOSM/1.5 (17428 pl) Windows 10 64-Bit OS Build number: Windows 10 Education 2009 (19042) Memory Usage: 871 MB / 1820 MB (550 MB allocated, but free) Java version: 1.8.0_281-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920×1080 (scaling 1,00×1,00) \Display1 1920×1080 (scaling 1,00×1,00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→32×32, 32×32→32×32 VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\Downloads\josm (1).jnlp, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=61425, -Djnlpx.jvm=<java.home>\bin\javaw.exe] Plugins: + PicLayer (2a9aa7a) + imagery-xml-bounds (35640) + indoorhelper (eca65b2) Map paint styles: - <josm.pref>\styles\sit.mapcss
follow-up: 11 comment:9 by , 4 years ago
To me honest for me even the "GetCapabilities" link (https://mapy.geoportal.gov.pl/wss/service/PZGIK/ORTO/WMS/HighResolution?service=WMS&request=GetCapabilities&version=1.3.0) dose not work in JOSM. When trying to get the available layers I get the error:
javax.xml.stream.XMLStreamException: PraseError at [row,col]:[1,1]
Message: Premature end of file
comment:11 by , 4 years ago
Replying to anonymous:
To me honest for me even the "GetCapabilities" link (https://mapy.geoportal.gov.pl/wss/service/PZGIK/ORTO/WMS/HighResolution?service=WMS&request=GetCapabilities&version=1.3.0) dose not work in JOSM. When trying to get the available layers I get the error:
javax.xml.stream.XMLStreamException: PraseError at [row,col]:[1,1]
Message: Premature end of file
This is usual message if you haven't customized User-Agent in case of this server. Turn on Expert mode (e.g. in preferences windows, bottom left checkbox), then start adding WMS, but first set in the table with "custom HTTP headers" header name and value as I mentioned in comment:1
comment:12 by , 4 years ago
Component: | Core → Core imagery |
---|---|
Keywords: | wms added |
Milestone: | → 21.02 |
comment:13 by , 4 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This WMS doesn't work for me either in JOSM with default settings but works fine in QGIS. As far as I can tell JOSM automatically adds custom user agent like "Mozilla/5.0 JOSM" or something so that shouldn't be an issue.
JOSM version 17428
I tested it with projection 3857 (which this WMS doesn't support and is the default projection for JOSM) and projection 2180 (supported by wms).
With 2180 it works fine, with 3857 tiles are completely wrong.
Changing projection after adding WMS layer doesn't work. Only if I change the projection first then load WMS layer.
It seems like a bug with JOSM reprojection algorithm.
comment:14 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
If this is the same problem that you've reported earlier, this was fixed in version 17502. Please test it with version 17502 or later.
Your description matches exactly the bug that was fixed in version 17502.
WMS is not working because entry doesn't contain
As other entries for Geoportal. For some reason, Java string in User-Agent is banned at Geoportal.