I have no experience with this code, but can confirm this is the way to go.
AFAIK this will probably make it into OpenLayers 2.6, so maybe it's still a bit too early to attempt this (depending on your javascript skills ofcourse). Maybe someone else can give you more pointers. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Hufjan <[EMAIL PROTECTED]> Naar: Bart van den Eijnden OSGIS <[EMAIL PROTECTED]>, openlayers users <[email protected]> Onderwerp: Re: [OpenLayers-Users] Retrieving different coordinates Datum: 10/12/07 09:56 > > > > > > > > Hello Bart, > I experimented with my map trying to get coordinates for EPSG:4326 from > my EPSG:32632.Map. What I did is changing 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-projection I rectified it to. So my result is just a half step > forward. > Coordinates fine, map declined :-( > > I discussed this theme in the Geoserver-List as well. There I was told > about the proj4j-library - especially about Mike Adair sandbox (http://trac.openlayers.org/browser/sandbox/madair/lib). > This is meant to reproject coordinates from UTM (for all SRS handeling > UTM?) to EPSG:4326. > But I was was only told where to find it. So far nobody seems to have > experience with it neither knows if it's working. I also didn't find > any tutorials how to deal with it. > > Do you ever met this problem? > > Best regards, > cuxland > > Bart van den Eijnden (OSGIS) schrieb: > > Geoserver can reproject the GeoTiff for you to EPSG:4326. This is what OL > uses by default. > > So just look at the examples/wms.html and add your Geoserver URL in there. > > What do you mean with retrieve coordinates? Maybe the MousePosition Control > is what you are looking for. Add that Control to your Map and you'll see the > coordinates on mouse over. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Janes Huff <[EMAIL PROTECTED]> > Naar: openlayers users <[email protected]> > Onderwerp: [OpenLayers-Users] Retrieving different coordinates > Datum: 29/11/07 10:51 > > > > Hello, > I must introduce myself as a Newbie that searched a week inside this > list getting more and more confused. > > I'm simply looking to an answer for this question: > > I loaded a GeoTIFF to Geoserver (UTM32N/WGS84 = SRS:32632). Is it now > possible to retrieve geographic coordinates (Lat/Lon/WGS84; SRS:4326) via > OpenLayers?? > > Just a hint where to find more information would be very helpful. > > Exhausted (from searching) greetings, > cuxland > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > > > > > > > > > > > > -- > +------------------------------------------------ > | Dipl.-Geogr. Janes Huff > | Wilhelmshavener Str. 30 > | 10551 Berlin > | > | Tel.: +49(0)30 - 44 70 47 96 > | Mobil: +49(0)176 - 23 43 30 99 > | Fax: +49(0)1212-5-113-83-519 > | > | Homepage: www.radinformix.de > | > | Skype: hufjan > | ICQ: 430988829 > | Yahoo: cuxland > +------------------------------------------------ > > > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
