[Gdal-dev] ogrinfo and sql option

matt.pettis at thomson.com matt.pettis at thomson.com
Mon Oct 23 14:22:20 EDT 2006


Thanks to Ivan and everybody who has suggested finding the Unix-like
tools to do this processing.  I'll probably end up getting some flavor
of them if only because I am a tool glutton... :>)

To add to the discussion, thought, since I don't need to do this
anaylysis frequently (I currently only have one shapefile to deal with),
I've taken the route of using Perl and a CPAN module named
Geo::ShapeFile from Jason Kohles to process my .dbf file and do custom
summarization on the info I get out of there.  If there are other Perl
users out there, I highly recommend it, as it imports all of the info
into a custom Shapefile object which you can operate on with all of the
ease that Perl provides for any data processing.

Thanks,
Matt



-----Original Message-----
From: Ivan Lucena [mailto:ILucena at clarku.edu] 
Sent: Monday, October 23, 2006 1:10 PM
To: Pettis, Matthew (TLR Corp)
Cc: gdal-dev at lists.maptools.org
Subject: RE: [Gdal-dev] ogrinfo and sql option

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