[Freegis-list] ogr2ogr: csv to shpefile (newby question)

Frank Koormann frank.koormann at intevation.de
Thu Dec 29 10:30:36 CET 2005


Tomas,

* Tomas Zajc <tzajc at conae.gov.ar> [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
 
-- 
Frank Koormann                             <frank.koormann at intevation.de>
 Professional Service around Free Software       (http://intevation.net/)
 FreeGIS Project                                 (http://freegis.org/)




More information about the Freegis-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)