Posts

Showing posts with the label proj4j

gvSIG 2.0.0: Adding EPSG:900913 to the Proj4j-based plugin

Image
Some WMS and WMTS servers offer their images in the popular coordinate reference system EPSG:900913 (also known as EPSG:3857, "Spherical Mercator", "The OpenStreetMap/Google Maps coordinate system", etc). The new Proj4j -based plugin for gvSIG 2.0.0 (which is not yet the recommended CRS plugin) supports EPSG:3857 but does not know about the alternative code EPSG:900913. With these steps, we can add EPSG:900913 to the original Proj4j library and therefore will be able to use it naturally within gvSIG 2.0.0. I am assuming you have set up an Eclipse gvSIG development workspace : Download the Proj4j library from its SVN repository and re-build it after adding this line to the epsg list (I have truncated the second line just to show it here): # OSM/Google Maps Spherical Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs Install the resulting jar file to your local repository: ...