ogr2ogr

Frank Warmerdam fwarmerdam at GMAIL.COM
Mon Feb 14 21:23:38 EST 2005


On Mon, 14 Feb 2005 16:53:41 -0500, AJ Kertis <akertis at gmail.com> wrote:
> Hi,
>
> I'm trying to fiddle with ogr2ogr. I can convert the tgr files to shp
> files fine. I just was wondering how the -where flag is supposed to
> actually work. Like in my CompleteChain.shp file i have some field types
> of fetype and i want to do ogr2ogr so that one type in there isn't in
> the .shp file from the tgr file if that makes sense. Is this possible
> with ogr2ogr?

AJ,

The following query just reports non-"St" features from the
completechain layer.   You should be able to use a similar constraint
with ogr2ogr.

 ogrinfo -ro tst25023.rta CompleteChain -where 'fetype <> "St"'

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list