[Gdal-dev] ogrinfo and sql option
Ivan Lucena
ILucena at clarku.edu
Mon Oct 23 14:10:23 EDT 2006
Hi Matt,
I knew you would say that, but just to let you know, grep.exe for DOS
comes in all Borland IDE products since 1992 and now you can get "Turbo
C++ Explorer" for free. I try to compile GDAL on it, but that is another
history...
===
C:\Program Files\Borland\BDS\4.0\Bin>grep
Turbo GREP 5.5 Copyright (c) 1992, 1998 Borland International
Syntax: GREP [-rlcnvidzuwo] searchstring file[s] or @filelist
GREP ? for help
===
Ivan
-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of
matt.pettis at thomson.com
Sent: Monday, October 23, 2006 12:24 PM
To: bryan at geomega.com
Cc: gdal-dev at lists.maptools.org
Subject: RE: [Gdal-dev] ogrinfo and sql option
They do... I'm trying this all out on windows xp, so I'll have to
modify, but those are good ideas.
Thanks,
matt
-----Original Message-----
From: Bryan Keith [mailto:bryan at geomega.com]
Sent: Monday, October 23, 2006 11:21 AM
To: Pettis, Matthew (TLR Corp)
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] ogrinfo and sql option
Matt,
I don't know if you can do that with an sql string or where clause in
ogrinfo, but you could use grep to remove all ogrinfo output that
contained the word LINESTRING, e.g.:
ogrinfo myfile.shp -al | grep LINESTRING -v
I also sometimes use a tool called dbview to look at data in dbf files.
Maybe those ideas help.
Bryan
matt.pettis at thomson.com wrote:
> Is there a way to use ogrinfo to get a listing of just the .dbf
> attribute values without listing the line/polygon coordinates with
them?
> my coordinate sets are large, and i am interested in exploring the
> .dbf values of my shapefiles.
>
> Thanks,
> Matt
>
>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
_______________________________________________
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