[Gdal-dev] usage of OGR with spat-switch and usage in GRASS

Stephan Holl sholl at gmx.net
Sat May 15 10:10:26 EDT 2004


Dear Developers,

It seems that spatial-switch in GRASS is ignored when using
polygon-shapes. Lines work as espected.
ogr2ogr works as it should.


OGR in GRASS with lines:
v.in.ogr dsn=/tmp layer=roads out=roads_cut \
spatial=596400,4917720,604110,4924500 type=line

works as espected. -> http:www.gdf-hannover.de/holl/tmp/roads_grass.png

ogr2ogr with lines:
ogr2ogr -f "Esri Shapefile" -spat 596400 4917720 604110 4924500
/tmp/roads_ogr.shp  /tmp/roads.shp

works as espected. ->
http://www.gdf-hannover.de/holl/tmp/roads_ogr.png

OGR in GRASS with areas:
v.in.ogr dsn=/tmp layer=soils out=soils_grass \
spatial=596400,4917720,604110,4924500 type=boundary

does not work as expected: ->
http://www.gdf-hannover.de/holl/tmp/soils_grass.png

ogr2ogr with areas:
ogr2ogr -f "Esri Shapefile" -spat 596400 4917720 604110 4924500
/tmp/soils_ogr.shp  /tmp/soils.shp

works as espected. ->
http://www.gdf-hannover.de/holl/tmp/soils_ogr.png

btw. it would be nice to have status-messages what ogr2ogr just did. the
above command does not return a success-message...

To reproduce this shape-fiels of soils.shp and roads.shp are placed
here:
http://www.gdf-hannover.de/holl/tmp/ogr_grass_spearfish.tgz

Thanks for any hints.

 Cheers
	Stephan Holl

-- 
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040515/bb2aa6c9/attachment.bin


More information about the Gdal-dev mailing list