Hopefully not too late to the party, but I just wanted to point out that 
although Google Maps uses geographic coordinates (lon/lat), the EPSG code for 
Spherical Mercator is not EPSG:4326, but the unofficial EPSG:900913 and the 
official EPSG:3785 and EPSG:3857. Just so you pass along the correct srs 
parameter from your OL application to GeoServer.

Regards,

E


> From: [email protected]
> To: [email protected]; [email protected]; 
> [email protected]
> Date: Thu, 4 Aug 2011 08:41:12 -0400
> Subject: Re: [Geoserver-users] Changing projection in code
> 
> The other way to approach it is to have GeoServer reproject it on the fly by
> adding that projection to your list of available projections in the WMS
> limited SRS list.  This pushes the work to the server side.
> 
> Stephen Mather
> Geographic Information Systems (GIS) Manager
> (216) 635-3243
> [email protected]
> clevelandmetroparks.com
> 
> 
> 
> 
> -----Original Message-----
> From: Lucas Heezen - Covadis [mailto:[email protected]] 
> Sent: Thursday, August 04, 2011 8:27 AM
> To: Mustafa646; [email protected]
> Subject: Re: [Geoserver-users] Changing projection in code
> 
> 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-tp6652101
> p6652101.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
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 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

Reply via email to