The documentation for Mapbox MBTiles MVT writer says the tiles are generated in WebMercator (EPSG:3857). Does this mean that you have to reproject first or the writer does this for you?
The writer will do it for you, as long as the output features have been tagged with the actual coordinate system before they hit the writer (e.g. CoordinateSystemSetter). Just be aware that there may be some edge cases where the reprojection may not give you the result you expect, in particular where local rules must be applied.
For this reason I'm not a big fan of implicit reprojections, I find that it "hides" some key functionality, so in 99% of cases I tend to manually reproject the data with a transformer such as the CsMapReprojector etc. That also allows me the opportunity to insert a comment to explain why it's necessary, etc.
The writer will do it for you, as long as the output features have been tagged with the actual coordinate system before they hit the writer (e.g. CoordinateSystemSetter). Just be aware that there may be some edge cases where the reprojection may not give you the result you expect, in particular where local rules must be applied.
For this reason I'm not a big fan of implicit reprojections, I find that it "hides" some key functionality, so in 99% of cases I tend to manually reproject the data with a transformer such as the CsMapReprojector etc. That also allows me the opportunity to insert a comment to explain why it's necessary, etc.
Thank you David. I found it odd that a writer was performing the reprojection for me, I am not aware of another writer that does this. I other reason I asked is I use Tippecanoe from Mapbox to generate vector tile mbtile files and the geoJSON input is EPSG:4326 or EPSG:3857. The Mapbox vector tile spec 2.1 states that "Vector Tiles MAY be used to represent data with any projection and tile extent scheme." so it found it odd that the writer would force a projection to an output.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.