<P>I've been working with the tiger files and mapserver for a few months now (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 (particularly zip codes and (I think) fips codes).  I think the problem is that the GDAL library treats these as integer and while parsing the file, drops leading zeros.  Thanks to the clarity of open source, I changed the fields to character, rebuilt GDAL and mapserver and things seemed to work fine.  The problem surfaced while I was trying to shade by zip code using an EXPRESSION in the mapfile.</P><P>-Bruce Saunders<BR><BR><FONT SIZE=2><B>Stephen Woodbridge <woodbri@swoodbridge.com></B></FONT><BR><FONT SIZE=2>Sent by: owner-mapserver-users@lists.gis.umn.edu</FONT><BR><FONT SIZE=2>02/27/2002 08:56 PM</FONT><BR><BR> <FONT SIZE=2>To:</FONT> <FONT SIZE=2>Ashley Joyce <ashleyjoyce@hotmail.com></FONT><BR> <FONT SIZE=2>cc:</FONT> <FONT SIZE=2>"MAPSERVER (E-mail)" <mapserver-users@lists.gis.umn.edu></FONT><BR> <FONT SIZE=2>bcc:</FONT> <BR> <FONT SIZE=2>Subject:</FONT> <FONT SIZE=2>Re: [mapserver-users] Tigerline</FONT><BR> <BR><BR></P><P><FONT FACE="Monospace,Courier">Ashley,<BR></FONT><BR><FONT FACE="Monospace,Courier">Structure your data like this:<BR></FONT><BR><FONT FACE="Monospace,Courier">/mapdata/tiger2k/{SS}/{SS}{CCC}/{files}<BR></FONT><BR><FONT FACE="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="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 FACE="Monospace,Courier">/mapdata/us<BR>/mapdata/canada<BR>/mapdata/mexico<BR>/mapdata/oceans<BR>etc<BR></FONT><BR><FONT FACE="Monospace,Courier">then 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="Monospace,Courier">You can see my version running with only the eastern half the US loaded<BR>at <A HREF=http://swoodbridge.com/web2/nmap>http://swoodbridge.com/web2/nmap</A> it is using 9 GIGS<BR></FONT><BR><FONT FACE="Monospace,Courier">-Steve W.<BR></FONT><BR><FONT FACE="Monospace,Courier">> Ashley Joyce wrote:<BR>><BR>> I have the mapserver demo version working properly and would like to<BR>> use data from the tigerline site for the USA. I will start with one<BR>> state at a time.... its heavy on space at around 3 -4 Gig. Can anyone<BR>> give me some advice on where to get some help or point to some<BR>> documentation for structuring the data files so it will work with<BR>> mapserver.... I'm still new to this product and haven't quite got my<BR>> head around all of it yet. I'm not very familiar with the GIS<BR>> structure. I'm running on a linux machine with apache.<BR>><BR>> Thanks,<BR>><BR>> Ashley Joyce</FONT></P>