<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><OGRVRTDataSource><br><OGRVRTLayer name="neighborhood"><br> <SrcDataSource>[FILE]</SrcDataSource><br> <GeometryType>wkbPoint</GeometryType><br> <LayerSRS>[YOUR SRS]</LayerSRS><br> <GeometryField encoding="PointFromColumns" x="Lng" y="Lat"/><br></OGRVRTLayer><br></OGRVRTDataSource><br></pre><div> </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 <SSchantz@BfS.de><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> NAME "boden"<br> DEBUG on<br> STATUS ON<br> TYPE POINT<br># DATA "/daten/csv/boden/boden" # Datenquelle Shapefile<br> CONNECTION "/daten/csv/boden.vrt"<br> CONNECTIONTYPE OGR<br><br> PROJECTION<br> "init=epsg:25832"<br> END<br> METADATA<br> "WMS_TITLE" "test"<br> "WMS_SRS" "EPSG:25832"<br> "WMS_ABSTRACT" "test"<br> "WMS_FEATURE_INFO_MIME_TYPE" 'text/html'<br> END<br><br> CLASS<br> NAME "test"<br>
STYLE<br> SYMBOL "circle"<br> SIZE 15 COLOR 90 90 90<br> END<br> END END<br><br><br>But if I transform the CSV/VRT-file into a Shapefile 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>