Possible COG like behavior in FGB? #375
Replies: 2 comments 13 replies
-
Are you removing features in the low res version or are you keeping all the features and simplifying the geometries? |
Beta Was this translation helpful? Give feedback.
-
Hi @PostholerCom, when I designed FlatGeobuf I wanted to focus on simplicity and lossless 1-1 representation. You seem to desire some level of detail support which I see as out of scope. I suppose FlatGeobuf can replace vector tiles in some cases but it wasn't made as a replacement. The inherent tiling and generalization that is part of vector tiles make it suitable for rendering at scale, that was not a goal for me. However, handling level of detail outside of the format like you do seems reasonable to me. Perhaps such use can be standardized and even be evolved into the format but it's not something I have plans to do at this point. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
FlatGeobuf has been a real game changer for me and I cannot say enough good things about it (and I do!). Not only is it great used for its intended purpose, it's great for building metadata catalogs of your raster/vector data files.
Working with huge FGB data sets and large bounding boxes are the only real difficulty I've come across. For instance, say your interactive web map is at zoom level 6 and you're trying to load thousands or millions of polygons. It's just too much data to download/display in the browser.
The method I've been using is creating 2 different FGB files. One is high resolution and the other is low. The low res might be displayed at zoom 1-10 and the high gets displayed at zoom 11-20. For point geom the low res will have a subset of points. A subset of polygons will have reduced vertices in the low res. This has been working very well.
It's important to get FGB data straight from a web server or cloud storage without intermediate servers or services.
Not knowing enough about the underlying FGB spec, here's my question:
Could one or more additional rtree's be added to the FGB file that points to geom in the data that would simulate a low res chunk of that data? This would be similar to what COG does, but instead of creating a low res tile at some level, the additional rtree would reference its low res data from the existing data using another rtree. EDIT: even adding another data block with the additional rtree would work.
Ideally, this would allow you to stream a chunk of data, defined by bbox, at a specified level.
Does this make any sense at all? If you made it this far, thanks for listening!
Beta Was this translation helpful? Give feedback.
All reactions