[GRASS-user] import e00? sorry for repeat topic, but...

Maciej Sieczka tutey at o2.pl
Mon Nov 26 11:58:14 EST 2007


Moritz Lennert wrote:

> Isn't this just due to the fact that ogr ignores the file you point to
> and just takes account of the directory if the datasource should be a
> directory (i.e. for shapefiles) ?
> 
> So, the original description is correct (i.e. that for shapefiles dsn is
> a directory), but in practice it doesn't matter since ogr takes care of
> that.

If you point OGR at a directory, it takes it for a "data
source", and the OGR supported vector files inside for
available "OGR layers" (at least in case of ESRI Shapefiles
and MapInfo files).

If you point it directly at an *.shp file, the whole "data
source" is that single shapefile, and the only "layer"
available at the same time.

Try "ogrinfo -al -so /path/to/dir/with/shapefiles" or
"v.in.ogr -l dsn=/path/to/dir/with/shapefiles".

Maciek


More information about the grass-user mailing list