Re: ogr2ogr: csv to shpefile (newby question)
Tomas Zajc <[email protected]>
| Newsgroups | gmane.comp.gis.freegis |
|---|---|
| Organization | CONAE |
| Message-ID | <[email protected]> |
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? Is there any other (command line) application that can convert csv to shapefiles? gen2shp only convert generate files that can't contain attributes. Thanks, Tomas PD: I'm using gdal-1.3.1 On Wednesday 28 December 2005 19:06, Mateusz Łoskot wrote: > Tomas Zajc wrote: > > I could finally install gdal and ogr on slackware. I'm now trying to > > convert some csv to shapefiles. For that I'm using the following comand: > > > > ogr2ogr -f "ESRI Shapefile" out coal.csv > > > > where coal csv is: > > > > unknown,na,id,id2,mark,coalkey,coalkey2,x,y > > 0.000,0.000,1,1,7,87,87,76.90238,51.07161 > > 0.000,0.000,2,2,7,110,110,78.53851,50.69403 > > 0.000,0.000,3,3,3,112,112,83.22586,71.24420 > > > > I'm getting the following error: > > > > ERROR 4: Unable to open out/coal.shp or out/coal.SHP > > I've just checked on Windows and this command should work. > I use ogr2ogr from FWTools package (http://fwtools.maptools.org) as > follows: > > ogr2ogr -f "ESRI Shapefile" out.shp coal.csv > > As a result I got *one* DBF file out.dbf with data from coal.csv. > > > and an out directory with a coal.dbf file. I need to generate the three > > files. > > You won't get 3 files, only 1 .dbf. > > > Any suggestion? > > I'd suggest you to report the problem on GDAL/OGR list: > [email protected] > > (include version numbers of GDAL/OGR you are using) > > Cheers _______________________________________________ Freegis-list mailing list [email protected] https://intevation.de/mailman/listinfo/freegis-list