Zoom to layer in layer tree not working properly

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Zoom to layer in layer tree not working properly

Sajid Pareeth-2
Hi list

I have deployed a mapbender application with many geoserver based WMS layers listed.
But the "zoom to layer" function under each layer is not working properly. The layer is zoomed to some where else. It seems, the BBOX x and y are swapped when zoomed to layer.

Here is a demo app with one of my layer (bdry) under layerset called ABC, displayed on top of two other base WMS layers. 

The geoserver link to my wms layer is:  http://188.40.139.182:8080/geoserver/nlbc_bdry/wms

I am using the latest version of mapbender 3.0.8 and geoserver version is 2.17.0

Can anyone help me with this?

Thanks in advance

Regards

Sajid


----------------------------------------------------------------
Sajid Pareeth, Ph.D
Researcher – Remote sensing
Water Science and Engineering Department
UNESCO-IHE Institute for Water Education
Delft, The Netherlands
Phone No.: <a href="tel:+31%2015%20215%201825" value="+31152151825" target="_blank">+31 (0)15 215 2395
Skype ID: spareeth






_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Zoom to layer in layer tree not working properly

Armin Retterath
hi sajid,

maybe the bbox of the layers are not handled consistently - here are the crs related extracts from the capabilities docs:

wms 1.1.1

<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="75.61699436455098" miny="16.19036450771302" maxx="77.30248329850956" maxy="17.47232605225013"/>
<BoundingBox SRS="EPSG:4326" minx="75.61699436455098" miny="16.190364507713397" maxx="77.30248329847431" maxy="17.47232605225013"/>


wms 1.3.0

... many crs ...
<CRS>CRS:84</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>75.61699436455098</westBoundLongitude>
<eastBoundLongitude>77.30248329850956</eastBoundLongitude>
<southBoundLatitude>16.19036450771302</southBoundLatitude>
<northBoundLatitude>17.47232605225013</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="75.61699436455098" miny="16.19036450771302" maxx="77.30248329850956" maxy="17.47232605225013"/>


<CRS>EPSG:4326</CRS>
<CRS>CRS:84</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>75.61699436455098</westBoundLongitude>
<eastBoundLongitude>77.30248329850956</eastBoundLongitude>
<southBoundLatitude>16.19036450771302</southBoundLatitude>
<northBoundLatitude>17.47232605225013</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="75.61699436455098" miny="16.19036450771302" maxx="77.30248329850956" maxy="17.47232605225013"/>
<BoundingBox CRS="EPSG:4326" minx="16.190364507713397" miny="75.61699436455098" maxx="17.47232605225013" maxy="77.30248329847431"/>

you see, that the axis order in wms 1.3.0 is switched fom lat/lon to lon/lat - this is defined in the ogc standards.


you use wms 1.1.1 for the basemap and wms 1.3.0 for your own resource - therefor mapbender will switch the extents i think. test to register your service with wms version 1.1.1 and it will work. maybe you can register both services with version 1.3.0 and it may also work ;-) .

best regards

armin

> Sajid Pareeth <[hidden email]> hat am 8. Juni 2020 um 23:43 geschrieben:
>
>
> Hi list
>
> I have deployed a mapbender application with many geoserver based WMS
> layers listed.
> But the "zoom to layer" function under each layer is not working properly.
> The layer is zoomed to some where else. It seems, the BBOX x and y are
> swapped when zoomed to layer.
>
> Here is a demo app with one of my layer (bdry) under layerset called ABC,
> displayed on top of two other base WMS layers.
> http://www.wa-urmia.org/mapbender/application/test
>
> The geoserver link to my wms layer is:
> http://188.40.139.182:8080/geoserver/nlbc_bdry/wms
>
> I am using the latest version of mapbender 3.0.8 and geoserver version is
> 2.17.0
>
> Can anyone help me with this?
>
> Thanks in advance
>
> Regards
>
> Sajid
>
>
> ----------------------------------------------------------------
> Sajid Pareeth, Ph.D
> Researcher – Remote sensing
> Water Science and Engineering Department
> UNESCO-IHE Institute for Water Education
> Delft, The Netherlands
> Phone No.: +31 (0)15 215 2395 <+31%2015%20215%201825>
> Skype ID: spareeth
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/mapbender_users
_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Zoom to layer in layer tree not working properly

