I’m using GeoServer to provide geospatial data for an Unreal Engine globe, showcasing labels and markers on a Cesium globe. GeoServer offers a Web Feature Service (WFS) with API-like calls to fetch data, including a bounding box filtering option.
I need to calculate the bounding box for the current camera view of the globe in Unreal Engine so I can pass the bounding box coordinates (min lat, min lon, max lat, max lon) to GeoServer.
I came across a similar discussion here: Cesium Community Post, but I couldn’t find an approach that works for Unreal Engine.
Hi @pjiang9 , This is what i have though of first in place. but that does not help me. I’m trying to make somewhat similar to this Cesium Labels. But they are randomly placing the points on the map and making them enable/disable based on distance. But i want to get data based on the bounding box. you can also have a look at this Calculating Rectangle as well about what i’m talking.
Hi, Mayank_i,
Oh, I finally got you.
Do you mean to set the bbox dynamically by the camera view not by the mouse clicking? Sorry, I have no experience for that.
Yes @pjiang9 , i was talking about setting the bbox dynamically with camera view so that i can only fetch the data for that part and make them visible over the map
Hi, Mayank_i,
I don’t think the bbox should be used that way. Perhaps the “Filtering by rendering context: scale” or " Filtering by rendering context: zoom" would be better. You can look into manual and the layer Preview of “ne:world” in Geoserver to get some idea.