[gdal-dev] MVT fields/geometry alignment
Michael Sumner
mdsumner at gmail.com
Tue Aug 6 21:12:05 PDT 2019
Hello,
In this MVT source poLayer->GetFeatureCount() reports that there are 85
features, as does ogrinfo summary:
## taken from https://docs.mapbox.com/vector-tiles/reference/
ogrinfo -so
http://a.tiles.mapbox.com/v4/mapbox.mapbox-streets-v7/14/4823/6160.mvt?access_token=
<your-token>
INFO: Open of `'
using driver `MVT' successful.
Layer name: landuse
Geometry: Multi Polygon
Feature Count: 85
Extent: (-8239795.799271, 4968375.188829) - (-8238077.160463,
4970241.327215)
Layer SRS WKT:
...
But, iterating features finds 81 valid features, as reported by
ogrinfo
http://a.tiles.mapbox.com/v4/mapbox.mapbox-streets-v7/14/4823/6160.mvt?access_token=
<your-token>
without Summary Only mode.
Is this a problem for GDAL, or a general issue with various formats? I'm
after advice on whether to always iterate for a valid feature count, or
could this be fixed for MVT?
(I don't know anything about the internal details of protocol buffers.)
Thank you.
Mike
--
Michael Sumner
Software and Database Engineer
Australian Antarctic Division
Hobart, Australia
e-mail: mdsumner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190807/683afa8a/attachment.html>
More information about the gdal-dev
mailing list