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

Ethan Alpert ealpert at digitalglobe.com
Mon Nov 28 11:10:36 EST 2005



2 things. First the option is -spat not -splat. Second I'm pretty sure
that ogr will give you everything that intersects that -spat option but
it won't "clip" (window) the data.

-e

-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Bob Bruce -
Programmer
Sent: Sunday, November 27, 2005 9:49 PM
To: gdal-dev at lists.maptools.org
Subject: [Gdal-dev] Problem Windowing a part of a Shape File - can you
help?


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

_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list