<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt"><pre>Check that you have your CSV like this:<br><br>Lat,Lng,House<br>48.1,0.25,"My house"<br>49.2,1.1,"My girlfriend's house"<br>47.5,0.75,"My mother in law's house"<br><br>And that you have your VTR like this:<br><br>&lt;OGRVRTDataSource&gt;<br>&lt;OGRVRTLayer name="neighborhood"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;SrcDataSource&gt;[FILE]&lt;/SrcDataSource&gt;<br>    &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;<br>    &lt;LayerSRS&gt;[YOUR SRS]&lt;/LayerSRS&gt;<br>    &lt;GeometryField encoding="PointFromColumns" x="Lng" y="Lat"/&gt;<br>&lt;/OGRVRTLayer&gt;<br>&lt;/OGRVRTDataSource&gt;<br></pre><div>&nbsp;</div><div>IC Carlos Ruiz</div><div style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><br><font face="Tahoma"
 size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Stefan Schantz &lt;SSchantz@BfS.de&gt;<br><b><span style="font-weight: bold;">To:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, January 20, 2010 9:32:12 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] VRT / CSV data sources are not displayed in a layer<br></font><br>
Hello List,<br><br>The following layer uses a CSV-file (together with a VRT-File (Virtual Format) ) as datasource . When I try to visualize the layer, nothing is shown (neither the data nor error messages; shp2img shows also nothing)<br><br>LAYER<br>&nbsp;  NAME "boden"<br>&nbsp;  DEBUG on<br>&nbsp;  STATUS ON<br>&nbsp;  TYPE POINT<br># DATA "/daten/csv/boden/boden" # Datenquelle Shapefile<br>&nbsp;  CONNECTION&nbsp;  "/daten/csv/boden.vrt"<br>&nbsp;  CONNECTIONTYPE OGR<br><br>&nbsp;  PROJECTION<br>&nbsp; &nbsp; &nbsp;  "init=epsg:25832"<br>&nbsp;  END<br>&nbsp; &nbsp; &nbsp; &nbsp;  METADATA<br>&nbsp; &nbsp; &nbsp;  "WMS_TITLE"&nbsp; &nbsp; "test"<br>&nbsp; &nbsp; &nbsp;  "WMS_SRS"&nbsp;  "EPSG:25832"<br>&nbsp;  "WMS_ABSTRACT"&nbsp; &nbsp; "test"<br>&nbsp; &nbsp; &nbsp;  "WMS_FEATURE_INFO_MIME_TYPE" 'text/html'<br>&nbsp;  END<br><br>&nbsp; &nbsp; &nbsp;  CLASS<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME "test"<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 STYLE<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  SYMBOL "circle"<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  SIZE 15&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 90 90 90<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br>&nbsp; &nbsp; &nbsp;  END&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  END<br><br><br>But if I transform the CSV/VRT-file into a Shapefile&nbsp; via ogr2ogr<br><br>ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt<br><br><br>the layer displays the data.<br>What is wrong with my VRT/CSV-datasource in the mapfile?<br><br>Thanks for any idea.<br><br>Best regards<br>Stefan<br>_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><span><a target="_blank"
 href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span><br></div></div>
<!-- cg19.c1.mail.mud.yahoo.com compressed/chunked Wed Jan 20 07:31:57 PST 2010 -->
</div><br>

      </body></html>