[gdal-dev] ogrinfo: how retrieve the extent of a single geometry

Andre Joost andre+joost at nurfuerspam.de
Fri Oct 4 23:56:04 PDT 2013


Am 05.10.2013 08:11, schrieb Andrea Peri:
> Hi all,
>
> I need to retrieve the extent of a single geometry using ogrinfo.
>
> I try to use this sintax:
>
> ogrinfo -al -so filename.shp -where "field1='value1'"
>
> But ogrinfo return always the extent of all the shapefile not only the
> extent of filtered one.
>

This will not work. See:
<http://osgeo-org.1560.x6.nabble.com/Re-Selecting-features-using-ogrinfo-td4538045.html>

last answer.

HTH,
André Joost




More information about the gdal-dev mailing list