[OpenLayers-Users] Convert Coordinates EPSG:4326 to 31466
doesn?t work ??
Tobias Wendorff
tobias.wendorff at uni-dortmund.de
Thu Oct 8 09:38:33 EDT 2009
Bytechanger schrieb:
> MsgBox shows source coordinates .... no convert!
Download proj4js and include it:
<script type="text/javascript" src="../proj4js/lib/proj4js.js"></script>
<script type="text/javascript"
src="../proj4js/lib/projCode/merc.js"></script>
<script type="text/javascript"
src="../proj4js/lib/projCode/tmerc.js"></script>
Then define everthing:
Proj4js.defs['EPSG:4326'] = '+proj=longlat +ellps=WGS84 +datum=WGS84
+nadgrids=@null +no_defs';
Proj4js.defs['EPSG:900913']= '+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
+no_defs';
Proj4js.defs['EPSG:31466'] = '+proj=tmerc +lat_0=0 +lon_0=6 +k=1.000000
+x_0=2500000 +y_0=0 +ellps=bessel +units=m +nadgrids=@null +no_defs';
Okay, you don't need 909913 and merc, I think ... but I like to
have control about these settings.
More information about the Users
mailing list