[Gdal-dev] Problem Windowing a part of a Shape File - can you help?

Bob Bruce - Programmer covariance at shaw.ca
Sun Nov 27 23:48:35 EST 2005


I have just started using the OGR tools and ran into a snag and am hoping
that someone can help:

I am trying window out a section of the National Road Network that I have
projected into UTM with the command:

ogr2ogr -f "ESRI Shapefile" -lco SHPT=ARC -splat 646350 5553100 654900
5561500  selkirk_roads.shp ROADSEG_UTM14.shp

and create a new output shape file called selkirk_roads

this doesn't work and ogr2ogr keeps prompting me with its options.

if I remove the -splat with the coordinates then this works fine but I don't
get my window extracted. What do I need to do to get the data within a
geographical area extracted?

thanks,
		Bob Bruce, Winnipeg, Manitoba




More information about the Gdal-dev mailing list