Hi,

You can use the GetCapabilities of this specific layer by adding it to the url.

Ex : .../geoserver/workspace/layername/ows?...

(Case sensitive)

Or you can use WPS to get the layers bbox.

Good luck!



Envoyé à partir d’Outlook<http://aka.ms/weboutlook>

________________________________
De : Lebrons Dad <azhong.spam.gam...@gmail.com>
Envoyé : 12 août 2021 20:29
À : geoserver-users@lists.sourceforge.net 
<geoserver-users@lists.sourceforge.net>
Objet : [Geoserver-users] Bounding Box of Layer without using GetCapabilities

Hi GeoServer community,

Is there a lightweight way of getting the bounding box of a specific layer 
through GeoServer? I am trying to get the bounds of a layer so I can zoom in on 
it automatically on Leaflet.

Through some googling, I know you can get the bounds of a layer via the 
GetCapabilities request from WMS, but the file generated by the call can be 
large (if there are a lot of layers and styles in GeoServer, as is in my use 
case) and you would have to parse it (slow if lots of layers). Is there no 
simple way of making a query specifically for the bounding box of a layer in 
GeoServer? It doesn't even have to use WMS.

Thanks,
JJ Barea
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to