[OpenLayers-Users] Transformation Problem

Frederick Löbig frederick.loebig at live.de
Wed Feb 16 04:31:22 EST 2011


Hey there,

I have a serious problem with a simple coordinate transformation. The Problem is, that the source coordinates won't be transformed. The result is a coordinate-pair similar to the source coordinates. This is my code:

var target = new OpenLayers.LonLat(split_lon,split_lat) ; //split_lon = 8.6108243631697 , split_lat = 50.126971489974, this is also the result
var source_proj = new OpenLayers.Projection("EPSG:900913") ;
var target_proj = new OpenLayers.Projection("EPSG:31467") ;
var transformed_coords = target.transform(source_proj,target_proj);

I have also tried to use the maps projection-object as target-projection but with no success. Why is that?

Best,
Freddy


Frederick Löbig
Röderichstraße 59
60489 Frankfurt am Main
---
E:: Frederick.Loebig at grunsnid.de
P: +49 (0) 69 - 78 99 52 41
M: +49 (0) 174 - 70 89 296
---
Office:
euNetworks GmbH
Ludwig-Landmann-Straße 40560486 Frankfurt am MainP: +49 (0) 69 - 90 554 - 532
E: Frederick.Loebig at eunetworks.com
S: floebig

This email and any attachments may contain confidential and/or legally privileged information. If you are not the intended recipient, please delete the email without reading it and notify the sender.

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110216/aa04642c/attachment.html


More information about the Users mailing list