[Geoserver-users] Changing Coordinates [Sec=Unclassified]

Cuxland,

I think I understand your question now - what you want to do is show a map in the EPSG:32632 SRS, using data that is also defined in EPSG:32632, but have the coordinates that show in openlayers from the mouseover event displayed in EPSG:4326. Is that right?

As far as I know, you cant do it, at least not like that, or without hacking some openlayers code. The reason being is this: Each map you request has its own SRS (the one defined in the url you mentioned). Each layer you put on the map also has its own SRS, but will be projected in the SRS that the map uses (providing you have stated its original SRS where you set it up in openlayers). The coordinates shown on the map in openlayers always show the current mouse position using the SRS that the MAP uses, which, makes perfect sense.

If you do find an easy way to specify which coordinate system you would like the coordinates displayed in, I’d be interested to know, as I may have some use for it also.

Regards,

Miles

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net [mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of cuxland
Sent: Monday, 10 December 2007 11:57 AM
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Changing Coordinates [Sec=Unclassified]

So far I was able to just change the request from

http://localhost:8080/geoserver/wms?bbox=277023.0864899452,5233434.01524883,923881.7291952965,6106592.061342626&styles=&Format=application/openlayers&request=GetMap&layers=topp:Deutschland&width=457&height=550&srs=EPSG:32632 to

http://localhost:8080/geoserver/wms?bbox=5.508,47.117,15.619,55.104&styles=&Format=application/openlayers&request=GetMap&layers=topp:Deutschland&width=457&height=550&srs=EPSG:4326

Then I get my coordinates in Lat/Lon.
But I didn’t want to convert my ‘mappicture’. It should remain in the same UTM-prjection I rectified it to. So my result is just a half step forward.
Coordinates fine, map declined :frowning:

cuxland

cuxland schrieb:

Hi, I must introduce myself as a 1st class Newbie that searched a week 
inside this list getting more and more confused.

I'm simply looking to an answer for this question:

Is it possible to load a GeoTIFF to Geoserver (UTM32N/WGS84 = SRS:32632) 
and to retrieve geographic coordinates (Lat/Lon/WGS84; SRS:4326) via a 
client, e.g. OpenLayers??

Just a hint where to find more information would be very helpful.

Excausted (from searching) greetings,
Janes

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
[http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4](http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4)
_______________________________________________
Geoserver-users mailing list
[Geoserver-users@lists.sourceforge.net](mailto:Geoserver-users@anonymised.comurceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)

  

Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
Visit our web site at http://www.antarctica.gov.au/


Miles Jordan ha scritto:

Cuxland,
The coordinates shown
on the map in openlayers always show the current mouse position using the SRS that the MAP uses, which, makes perfect sense.
If you do find an easy way to specify which coordinate system you would like the coordinates displayed in, I'd be interested to know, as I may have some use for it also.

To achieve something like this one would have either to:
a) call some server side service to do the reprojection (like a CTS,
   coordinate transformation service)
b) do the reprojection in javascript

First option would allow the client to access the full range of
reprojections available on the server, but it would lag quite
a big behind the mouse movement due to network delay (on an internet
connection I'd say you could have to say still in a point for half
a second to actually see its transformed coordinates)

Second option would be to use a library known as proj4j which is
in development somewhere in the OL or MapBuilder sandboxes.
There is a copy in the Mike Adair sandbox here for example:
http://trac.openlayers.org/browser/sandbox/madair/lib
That library might be able to handle reprojection from UTM
to 4326. Unfortunately I just know it's there, to check if
it's already usable and up to the task you will have to
inquiry OL and MapBuilder developers on the respective users
mailing lists.

Cheers
Andrea