You can reproject with OpenLayers like this:
var map = new OpenLayers.Map("map", {
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326")
});
You need to use proj4js to do this:
http://trac.osgeo.org/proj4js/wiki/Download
Then you need to define your projection with proj4js (couldn't find your
projection on spatialreference.org)...
Met vriendelijke groet,
Lucas Heezen
Covadis b.v.
t: 026 3616600
Geograaf 12
f: 026 3612317
6921 EW Duiven
e: [email protected]
-----Oorspronkelijk bericht-----
Van: Mustafa646 [mailto:[email protected]]
Verzonden: donderdag 4 augustus 2011 12:06
Aan: [email protected]
Onderwerp: [Geoserver-users] Changing projection in code
I have a shapefile with native projection SWREFF99_1800. For publishing on
Geoserver, I changed it from SWREFF99_1800 to Spherical Mercator (EPSG:4326) by
using third party tool ogr2ogr. And finally i published it on Geoserver and
Displayed it over Google base map in my OL Web Page.
I want to change this projection (from SWREFF99_1800 to EPSG:4326) by using
some code in my OL web page instead of changing it by using third party tool
before publishing it on Geoserver. Is it possible and if yes, then what will be
the possible code/method for this ?
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Changing-projection-in-code-tp6652101p6652101.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend
event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users