Drawing TIGER file Polygons

Frank Warmerdam fwarmerdam at GMAIL.COM
Fri Apr 22 09:19:58 PDT 2005


On 4/22/05, Chris Hackel <cvhackel at yahoo.com> wrote:
> How does one extract polygon data from TIGER files in
> a directory? I can't find any good documentation and
> the only reference I have is the snippet below.
> I understand the script for the most part, but this is
> coming from a database, whereas I just have a
> directory with the RT1, RT2, RT3.. etc files in it.

Chris, 

The GDAL source distribution includes a tigerpoly.py script
that will form polygons from tiger data.  Basically the issue with
TIGER data via OGR is that OGR gives a very literal view of the
tiger data and you need to form the polygons yourself.  

  http://www.gdal.org/srctree/pymod/samples/tigerpoly.py

I understand Schyuler (author of Mapping Hacks: http://mappinghacks.com)
has also written a similar script that loads the data into PostGIS and
does some additinoal transformations on it.  

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