<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for your help, guys.&nbsp; It turns out (like usual) that the
solution was something simple.&nbsp; The permissions on the dbf file, which
I copied from Windows to Linux, were all messed up, and no one had read
access.<br>
<br>
I'll try one of those programs you mentioned next time I need to edit a
file -- excel was a pain.<br>
<br>
David<br>
<br>
Dylan Beaudette wrote:
<blockquote cite="mid200701251128.26609.dylan.beaudette@gmail.com"
 type="cite">
  <pre wrap="">On Wednesday 24 January 2007 20:57, David Isaacson wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,
I want to label my map with a substring of the metadata.  I've got a
freeway map, and all of the freeways are labeled as "Interstate 5" and
"US Highway 6".  I just want the number.

Is this possible?

I thought I might try to add that data to the .dbf file, using Excel.
And it works using shp2img, but when I use ka-map to create an
interactive map no roads are drawn at all (and no error messages are
given either).  So what the hell is going on?

What's the right way to add metadata to a shapefile (assume I can't
afford to buy ArcGIS)?  And is there an easier way to do this whole
labeling thing?  Thanks.

David
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Hi David - nice to see another UCD person using mapserver.

I would recommend looking into QGIS , uDIg, PostGIS, or GRASS as a means 
to 'edit' a shapefile. It could be that excel saved a slightly incompatible 
DBF version -- I have had this happen numerous times. Check column names and 
their data type. If  you have the patience to try PostGIS -- it is possible 
to do nearly anything with the spatial and attribute data imported from a 
shapefile -- and you can pull the data directly into mapserver! We use this 
setup here for all of our mapserver applications.

Cheers,

Dylan

  </pre>
</blockquote>
<br>
</body>
</html>