Oh, I just forget that you would have to log in, so this would only be useful with some sort of proxy...
Regards Daniel From: Calliess Daniel Ing. Sent: Friday, August 13, 2021 12:57 PM To: 'Lebrons Dad' <azhong.spam.gam...@gmail.com> Subject: RE: [EXTERN!]: [Geoserver-users] Bounding Box of Layer without using GetCapabilities Hi, what about using the GeoServer REST API (https://docs.geoserver.org/latest/en/user/rest/api/index.html)? You would be able to request the information about a single layer in a json document, f.e. http://<servername>/geoserver/rest/workspaces/<workspacename>/datastores/<datastorename>/featuretypes/<featuretypename>.json<http://%3cservername%3e/geoserver/rest/workspaces/%3cworkspacename%3e/datastores/%3cdatastorename%3e/featuretypes/%3cfeaturetypename%3e.json> -> [cid:image002.png@01D79043.B8BECE80] Best regards Daniel From: Lebrons Dad [mailto:azhong.spam.gam...@gmail.com] Sent: Friday, August 13, 2021 2:29 AM To: geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net> Subject: [EXTERN!]: [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