[gdal-dev] driver MVT, no tiles generated

Maria Ibarra Maria.Ibarra at ign.fr
Fri Jun 8 07:17:25 PDT 2018


I downloaded GDAL from this package http://download.osgeo.org/gdal/2.3.0/gdal-2.3.0.tar.gz
Built with this command :
./configure --with-geos=yes with-pg=/usr/bin/pg_config
sudo make install

* This is the result of the command with the "--debug on"

ogr2ogr -f MVT ./batiment source.gpkg -dsco MAXZOOM=10 --debug on
GNM: GNMRegisterAllInternal
GNM: RegisterGNMFile
GNM: RegisterGNMdatabase
GPKG: GeoPackage v1.2.0
GDAL: GDALOpen(source.gpkg, this=0xe33f90) succeeds as GPKG.
GDAL: GDALDriver::Create(MVT,./batiment,0,0,0,Unknown,0xe3a8e0)
GPKG: ResetStatement(SELECT m."fid", m."geom", m."altitude_s", m."hauteur", m."nature", m."nom" FROM "batiment" m)
MVT: Creating temporary database...
GPKG: finalize 0xe7dc38
GDALVectorTranslate: 450768 features written in layer 'batiment'
GDAL: GDALClose(source.gpkg, this=0xe33f90)
MVT: Building output file from temporary database...
GDAL: GDALClose(./batiment, this=0xe3b470)


* This is the result of the command "ogrinfo -al -so source.gpkg"
INFO: Open of `source.gpkg'
      using driver `GPKG' successful.

Layer name: batiment
Geometry: Polygon
Feature Count: 450768
Extent: (257013.000000, 6222050.000000) - (290846.000000, 6251270.000000)
Layer SRS WKT:
PROJCS["WGS 84 / Pseudo-Mercator",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY["EPSG","7030"]],
            AUTHORITY["EPSG","6326"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9122"]],
        AUTHORITY["EPSG","4326"]],
    PROJECTION["Mercator_1SP"],
    PARAMETER["central_meridian",0],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AXIS["X",EAST],
    AXIS["Y",NORTH],
    EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],
    AUTHORITY["EPSG","3857"]]
FID Column = fid
Geometry Column = geom
altitude_s: Real (0.0)
hauteur: Real (0.0)
nature: String (0.0)
nom: String (0.0)


* I am not sure how to check if my build has PROJ support, I dont get a warning message with my previous command, but I do have an error message if I try to specify a TILING_SCHEME:

ogr2ogr -f MVT ./batiment source.gpkg -dsco MAXZOOM=10 -dsco TILING_SCHEME="EPSG:3857,-20037508.343,20037508.343,40075016.686"
ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of OGRCoordinateTransformation failed.


Maria
________________________________________
De : Even Rouault [even.rouault at spatialys.com]
Date d'envoi : vendredi 8 juin 2018 15:01
Ă€ : gdal-dev at lists.osgeo.org
Cc : Maria Ibarra
Objet : Re: [gdal-dev] driver MVT, no tiles generated

On vendredi 8 juin 2018 12:26:06 CEST Maria Ibarra wrote:
> Hello,
>
>
> I tried to use the recently released MVT (Mapbox Vector Tiles) driver of
> GDAL 2.3 to write vector tiles in pbf format, but I get an output folder
> with nothing but a metadata.json file. No tile is generated. I tried
> different source formats, and different creation options, but I cannot
> manage to make it work.

How did you build GDAL / where did you get it from ?
I assume your buid has PROJ support, otherwise you would get a warning
message.

Can you retry by adding "--debug on" (double dash before debug) at the end of
your ogr2ogr command line, and include the output of this ?

Can you also include the output of "ogrinfo -al -so source.gpkg" ?

Even


--
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list