Re: ogr2ogr: csv to shpefile (newby question)

Bart van den Eijnden <[email protected]>
Newsgroups gmane.comp.gis.freegis
Organization OSGIS
Message-ID <[email protected]>
Use the virtual spatial data option for your source (this can be csv):

http://www.gdal.org/ogr/drv_vrt.html

Anyway, this question would be better addressed on the gdal-dev list.

Best regards,
Bart

Frank Koormann wrote:

>Tomas,
>
>* Tomas Zajc <[email protected]> [051228 23:27]:
>  
>
>>I'm not getting the error message any more but I'm not geting the three files 
>>either. Is there any way of getting th .shx .shp an .dbf from a csv with 
>>ogr2ogr?
>>    
>>
>
>No: http://gdal.maptools.org/ogr/drv_csv.html
>
>"OGR supports reading and writing non-spatial tabular data stored in
>text CSV files."
>
>  
>
>>Is there any other (command line) application that can convert csv to 
>>shapefiles? gen2shp only convert generate files that  can't contain
>>attributes.
>>    
>>
>
>But it shouldn't be that hard to cut the coordinates and the attributes
>from your csv into two different tables. Apply gen2shp to generate 
>the geometry files and in a second step run e.g. ogr2ogr to create 
>the dbase attributes.
>
>HTH,
>
>        Frank Koormann
> 
>  
>


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.