[gdal-dev] Vector Tile size change in Ogr2Ogr

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Fri Mar 12 01:00:14 PST 2021


Hi,

Bounds and other metadata are explained in
https://github.com/mapbox/mbtiles-spec/blob/master/1.3/spec.md.

"The metadata table SHOULD contain these four rows:

bounds (string of comma-separated numbers): The maximum extent of the
rendered map area. Bounds must define an area covered by all zoom levels.
The bounds are represented as WGS 84 latitude and longitude values, in the
OpenLayers Bounds format (left, bottom, right, top). For example, the bounds
of the full Earth, minus the poles, would be: -180.0,-85,180,85.

    center (string of comma-separated numbers): The longitude, latitude, and
zoom level of the default view of the map. Example: -122.1906,37.7599,11

    minzoom (number): The lowest zoom level for which the tileset provides
data"

    maxzoom (number): The highest zoom level for which the tileset provides
data

Metadata helps the vector tile client to zoom to correct area, at reasonable
scale. There is no connection with EXTENT. Extent defines the precision of
the local coordinate system that is used within a vector tile. The same
z/x/y tile is always located in the same place on Earth and that location is
defined by the tiling schema. Geometries within a tile are encoded by using
integer numbers starting from (0 0) that is at top left corner. EXTENT
defines the lower right corner in local coordinates and by default it is
(4096 4096).

All this is well described in the vector tile specification
https://github.com/mapbox/vector-tile-spec/tree/master/2.1.

-Jukka Rahkonen-
   


MRRAJESH wrote
> Thank you Even.
> 
> Can you please explain the BOUNDS usage? How it is related to EXTENT?
> 
> Regards,
> Rajesh
> 
> 
> 
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
> _______________________________________________
> gdal-dev mailing list

> gdal-dev at .osgeo

> https://lists.osgeo.org/mailman/listinfo/gdal-dev





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list