문제

I would like to use the Spherical Mercator algorithm in my application to project lat/lon points to a 2D plane.
The Spherical Mercator is also known as Google Mercator, EPSG-900913 or EPSG-3785.

There are several pages how to use this in JavaScript via the OpenLayers library, but I don't use JavaScript.

The documentation in OpenLayers didn't help me at all so I would like to ask for help how to implement the Google Mercator in Java.

도움이 되었습니까?

해결책

you can use Libraries to convert form WGS84 (lon/lat) to Mercator: for Java use eg. geotools or proj4j

if you whant to implement that by yourself: the article at Wikipedia is quite useful: http://en.wikipedia.org/wiki/Mercator_projection

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top