<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
... I should have said Geopackage is „not optimal“ in regards to space efficiency. It‘s still not bad at all when compared to other formats. 
<div>
<div>
<div><br>
</div>
<div><br>
Am 07.08.2018 um 23:35 schrieb Benjamin Stadin <<a href="mailto:Benjamin.Stadin@heidelberg-mobil.com">Benjamin.Stadin@heidelberg-mobil.com</a>>:<br>
<br>
</div>
<blockquote type="cite">
<div>Geopackage is not very space efficient, due to the required compatibility with the spec and the „ST*“ methods matching their postgres counterparts. Check the header which is carried over for each geometry:
<div><a href="https://github.com/opengeospatial/geopackage/blob/master/spec/2a_features.adoc">https://github.com/opengeospatial/geopackage/blob/master/spec/2a_features.adoc</a></div>
<div><br>
</div>
<div>For an example, the  version and SRS is already defined as part of the meta table, but still need to be part of each and every geometry due to technical details. </div>
<div><br>
<div>We do have a proprietary indexed vector tile format which I‘m considering to open source. Though the interest has been rather low in the past to justify putting effort into it. It works like a tile pyramid, using same zoom levels as OSM, but it is projection
 independent using midpoints of geometries to store vector data into a sinusoidal grid. The grid is used as the tile pyramid storage, the actual projection used by the geometries does not matter other than a projection step between loading and visualization
 is required. Large line strings like roads are split when writing the data to the storage tiles, and connected dynamically at load time when loading the tiles. Polygons are not split, you‘ll always get a full polygon when querying the tile store (there is
 additional complexity though for implementing the loading mechanism,into a client app, because it also deals with overlapping polygons. E.g. you could have tiles 1,2,3 in direct „sight“ but the loading mechanism might have to load a tile 5 which overlaps tile
 2, which is known as part of the meta info in tile 2). </div>
<div>Storing polygons of different levels of detail for different zoom levels is of course supported. The geometries are wkb-like, but more close to GeoJson (with properties / tags). The storage format for the tiles is described as Google FlatBuffer. </div>
<div><br>
</div>
<div>Ben</div>
<div> <br>
Am 07.08.2018 um 22:37 schrieb Patrick Young <<a href="mailto:patrick.mckendree.young@gmail.com">patrick.mckendree.young@gmail.com</a>>:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">Yeah it's not the geopackage format but that the polygons are just huge, sorry about that.  There is ~1000 polygons but each one is a ton of vertices (~100k), so zoomed out the redraw takes a little while (seconds).  This is true with fileGBD
 too, which feels slower than the gpkg FWIW.  In practice we have a simplified version of the data we usually deal with and that is plenty fast. 
<div><br>
</div>
<div>I guess the dream is a format that has "overviews" but for vector data.  Maybe gpkg already supports this idea? I haven't really dug into either format, so apologies for my naivety.    </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Aug 5, 2018 at 11:15 AM, jratike80 <span dir="ltr">
<<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Patrick Young wrote<br>
<span>> We also tried a GeoPackage, but it seemed a little slow to read in QGIS.<br>
<br>
</span>Hi,<br>
<br>
Could you give some more details about your GeoPackage and what you mean<br>
with "little slow"? I have pretty good experiences about using GeoPackage as<br>
data source for MapServer.  I also just tried how a polygon layer with 1.1<br>
million polygons behaves with QGIS and panning and zooming is pretty much<br>
immediate when the map scale is reasonable. With reasonable scale I mean<br>
that roughly 50000 polygons or less fits the map view so that the spatial<br>
index can drop most of the records.<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html" rel="noreferrer" target="_blank">
http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html</a><br>
<div class="m_1622283481993749777HOEnZb">
<div class="m_1622283481993749777h5">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>gdal-dev mailing list</span><br>
<span><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a></span><br>
<span><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></span></div>
</blockquote>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>gdal-dev mailing list</span><br>
<span><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a></span><br>
<span><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></span></div>
</blockquote>
</div>
</div>
</body>
</html>