<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hi, </DIV>
<DIV> </DIV>
<DIV>I'm trying to overlay some wms-layers (with arcims) onto google maps and it's not possible to add a new epsg to the ArcIms, so i can't work with epsg900913 like in <A href="http://trac.openlayers.org/wiki/SphericalMercator">http://trac.openlayers.org/wiki/SphericalMercator</A></DIV>
<DIV> </DIV>
<DIV>is there any other possibility?</DIV>
<DIV> </DIV>
<DIV>Is there a way to do this?</DIV>
<DIV><BR><BR>>>> Richard Duivenvoorde <rdmailings@duif.net> 10/25/07 11:44 >>><BR><BR>Ok FIXED.... I can confirm myself now. Stuff lines up ok.<BR><BR>Old mistake: epsg:900913 was ok, but the string for the source <BR>projection was wrong on the server (old dutch 28992 problem :-( )<BR><BR>Lining up beautifull now!<BR><BR>Richard D<BR><BR>Richard Duivenvoorde wrote:<BR>> Hi List,<BR>> <BR>> I'm trying to overlay a google map with data from postgis database <BR>> (roads). On larger scale things seem to be ok, but when zoomed in at <BR>> 'meters' scale, roads do not match:<BR>> <A href="http://www.duif.net/900913">http://www.duif.net/900913</A>-mismatch.jpg<BR>> <BR>> Question: has somebody experienced this? Or does somebody have an <BR>> example of perfect matching of two layers?<BR>> <BR>> When I look at the multimap mercator example:<BR>> <A href="http://www.openlayers.org/dev/examples/multimap">http://www.openlayers.org/dev/examples/multimap</A>-mercator.html<BR>> zooming in at for example Amsterdam, The Netherlands, I see about the <BR>> same mismatch??<BR>> <BR>> my code:<BR>> <BR>> var options = {<BR>> projection: "EPSG:900913",<BR>> units: "m",<BR>> maxResolution: 156543.0339,<BR>> maxExtent: new OpenLayers.Bounds(-20037508, -20037508,<BR>> 20037508, 20037508.34)<BR>> };<BR>> map = new OpenLayers.Map('map', options);<BR>> var layer = new OpenLayers.Layer.Google( "Google Hybrid", {type: <BR>> G_HYBRID_MAP, 'sphericalMercator': true});<BR>> map.addLayer(layer);<BR>> <BR>> layer = new OpenLayers.Layer.WMS( "roads", <BR>> 'http://localhost/cgi-bin/mapserv.exe?map=test.map&', {layers: 'roads', <BR>> 'format':'image/gif', TRANSPARENT:true}, {'buffer': 0, isBaseLayer: <BR>> false, singleTile: true} );<BR>> <BR>> Tried both reprojecting the data in postgis, using<BR>> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 <BR>> +k=1.0 +units=m +nadgrids=@null +no_defs<BR>> OR<BR>> let mapserver reproject the data. Both give about the same shifts...<BR>> <BR>> TIA<BR>> <BR>> Richard Duivenvoorde<BR>> <BR>> _______________________________________________<BR>> Users mailing list<BR>> Users@openlayers.org<BR>> <A href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR>> <BR>> <BR><BR>_______________________________________________<BR>Users mailing list<BR>Users@openlayers.org<BR><A href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR></DIV></BODY></HTML>