<!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">
Hi there to the list.<br>
<br>
I have succeeded in downloading SRTM and Landsat from the GLCF, VMAP
Level 0 from the web and processing them in GRASS. I have done the same
with Geonet names from NIMA with the help of a pythin script an
internet buddy wrote for me.<br>
<br>
I am now trying to incorporate the label names into my Mapserver
application. Can anyone help? I have a problem with the below MAP file.
When I run Mapserver on my PC (standard Windows download version) I
receive this message:<br>
<br>
loadLayer(): Unknown identifier. Parsing error near (LAYER):(line 88) <br>
<br>
Is the MAP script wrong here? I am a newbie to MAPserver. <br>
<br>
For whatever help anyone gives I will be very grateful.<br>
<br>
Regards,<br>
<br>
Jeremy Stocks.<br>
<br>
Here is the script. The problem area is the bold italic section.......<br>
<br>
# The annotated map file (sort of)<br>
# Created by Pericles S. Nacionales for the MapServer tutorial<br>
# 20050408<br>
#<br>
# MapServer map file uses the pound sign (#) to denote the start of a
line<br>
# comment--each line that needs to be commented has to be prepended
with a "#".<br>
#<br>
# Map files begin with MAP keyword to signify the start of the map
object.<br>
# Well, the entire map file is THE map object.&nbsp; Enclosed between MAP
and END<br>
# at the very bottom of this map file, are keyword/value pairs and other<br>
# objects.<br>
MAP<br>
&nbsp; IMAGETYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PNG<br>
&nbsp; EXTENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 658768.76306283&nbsp; 5255756.95394429 742048.26144778
5330768.35385309<br>
&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 700 500<br>
&nbsp; SHAPEPATH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "\ms4w\Apache\htdocs\bayern"<br>
&nbsp; IMAGECOLOR&nbsp;&nbsp;&nbsp;&nbsp; 255 255 255<br>
&nbsp;&nbsp; &nbsp;FONTSET&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; "\ms4w\Apache\htdocs\bayern\fonts.list"&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp; &nbsp;WEB<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;TEMPLATE "c:\ms4w\Apache\htdocs\bayern\bayern.html"<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;IMAGEPATH "/ms4w/tmp/ms_tmp/"<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;IMAGEURL "/ms_tmp/"<br>
END&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>
<br>
<br>
&nbsp; # Layer objects are defined beneath the map object.&nbsp; You need at
least one<br>
&nbsp; # layer defined in your map file before you can display a map...&nbsp; You
can<br>
&nbsp; # define as many layers as you'd like although a limit is typically
hard-coded<br>
&nbsp; # in map.h in the MapServer source.&nbsp; The default limit is set at
100.&nbsp; You'd<br>
&nbsp; # have to have a very specialized application to need more than 100
layers in<br>
&nbsp; # your application.<br>
<br>
&nbsp; # Start of LAYER DEFINITIONS
---------------------------------------------<br>
<br>
<br>
<br>
LAYER # Brovey raster layer begins here<br>
&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "brov_rgb_composite"<br>
&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "brov_rgb_composite.tif"<br>
&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFF<br>
&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RASTER<br>
END # Brovey raster layer ends here<br>
<br>
LAYER # SRTM raster layer begins here<br>
&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "srtm_u03_p193r027_2ndattemptimport"<br>
&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "srtm_u03_p193r027_2ndattemptimport.tif"<br>
&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFF<br>
&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RASTER<br>
END # SRTM raster layer ends here<br>
<br>
<br>
HERE begin the problems.......! from HERE.....<br>
<br>
<b><i>LAYER # Geonet names<br>
&nbsp;&nbsp; &nbsp;NAME&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;popl_anno<br>
&nbsp;&nbsp; &nbsp;STATUS &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;DEFAULT<br>
&nbsp;&nbsp; &nbsp;DATA &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"GNS_subset.shp"<br>
&nbsp;&nbsp; &nbsp;TYPE &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;POINT<br>
<br>
&nbsp;&nbsp; &nbsp;CLASSITEM "fc"<br>
&nbsp;&nbsp; &nbsp;LABELITEM "fnamend"<br>
<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Populated places"<br>
<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 232 20 20<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; <br>
<br>
&nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 132 31 31<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHADOWCOLOR 218 218 218<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHADOWSIZE 2 2<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE TRUETYPE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT arial<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 12<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION CL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARTIALS FALSE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINDISTANCE 300<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER 4<br>
&nbsp;&nbsp;&nbsp; END # end of label<br>
<br>
END # Label layer ends here</i></b><br>
<br>
......................................TO HERE!<br>
<br>
<br>
LAYER&nbsp;&nbsp;&nbsp;&nbsp; # Lakes<br>
&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bavaria_lakes<br>
&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hydro_inwatera_lakes<br>
&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON<br>
&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POLYGON<br>
<br>
&nbsp; # The class object is defined within the layer object.&nbsp; You can
define as<br>
&nbsp; # many classes as you need (well, there are limits as with layers,
but it's<br>
&nbsp; # senseless to define more than ten on a "normal" layer.&nbsp; There are<br>
&nbsp; # situations, however, where you might have to do it.)<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Bavaria Lakes"<br>
<br>
&nbsp;&nbsp;&nbsp; # There are styles in a class, just like there are classes in a
layer,<br>
&nbsp;&nbsp;&nbsp; # just like there are layers in a map.&nbsp; You can define multiple
styles in<br>
&nbsp;&nbsp;&nbsp; # a class just as you can define multiple classes in a layer and
multiple<br>
&nbsp;&nbsp;&nbsp; # layers in a map.<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20 20 232<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 32 32 32<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
END # Bavaria lakes polygon layer ends here<br>
<br>
LAYER <br>
&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bavaria_rivers<br>
&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hydro_watrcrsl_river<br>
&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON<br>
&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LINE<br>
<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Bavaria Rivers"<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp; 20 20 232<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
END # States line layer ends here<br>
<br>
# End of LAYER DEFINITIONS -------------------------------<br>
<br>
END # All map files must come to an end just as all other things must
come to...
</body>
</html>