[resolved] WMS server custom map wrong BBOX coordinates
Posted: Thu Sep 15, 2022 6:56 am
Hi,
I created the following .aqx file to view in AlpineQuest (High res imagery of Western Australia)
However the map appeared blank. After debugging, I found out that with the {$bbox} variable, the link generated by AQ was:
[...]?format=png8&bbox=-27.68,118.82,-27.05,119.53&size=256,256&f=image
But the WMS server appears to use swapped BBOX coordinates. The good link is actually:
[...]?format=png8&bbox=118.82,-27.68,119.53,-27.05&size=256,256&f=image
(removed some decimals for readability). So I'm assuming that the server accept the BBOX coordinates as [BottomLeftY,BottomLeftX,TopRightY,TopRightX] whereas AQ generates them as [BottomLeftX,BottomLeftY,TopRightX,TopRightY].
Or something like that.
Now, obviously I can't change how the server reads the coordinates so I'm wondering if it's possible in an AQX file to swap the $bbox around? Or is this something I can control with <bbox-crs-code>???</bbox-crs-code>? I tried a few different EPSG codes without much luck. I think the coordinate system is correct, it's just that the points are swapped around.
I created the following .aqx file to view in AlpineQuest (High res imagery of Western Australia)
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<aqx version="11">
<source id="MAP_UID">
<name>Landgate Imagery</name>
<zoom-levels z="1-22">
<server>https://mapviewerplusproxy-a.app.landgate.wa.gov.au/proxy/forward.jsp?https://services.slip.wa.gov.au/arcgis/rest/services/Landgate_Subscription_Imagery/WANow/MapServer/export?format=png8&bbox={$bbox}&size=256,256&f=image</server>
<referer>https://map-viewer-plus.app.landgate.wa.gov.au/</referer>
</zoom-levels>
</source>
</aqx>
[...]?format=png8&bbox=-27.68,118.82,-27.05,119.53&size=256,256&f=image
But the WMS server appears to use swapped BBOX coordinates. The good link is actually:
[...]?format=png8&bbox=118.82,-27.68,119.53,-27.05&size=256,256&f=image
(removed some decimals for readability). So I'm assuming that the server accept the BBOX coordinates as [BottomLeftY,BottomLeftX,TopRightY,TopRightX] whereas AQ generates them as [BottomLeftX,BottomLeftY,TopRightX,TopRightY].
Or something like that.
Now, obviously I can't change how the server reads the coordinates so I'm wondering if it's possible in an AQX file to swap the $bbox around? Or is this something I can control with <bbox-crs-code>???</bbox-crs-code>? I tried a few different EPSG codes without much luck. I think the coordinate system is correct, it's just that the points are swapped around.