Skip to main content
Question

Convert Esri File GDB/Shapefiles to MBTiles


Is there anyone here already converted esri file gdb or shapefiles to mbtiles? I tried but it's giving me this errors:

MBTILES writer: Failed to obtain raster from feature. Only features with raster geometry are expected

A fatal error has occurred. Check the logfile above for details

Thanks for the help.

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 9, 2020

The MBTiles writer creates raster tileset, you cannot create vector tileset with the MBTiles writer.

If you are using FME 2019.2+, you can use the Mapbox Vector Tile (MVT) Tileset Writer instead.


Hi Takashi,

Thanks for the prompt reply. Is this Mapbox Vector Tile (MVT) can I use in Mapbox? I didn't see the extension for this is .mbtiles.


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 9, 2020
juneraquelreyes wrote:

Hi Takashi,

Thanks for the prompt reply. Is this Mapbox Vector Tile (MVT) can I use in Mapbox? I didn't see the extension for this is .mbtiles.

A file with the extension .mbtiles is for a raster tileset, not for vector tileset.

A Mapbox Vector tileset consists of a metadata.json file and folders corresponding to zoom levels, each folder contains subfolders storing .mvt files for each tile.

See also the help to learn more: Mapbox Vector Tile (MVT) and MVT Tileset Reader/Writer (Technology Preview)


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 9, 2020

If you are attempting to create a raster tileset (mbtiles dataset) from vector geometries stored in a GIS dataset such as File Geodatabase or Shaperile, you will have to convert the vector geometries (point, line, polygon etc.) into an image raster before writing with the MBTiles writer. In order to create a raster from vector geometries, consider using an appropriate transformer - e.g. ImageRasterier or the MapnikRasterizer.


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 9, 2020
juneraquelreyes wrote:

Hi Takashi,

Thanks for the prompt reply. Is this Mapbox Vector Tile (MVT) can I use in Mapbox? I didn't see the extension for this is .mbtiles.

If you are attempting to create a raster tileset (mbtiles dataset) from vector geometries stored in a GIS dataset such as File Geodatabase or Shaperile, you will have to convert the vector geometries (point, line, polygon etc.) into an image raster before writing with the MBTiles writer. In order to create a raster from vector geometries, consider using an appropriate transformer - e.g. ImageRasterier or the MapnikRasterizer.


olofsmitt
Participant
Forum|alt.badge.img+1
  • Participant
  • January 24, 2025

Any new updates of this question? From my understanding vector data is now possible to produce with FME MapBox MBTiles Vector Tiles (MVT) Reader/Writer. Is there some documentation or typical workflow to read more about usage? I want to convert symbolized vector data, preferably Esri, to a MBTile vector package.


saraatsafe
Safer
Forum|alt.badge.img+8

Hi ​@olofsmitt, you can find the MapBox MBTiles Vector Tiles Reader/Writer documentation here. I don’t believe we have any tutorials on transforming vector data to MBTiles at the moment but please feel free to post a new question on the Community if you run into any issues!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings