<div dir="auto"><div>FlatGeobuf is an alternative to GeoPackage, shapefile, GML, GeoJSON and similar simple features representations. I see it as a general purpose serialization format between systems where direct database access is not suitable or possible, but with a minimal performance hit.</div><div dir="auto"><br></div><div dir="auto">FlatGeobuf is "cloud optimized" in that it is designed for optimal and streaming I/O. So in a sense you could say FlatGeobuf is the equivalent of COG for lossless vector data. This is an area where I believe GeoPackage fails and I think it's a big drawback of that format. For example it makes GeoPackage pretty much unusable as a WFS / OGC API output format but I believe FlatGeobuf fits that use case perfectly.</div><div dir="auto"><br></div><div dir="auto">FlatGeobuf does not intend to compete with MVT, which in my opinion is a special purpose lossy render optimized format (which is does very well) that is relatively expensive to create but fast to read and render.<br></div><div dir="auto"><br></div><div dir="auto">You might be right that <span style="font-family:sans-serif">ST_FromFlatGeobuf does not make sense. This is why I thought about COPY. I'm not very fond of having to resort to an external command line tool and think ogr2ogr takes care of that well enough.</span></div><div dir="auto"><br></div><div dir="auto">/Björn<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Den tis 22 sep. 2020 10:45 <<a href="mailto:rmrodriguez@carto.com">rmrodriguez@carto.com</a>> skrev:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bjorn, nice to see you around.<br>
<br>
I think having extra formats in Postgis is great as long as they are<br>
maintained (because they are used). For example, MVT turned out to be<br>
a great addition with lots of users.<br>
<br>
Is flatgeobuf an alternative to shapefile, to MVT, or both? Do you<br>
expect people to use it to extract full datasets or only parts of it<br>
at a time?<br>
<br>
One thing I'm not sure about is `ST_FromFlatGeobuf`. I would expect<br>
that to return a table/tuple, but AFAIK there is no way to change the<br>
output format of a function based on the input, so I think I would<br>
expect something like a fgb2pgsql cli and not a SQL function.<br>
<br>
Regards,<br>
-- <br>
Raúl Marín Rodríguez<br>
<a href="http://carto.com" rel="noreferrer noreferrer" target="_blank">carto.com</a><br>
</blockquote></div></div></div>