Frederick, I think you have to use proj4js to transformations (except
for the EPSG:43206 & EPSG:900913, which are supported by default):
http://trac.osgeo.org/openlayers/wiki/Documentation/Dev/proj4js
amaneiro
On 16/02/11 10:31, Frederick Löbig wrote:
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:: [email protected] <mailto:[email protected]>
P: +49 (0) 69 - 78 99 52 41
M: +49 (0) 174 - 70 89 296
---
*Office:*
*euNetworks GmbH*
Ludwig-Landmann-Straße 405
60486 Frankfurt am Main
P: +49 (0) 69 - 90 554 - 532
E: [email protected] <mailto:[email protected]>
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.
*
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users