[mapserver-users] Tigerline

Bruce W Saunders/SDC/Systems/HSAS/MAXIMUS brucesaunders@maximus.com
Thu, 28 Feb 2002 09:17:39 -0500


<P>I've been working with the tiger files and mapserver for a few months no=
w (though I haven't made the indexes (but that certainly sounds like a good=
 idea)). I've noticed an odd behavior for some fields with leading zeros (p=
articularly zip codes and (I think) fips codes). &nbsp;I think the problem =
is that the GDAL library treats these as integer and while parsing the file=
, drops leading zeros. &nbsp;Thanks to the clarity of open source, I change=
d the fields to character, rebuilt GDAL and mapserver and things seemed to =
work fine. &nbsp;The problem surfaced while I was trying to shade by zip co=
de using an EXPRESSION in the mapfile.</P><P>-Bruce Saunders<BR><BR><FONT S=
IZE=3D2><B>Stephen Woodbridge &lt;woodbri@swoodbridge.com&gt;</B></FONT><BR=
><FONT SIZE=3D2>Sent by: owner-mapserver-users@lists.gis.umn.edu</FONT><BR>=
<FONT SIZE=3D2>02/27/2002 08:56 PM</FONT><BR><BR> <FONT SIZE=3D2>To:</FONT>=
 <FONT SIZE=3D2>Ashley Joyce &lt;ashleyjoyce@hotmail.com&gt;</FONT><BR> <FO=
NT SIZE=3D2>cc:</FONT> <FONT SIZE=3D2>&quot;MAPSERVER (E-mail)&quot; &lt;ma=
pserver-users@lists.gis.umn.edu&gt;</FONT><BR> <FONT SIZE=3D2>bcc:</FONT> <=
BR> <FONT SIZE=3D2>Subject:</FONT> <FONT SIZE=3D2>Re: [mapserver-users] Tig=
erline</FONT><BR> <BR><BR></P><P><FONT FACE=3D"Monospace,Courier">Ashley,<B=
R></FONT><BR><FONT FACE=3D"Monospace,Courier">Structure your data like this=
:<BR></FONT><BR><FONT FACE=3D"Monospace,Courier">/mapdata/tiger2k/{SS}/{SS}=
{CCC}/{files}<BR></FONT><BR><FONT FACE=3D"Monospace,Courier">where {SS} is =
the state fips code<BR>{CCC} is the fips county code<BR>{files} are all the=
 files for that state+county</FONT><BR><BR><FONT FACE=3D"Monospace,Courier"=
>I would also put boundary files that are larger than a county and other<BR=
>datasets that cover the whole US in something like:<BR></FONT><BR><FONT FA=
CE=3D"Monospace,Courier">/mapdata/us<BR>/mapdata/canada<BR>/mapdata/mexico<=
BR>/mapdata/oceans<BR>etc<BR></FONT><BR><FONT FACE=3D"Monospace,Courier">th=
en create a tileindex for all the files under tiger2k and create<BR>shptree=
 indexes for the tileindex and the files in the other<BR>directories. That =
should get you up and running!<BR></FONT><BR><FONT FACE=3D"Monospace,Courie=
r">You can see my version running with only the eastern half the US loaded<=
BR>at <A HREF=3Dhttp://swoodbridge.com/web2/nmap>http://swoodbridge.com/web=
2/nmap</A> it is using 9 GIGS<BR></FONT><BR><FONT FACE=3D"Monospace,Courier=
">-Steve W.<BR></FONT><BR><FONT FACE=3D"Monospace,Courier">&gt; Ashley Joyc=
e wrote:<BR>&gt;<BR>&gt; I have the mapserver demo version working properly=
 and would like to<BR>&gt; use data from the tigerline site for the USA. I =
will start with one<BR>&gt; state at a time.... its heavy on space at aroun=
d 3 -4 Gig. Can anyone<BR>&gt; give me some advice on where to get some hel=
p or point to some<BR>&gt; documentation for structuring the data files so =
it will work with<BR>&gt; mapserver.... I'm still new to this product and h=
aven't quite got my<BR>&gt; head around all of it yet. I'm not very familia=
r with the GIS<BR>&gt; structure. I'm running on a linux machine with apach=
e.<BR>&gt;<BR>&gt; Thanks,<BR>&gt;<BR>&gt; Ashley Joyce</FONT></P>=