mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

Convert spatialite to mbtiles? #1492

Closed bmehta closed 8 years ago

bmehta commented 8 years ago

Is there a way to convert spatialite to mbtiles using mapbox studio?

springmeyer commented 8 years ago

If https://github.com/mapbox/mapnik-omnivore were to gain knowledge of sqlite files then Mapbox Studio Classic could support them directly since Mapnik supports sqlite (with spatialite geometries). But until then you'll need a workaround. I recommend you convert your data to another format that is supported like GeoJSON, or Shapefile. Then load that file in as a new "Source". Then you can create an mbtiles containing vector tiles. Does that help?

/cc @lyzidiamond

springmeyer commented 8 years ago

@bmehta - I stand corrected. SQlite files (containing either WKB geometries or spatialite geometries) should be supported: Just click the SQLite word on the lower part of the data loading UI rather than clicking "Browse":

screenshot_from_2015-10-28_18_11_26_360

And then let us know if you have any trouble. Please create a new issue if you do have trouble.