consbio / mbtileserver

Basic Go server for mbtiles
ISC License
657 stars 104 forks source link

it is not support EPSG 4326 #163

Closed Lemonjay closed 1 year ago

Lemonjay commented 1 year ago

Is any way to support the 4326 coordinates

brendan-ward commented 1 year ago

@Lemonjay your question / issue is not at all clear. Can you please clarify specifically what you are asking for here?

mbtileserver simply serves tiles that are created in advance using some other tool. For instance, tippecanoe converts from GeoJSON in EPSG:4326 coordinates to spherical Mercator coordinates, which are the standard for mbtiles files. mbtileserver does not process tiles. So - if you want to support EPSG 4326 coordinates within your tiles - which does not follow the mbtiles standard, you have to create your tiles in that coordinate system but trick your tiling engine into thinking that they are in spherical Mercator coordinates like in this example. However, that means that you won't be able to leverage existing basemaps.

brendan-ward commented 1 year ago

Nothing actionable here, closing