Skip to main content
Question

Convert Esri File GDB/Shapefiles to MBTiles

  • January 9, 2020
  • 7 replies
  • 393 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

takashi
Celebrity
  • 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
Celebrity
  • January 9, 2020

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
Celebrity
  • 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
Celebrity
  • January 9, 2020

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+11
  • Safer
  • January 28, 2025

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!