ThinkGeo.com    |     Blog    |     Wiki    |     Support

4326 projection of MBTiles map

Hi I am trying to use worldmap in MBTiles format in my project which all the map icons and calculation are in 4326. But it seems that MBTiles map is in 3857.

For overall code flow please refer to MBTilesExtractor sample code.
I tried adding the following but it does not seems to work.

projection = new Proj4Projection(3857, 4326);
projection.Open();

thinkGeoMBTilesFeatureLayer.FeatureSource.Projection = projection;

What’s your suggestion to do the projection? Is there a 3857 version of MBTiles map?

Thanks,

Liang

Hi Liang_Lu,

By default the MBTiles is projection 3857, it don’t have 4326 version.

Regards,

Ethan

Hi,

does thinkgeo library have functions to convert a point from 3857 to 4326 and vise versa?

Thanks,

Liang

Hi Liang_Lu,

Proj4Projection can convert the points between different projection.

But for MBTiles the Proj4Projection is not helpful, it don’t support 4326, even you convert the data it also cannot render correct.

Regards,

Ethan