<!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. 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>
IMAGETYPE PNG<br>
EXTENT 658768.76306283 5255756.95394429 742048.26144778
5330768.35385309<br>
SIZE 700 500<br>
SHAPEPATH "\ms4w\Apache\htdocs\bayern"<br>
IMAGECOLOR 255 255 255<br>
FONTSET "\ms4w\Apache\htdocs\bayern\fonts.list" <br>
<br>
<br>
WEB<br>
<br>
TEMPLATE "c:\ms4w\Apache\htdocs\bayern\bayern.html"<br>
IMAGEPATH "/ms4w/tmp/ms_tmp/"<br>
<br>
IMAGEURL "/ms_tmp/"<br>
END <br>
<br>
<br>
# Layer objects are defined beneath the map object. You need at
least one<br>
# layer defined in your map file before you can display a map... You
can<br>
# define as many layers as you'd like although a limit is typically
hard-coded<br>
# in map.h in the MapServer source. The default limit is set at
100. You'd<br>
# have to have a very specialized application to need more than 100
layers in<br>
# your application.<br>
<br>
# Start of LAYER DEFINITIONS
---------------------------------------------<br>
<br>
<br>
<br>
LAYER # Brovey raster layer begins here<br>
NAME "brov_rgb_composite"<br>
DATA "brov_rgb_composite.tif"<br>
STATUS OFF<br>
TYPE RASTER<br>
END # Brovey raster layer ends here<br>
<br>
LAYER # SRTM raster layer begins here<br>
NAME "srtm_u03_p193r027_2ndattemptimport"<br>
DATA "srtm_u03_p193r027_2ndattemptimport.tif"<br>
STATUS OFF<br>
TYPE 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>
NAME popl_anno<br>
STATUS DEFAULT<br>
DATA "GNS_subset.shp"<br>
TYPE POINT<br>
<br>
CLASSITEM "fc"<br>
LABELITEM "fnamend"<br>
<br>
CLASS<br>
NAME "Populated places"<br>
<br>
STYLE<br>
COLOR 232 20 20<br>
END<br>
<br>
<br>
LABEL<br>
COLOR 132 31 31<br>
SHADOWCOLOR 218 218 218<br>
SHADOWSIZE 2 2<br>
TYPE TRUETYPE<br>
FONT arial<br>
SIZE 12<br>
ANTIALIAS TRUE<br>
POSITION CL<br>
PARTIALS FALSE<br>
MINDISTANCE 300<br>
BUFFER 4<br>
END # end of label<br>
<br>
END # Label layer ends here</i></b><br>
<br>
......................................TO HERE!<br>
<br>
<br>
LAYER # Lakes<br>
NAME bavaria_lakes<br>
DATA hydro_inwatera_lakes<br>
STATUS ON<br>
TYPE POLYGON<br>
<br>
# The class object is defined within the layer object. You can
define as<br>
# many classes as you need (well, there are limits as with layers,
but it's<br>
# senseless to define more than ten on a "normal" layer. There are<br>
# situations, however, where you might have to do it.)<br>
CLASS<br>
NAME "Bavaria Lakes"<br>
<br>
# There are styles in a class, just like there are classes in a
layer,<br>
# just like there are layers in a map. You can define multiple
styles in<br>
# a class just as you can define multiple classes in a layer and
multiple<br>
# layers in a map.<br>
STYLE<br>
COLOR 20 20 232<br>
OUTLINECOLOR 32 32 32<br>
END<br>
END<br>
END # Bavaria lakes polygon layer ends here<br>
<br>
LAYER <br>
NAME bavaria_rivers<br>
DATA hydro_watrcrsl_river<br>
STATUS ON<br>
TYPE LINE<br>
<br>
CLASS<br>
NAME "Bavaria Rivers"<br>
STYLE<br>
COLOR 20 20 232<br>
END<br>
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>