<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Roshni,<br><br>You are almost there it seems! Try extending the DATA statement such that it states the srid (Spatial Reference System Identifier) explicitly:<br><br>    DATA "way from planet_osm_line using unique gid using srid=900913"<br><br>Hope this helps.<br><br>Regards,<br><br>Edward Mac Gillavry<br><br><br>&gt; From: roshni.aruna@gmail.com<br>&gt; To: mapserver-users@lists.osgeo.org<br>&gt; Subject: [mapserver-users] Re: Problem with OpenStreetMap, osm2pgsql, MapServer, OpenLayers and epsg=900913<br>&gt; <br>&gt; <br>&gt; Hi Milo, thanks for your reply.<br>&gt; <br>&gt; I have gone through the link you sent and after doing many tests i decided<br>&gt; to start again from zero without WMS. I downloaded the Frida_tutorial and<br>&gt; implemented it and it works perfectly fine (connecting to postgis and<br>&gt; reading info from the db). <br>&gt; After checking this, i just copy-pasted everything and just changed the info<br>&gt; of the connection and the table from where get the data and again the image<br>&gt; comes blank, so i guess the problem is between the db and the projection.<br>&gt; This is my new map file.<br>&gt; <br>&gt; MAP<br>&gt;   IMAGETYPE   JPEG<br>&gt;   EXTENT       3428000 5787000 3444000 5800000<br>&gt;   SIZE        600 600<br>&gt; <br>&gt;   IMAGECOLOR  100 100 100<br>&gt;   SHAPEPATH   "C:/ms4w/apps/palmarouting/data"<br>&gt; SYMBOLSET    "C:/ms4w/apps/palmarouting/symbols.sym"<br>&gt;   FONTSET     "C:/ms4w/apps/palmarouting/fonts/fonts.list"<br>&gt;   DEBUG 5<br>&gt;   CONFIG "MS_ERRORFILE" "C:\ms4w\apps\palmarouting\ms_error.txt"<br>&gt;   <br>&gt;   WEB<br>&gt;   TEMPLATE "template.html"<br>&gt;     #IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"<br>&gt;         IMAGEPATH "C:/ms4w/apps/palmarouting/tmp/"<br>&gt;     IMAGEURL  "C:/ms4w/apps/palmarouting/tmp/"<br>&gt;     <br>&gt;     <br>&gt; <br>&gt;   END<br>&gt;                 <br>&gt;   PROJECTION<br>&gt;    "init=epsg:900913"<br>&gt;   END<br>&gt; <br>&gt; <br>&gt;   LAYER <br>&gt;     NAME "roads"<br>&gt;     TYPE LINE<br>&gt;    CONNECTION "user=postgres password=postgres dbname=gis host=localhost<br>&gt; port=5432"<br>&gt;    CONNECTIONTYPE postgis<br>&gt;    DATA "way from planet_osm_line using unique gid"<br>&gt;   <br>&gt;    STATUS DEFAULT<br>&gt;   #LABELITEM 'strname'<br>&gt;   CLASSITEM    'highway'<br>&gt;         CLASS<br>&gt;                   EXPRESSION '1'<br>&gt;                   STYLE<br>&gt;                   COLOR        255 0 0 <br>&gt;                           SIZE 6<br>&gt;                   END         <br>&gt;         END<br>&gt;       CLASS<br>&gt;                EXPRESSION '3'<br>&gt;                STYLE<br>&gt;                      COLOR        0 255 0 <br>&gt;                END         <br>&gt;       END<br>&gt;       CLASS<br>&gt;                EXPRESSION /./<br>&gt;                STYLE<br>&gt;                      COLOR        200 200 200 <br>&gt;                END         <br>&gt;       END<br>&gt; END<br>&gt; <br>&gt;   LAYER<br>&gt;       NAME "path"<br>&gt;       CONNECTION "user=postgres password=postgres dbname=gis host=localhost<br>&gt; port=5432"<br>&gt;       CONNECTIONTYPE postgis<br>&gt;     STATUS ON<br>&gt;       TYPE LINE<br>&gt;                           <br>&gt;       CLASS<br>&gt;         NAME "path"<br>&gt;         STYLE<br>&gt;         SYMBOL 'circle'<br>&gt; COLOR 255 0 0<br>&gt; SIZE 8<br>&gt;         END<br>&gt;       END<br>&gt; END<br>&gt; END <br>&gt; <br>&gt; <br>&gt; The only difference i can see between the Frida db and mine is that in<br>&gt; Fridadb the srid set in the geometry_columns is set to -1, but in mine its<br>&gt; 900913. I have tried to apply this diff in my map file but with no success<br>&gt; :(<br>&gt; <br>&gt; What can i do??? Thanks a lot!!<br>&gt; -- <br>&gt; View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-OpenStreetMap-osm2pgsql-MapServer-OpenLayers-and-epsg-900913-tp5022925p5026547.html<br>&gt; Sent from the Mapserver - User mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; mapserver-users@lists.osgeo.org<br>&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>                                               </body>
</html>