Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer

2010-01-22 Thread Stefan Schantz
Hi Greg, thank you! The issue was the two blanks ahead the coordinates. After I have removed them, the mapserver visualized the csv-file. Nevertheless, I don't understand, why ogr2ogr could read and transform the csv-file, but this is a different issue... Thanks! Stefan

Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer

2010-01-21 Thread Carlos Ruiz
Stefan, I asked you about your MAP definition to do some tests. This is what I tried and it works: It seems that you have to consider the following: 1. The name of the CSV file has to be the same as the layer name (layer boden and file name boden.csv). 2. You have to add the SrcLayer tag into

Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer

2010-01-21 Thread Frank Warmerdam
Stefan, I would suspect that your .vrt file contains relative rather than absolute paths and that they are relative to a different working directory if used from MapServer. There is an attribute for the SrcDataSource that may address this. It might help if you posted the VRT. 2010/1/20 Stefan

[mapserver-users] VRT / CSV data sources are not displayed in a layer

2010-01-20 Thread Stefan Schantz
Hello List, 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) LAYER NAME boden DEBUG on STATUS ON TYPE POINT # DATA

Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer

2010-01-20 Thread Carlos Ruiz
Check that you have your CSV like this: Lat,Lng,House 48.1,0.25,My house 49.2,1.1,My girlfriend's house 47.5,0.75,My mother in law's house And that you have your VTR like this: OGRVRTDataSource OGRVRTLayer name=neighborhood SrcDataSource[FILE]/SrcDataSource

Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer

2010-01-20 Thread Stefan Schantz
Hello Carlos, my CSV-file ans VRT-file looks like your examples: My CSV is x-utm,y-utm,Wert 742226., 5374978., 0.00E+00 743422., 5375072., 0.00E+00 744620., 5375166., 0.00E+00 ... and my VTR is OGRVRTDataSource OGRVRTLayer name=boden

Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer

2010-01-20 Thread Stefan Schantz
Well, here is the MAP definition, but the same mapfile works with the Shapefile, which I have transformed from the CSV/VRT-files, so I think, that the mapfile shouldn't be the issue. Stefan - MAP NAME rodos_bgefirst STATUS ON EXTENT 458690.8459237