demo_init.html file error (FWD)

teb teb at mallit.fr.umn.edu
Wed Apr 4 11:43:27 EDT 2001


------------- Begin Forwarded Message -------------

From: Robert Schmitz-Hübsch <robert.schmitz-huebsch at web.de>
To: <mapserver-info at lists.gis.umn.edu>
Subject: 
Date: Wed, 4 Apr 2001 16:23:40 +0200
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Importance: Normal


------------- End Forwarded Message -------------

-------------- next part --------------
Right now, I compiled and installed the MapServer on Sun Solaris 8,
SPARC-20-architecture.

As I run the "demo_init.html"-file, I get the error-message

msLoadMap(): Premature End-of-File. Undefined symbol

as described in your troubleshooting-section.

I counted over the "END"-directives, but somehow, I think they are in the
right place and enough of them as well as not too many of them.
I sent you the config-file, so if you have the time you might be able to go
over it and tell me what I did wrong.

You would make me very happy :-))


Thank you in advance,
Robert Schmitz-Hübsch

Vahrenwalder Str. 171
30165 Hannover
Germany

Tel.     +49-(0)511-3502011
e-mail   huebschy at gmx.de

ICQ: 84013702


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010404/544459bf/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2947 bytes
Desc: Schach.gif
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010404/544459bf/attachment.gif
-------------- next part --------------
#
# Start of map file
#
NAME DEMO
STATUS ON
SIZE 600 600

# RSH-config::
# versuche mal absolute Pfade!!

SHADESET /arcims/mapserver/symbols/shade.sym
MARKERSET /arcims/mapserver/symbols/marker.sym
LINESET /arcims/mapserver/symbols/line.sym

# SYMBOLSET symbols/symbol.sym
# Warum erkennt der das blöde "SymbolSet" nicht???
# jetzt schon, mit absoluten Pfaden!

EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255

#
# Projection definition, consult the PROJ.4 documentation for parameter discussion
#
#PROJECTION
#  "proj=utm"
#  "ellps=GRS80"
#  "zone=15"
#  "north"
#  "no_defs"
#END

#
# Start of web interface definition
#
WEB
  HEADER demo_header.html
  TEMPLATE demo.html
  FOOTER demo_footer.html
  MINSCALE 1000
  MAXSCALE 1550000
  IMAGEPATH "/usr/apache/htdocs/tmp/"
  IMAGEURL "/tmp/"
  LOG "/arcims/mapserver/demo.log"
END

QUERYMAP
  SIZE 200 200
  STATUS ON
  STYLE HILITE
  COLOR 255 0 0
END



#
# Start of reference map
#
REFERENCE
  IMAGE graphics/reference.gif
  EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127
  SIZE 120 120
  STATUS ON
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
END

#
# Start of legend
#
LEGEND
  KEYSIZE 18 12
  LABEL
    TYPE BITMAP
    SIZE MEDIUM
    COLOR 0 0 89
  END
  STATUS ON
END

#
# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 255 255 255
    SIZE tiny    
  END
  STYLE 1
  SIZE 50 2
  COLOR 255 255 255
  UNITS MILES
  INTERVALS 1
  TRANSPARENT TRUE
  STATUS TRUE
END

#
# Start of layer definitions
#

LAYER
  NAME county
  TYPE POLYGON
  STATUS DEFAULT
  DATA ctybdpy2
  
  CLASSITEM 'cty_name'
  CLASS
    EXPRESSION 'Itasca'
    OUTLINECOLOR 128 128 128
    COLOR 225 225 185
  END
  CLASS # every other county in the state
    EXPRESSION /./ 
    OUTLINECOLOR 128 128 128
    COLOR 255 255 255
  END
END

LAYER
  NAME cities
  TYPE POLYGON
  DATA mcd90py2
  STATUS ON
  CLASSITEM city_name	
  CLASS
    NAME "Cities & Towns"
    EXPRESSION /./
    COLOR 255 225 90
  END
END

LAYER
  NAME townships
  TYPE POLYLINE
  DATA twprgpy3
  STATUS ON
  CLASS
    SYMBOL 1
    SIZE 2
    NAME 'Townships'
    COLOR 181 181 145
  END
END

LAYER
  NAME lakes
  TYPE POLYGON
  STATUS ON
  DATA lakespy2

  CLASS
    NAME 'Lakes & Rivers'
    COLOR 49 117 185  
  END

  HEADER "lakespy2_header.html"
  FOOTER "lakespy2_footer.html"
  QUERY    
    TEMPLATE "lakespy2.html"    
  END

  TOLERANCE 3
END # lakes

LAYER
  NAME streams
  TYPE LINE
  STATUS ON
  DATA dlgstln2

  CLASS
    NAME "Streams"
    COLOR 49 117 185
  END

  HEADER "dlgstln2_header.html"
  FOOTER "dlgstln2_footer.html"
  QUERY    
    TEMPLATE "dlgstln2.html"    
  END

  TOLERANCE 5
END # streams

LAYER
  NAME roads
  MAXSCALE 300000
  STATUS ON
  DATA ctyrdln3
  TYPE LINE
  CLASS
    COLOR 0 0 0
  END
END # county roads

LAYER
  NAME roads
  MAXSCALE 300000
  STATUS ON
  DATA ctyrdln3
  TYPE ANNOTATION
  LABELITEM "road_name"
  CLASS
    COLOR 255 255 255
    SYMBOL 'county_highway_shield'    
    LABEL
      MINFEATURESIZE 40
      MINDISTANCE 150
      POSITION CC
      SIZE TINY
      COLOR 0 0 0
    END
  END
END # county road annotation

LAYER
  NAME roads
  MAXSCALE 600000
  STATUS ON
  DATA majrdln3
  TYPE LINE
  CLASS
    NAME "Roads"
    COLOR 0 0 0
  END
END # highways

LAYER
  NAME roads
  MAXSCALE 600000
  STATUS ON
  DATA majrdln3
  TYPE ANNOTATION
  LABELITEM "road_num"  
  CLASSITEM "road_class"
  CLASS
    EXPRESSION "3"
    COLOR 0 0 0 # dummy color
    SYMBOL 'state_highway_shield'
    LABEL
      MINFEATURESIZE 50
      MINDISTANCE 150
      POSITION CC
      SIZE TINY
      COLOR 0 0 0
    END
  END
  CLASS
    EXPRESSION "2" 
    COLOR 0 0 0 # dummy color
    SYMBOL 'us_highway_shield'
    LABEL
      MINFEATURESIZE 50
      MINDISTANCE 150
      POSITION CC
      SIZE TINY
      COLOR 0 0 0
    END
  END
  CLASS
    EXPRESSION "1" 
    COLOR 0 0 0 # dummy color
    SYMBOL 'interstate_shield'
    LABEL
      MINFEATURESIZE 50
      MINDISTANCE 150
      POSITION CC
      SIZE TINY
      COLOR 255 255 255
    END
  END
END # highway annotation

LAYER
  NAME cities
  TYPE ANNOTATION
  DATA mcd90py2
  STATUS ON
  LABELITEM "city_name"
  CLASSITEM "city_name"
  LABELMAXSCALE 500000
  CLASS
    EXPRESSION /./
    COLOR -1 -1 -1
    LABEL
      COLOR 0 0 0
      SHADOWCOLOR 218 218 218
      SHADOWSIZE 2 2
      TYPE BITMAP
      SIZE MEDIUM
      POSITION CC
      PARTIALS FALSE
      BUFFER 2
    END
  END
END

END


More information about the mapserver-users mailing list