On 23/07/08 23:45, Maciej Sieczka wrote:
Moritz Lennert pisze:
On 23/07/08 22:36, Maciej Sieczka wrote:
Use ogr2ogr to reproject Shapefiles outside GRASS (it accepts
directory of shapefiles as input as well as single shapefiles) and
then import them all with v.in.ogr. You can automate v.in.ogr in
Shell using "for in do" syntax (plenty of examples in the archive or
Google it).
I don't think you actually need a for-loop. From the v.in.ogr man page:
layer=string[,string,...] OGR layer name. If not given, all available
layers are imported
So, normally, if you don't give a layer all the shapefiles in the
directory (dsn=) will be imported.
Note this loads the Shapefiles as *layers* (in the GRASS meaning of it)
of a single output vector map. Not necessarily what one might want.
No definitely not. Didn't know that. IMHO this should be changed...
You will, however, need a loop for the v.proj step...
ogr2ogr is more convenient than going through a temporary location
creation, Shapefile import and reprojection with v.proj, IMHO. Much less
work.
+1
Moritz
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user