<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi,<br><br>just an idea of mine:<br>do you use 'sphericalMercator': true at your google layer?<br><br>best regards<br>Sarah<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">Von:</span></b> José Angel Rodríguez Leyva &lt;jar.cub@gmail.com&gt;<br><b><span style="font-weight: bold;">An:</span></b> users@openlayers.org<br><b><span style="font-weight: bold;">Gesendet:</span></b> Dienstag, den 20. April 2010, 17:33:46 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> [OpenLayers-Users] Projection problem<br></font><br>Hi,<br><br>I'm using Postgres/PostGIS with Geoserver and OpenLayer on
 Windows for<br>represent a set of points and polygons layers over Google Maps base<br>layers. All the spatial data are in EPSG:4326 projections, since the<br>WKT geometries on postgres's tables, the geometry_columns's register<br>for postgis, and the layer setup in geoserver. When I combine the WMS<br>layers from geoserver with anyone of Google all my features get<br>displaced notably to the north; especially in bigger scales.<br><br>I know that Google Maps projection is EPSG:900913 and thats why I<br>tried to reproject the Geoserver layers to get all in the same<br>reference. Sometimes I got the same result and others got nothing. One<br>of this tries were to use the projection and displayPorjection<br>properties in this way:<br><br>projection: new OpenLayers.Projection("EPSG:900913"),<br>displayProjection: new OpenLayers.Projection("EPSG:4326"),<br><br>But isn't clear for me if I had to reproject the layers from Geoserver<br>to 900913 of just left
 like it is. So I tried some configs variants<br>between declared and native (changing at the db source) SRS property<br>in layer definition. No one works. Now I don't use displayProjection<br>until I can understand good enought how it works.<br><br>This is a snapshot of my data and config in Postgress<br><br>- The geometries were inserted with a sentence like this:<br><br>INSERT INTO "TABLE"("theGeom") (geomfromtext('POINT(-1.6556196<br>42.8149421)', 4326));<br><br>- and geometry_columns updated:<br><br>17422;"pg_catalog";"public";"TABLE";"theGeom";2;4326;"POINT"<br><br>Then I have used in Geoserver the configurations variants I said<br>before. and 'srs: "EPSG:4326"' in property&nbsp; of layer in Openlayers.<br><br>I think that I missed another config property or I'm not using the<br>right projection in some property, but now In don't know what to do.<br><br>Thanks in advanced,<br><br>José
 A.R.<br><br>o.o<br>..o<br>O..<br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@openlayers.org" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br></div></div>
</div><br></body></html>