Sajid Pareeth-2
Hi Armin

Thank you, that solved the problem. 
I overlooked these differences between different versions of WMS, though I found it a bit confusing. Anyways, will be more cautious on these aspects, when we combine WMS from different sources.

Thanks again

Regards 

Sajid




On Tue, Jun 9, 2020 at 5:57 AM Armin Retterath <[hidden email]> wrote:
hi sajid,

maybe the bbox of the layers are not handled consistently - here are the crs related extracts from the capabilities docs:

wms 1.1.1

<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="75.61699436455098" miny="16.19036450771302" maxx="77.30248329850956" maxy="17.47232605225013"/>
<BoundingBox SRS="EPSG:4326" minx="75.61699436455098" miny="16.190364507713397" maxx="77.30248329847431" maxy="17.47232605225013"/>


wms 1.3.0

... many crs ...
<CRS>CRS:84</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>75.61699436455098</westBoundLongitude>
<eastBoundLongitude>77.30248329850956</eastBoundLongitude>
<southBoundLatitude>16.19036450771302</southBoundLatitude>
<northBoundLatitude>17.47232605225013</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="75.61699436455098" miny="16.19036450771302" maxx="77.30248329850956" maxy="17.47232605225013"/>


<CRS>EPSG:4326</CRS>
<CRS>CRS:84</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>75.61699436455098</westBoundLongitude>
<eastBoundLongitude>77.30248329850956</eastBoundLongitude>
<southBoundLatitude>16.19036450771302</southBoundLatitude>
<northBoundLatitude>17.47232605225013</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="75.61699436455098" miny="16.19036450771302" maxx="77.30248329850956" maxy="17.47232605225013"/>
<BoundingBox CRS="EPSG:4326" minx="16.190364507713397" miny="75.61699436455098" maxx="17.47232605225013" maxy="77.30248329847431"/>

you see, that the axis order in wms 1.3.0 is switched fom lat/lon to lon/lat - this is defined in the ogc standards.


you use wms 1.1.1 for the basemap and wms 1.3.0 for your own resource - therefor mapbender will switch the extents i think. test to register your service with wms version 1.1.1 and it will work. maybe you can register both services with version 1.3.0 and it may also work ;-) .

best regards

armin
> Sajid Pareeth <[hidden email]> hat am 8. Juni 2020 um 23:43 geschrieben:
>
>
> Hi list
>
> I have deployed a mapbender application with many geoserver based WMS
> layers listed.
> But the "zoom to layer" function under each layer is not working properly.
> The layer is zoomed to some where else. It seems, the BBOX x and y are
> swapped when zoomed to layer.
>
> Here is a demo app with one of my layer (bdry) under layerset called ABC,
> displayed on top of two other base WMS layers.
> http://www.wa-urmia.org/mapbender/application/test
>
> The geoserver link to my wms layer is:
> http://188.40.139.182:8080/geoserver/nlbc_bdry/wms
>
> I am using the latest version of mapbender 3.0.8 and geoserver version is
> 2.17.0
>
> Can anyone help me with this?
>
> Thanks in advance
>
> Regards
>
> Sajid
>
>
> ----------------------------------------------------------------
> Sajid Pareeth, Ph.D
> Researcher – Remote sensing
> Water Science and Engineering Department
> UNESCO-IHE Institute for Water Education
> Delft, The Netherlands
> Phone No.: +31 (0)15 215 2395 <+31%2015%20215%201825>
> Skype ID: spareeth
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/mapbender_users

_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users