Java code for WGS84 to Google map position and back

前端 未结 6 824
陌清茗
陌清茗 2020-12-31 12:16

Searching for some sample code for converting a point in WGS84 coordinate system to a map position in Google Maps (pixel position), also supporting zoom levels.

If

6条回答
  •  春和景丽
    2020-12-31 13:01

    GeoTools has code to transform to and from about any coordinate system you could imagine, and among them also Google Map's. It's also open source. However, it should also be pointed out that GeoTools is a large library, so if you're looking something small, quick and easy, it's likely not the way to go.

    I would highly recommend it though if you're going to do other GIS/coordinate transformations, etc. as well.

    If you use GeoTools or something similar, you might also be interested in knowing that the Google Map coordinate system is called EPSG 3785.

提交回复
热议问题