java transform projection EPSG:900913 to EPSG:4326

in the openlayers we can simple transform EPSG:900913 to EPSG:4326 I'm look for a java lib can do that. here I found this, http://www.jhlabs.com/java/maps/proj/index.html Jerry Huxtable's delightful Globe Applet on the page you cited is indeed written in Java, as seen in the download. The class com.jhlabs.map.proj.ProjectionFactory contains a method named fromPROJ4Specification(), which returns a com.jhlabs.map.proj.Projection. You can use the EPSG:900913 parameters specified on the OpenLayers site to create the desired projection. Geotools is probably the best library to use for this. Taking a look at their CRS tutorial, it looks trivial to transform from one coordinate system to another using: Proj4J is a Java library to transform point coordinates from one geographic coordinate system to another, including datum transformations. The core of this library is a port of the PROJ.4 C library. Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 18, 2016 @ 10:09 am