Trouble running demo

Vinod Chettur chetturv at sdhu.moh.gov.on.ca
Wed Feb 9 10:55:51 PST 2000


Fantastic! Thanks a lot. It worked.
Vinod

> -----Original Message-----
> From:	Stephen Lime [SMTP:steve.lime at dnr.state.mn.us]
> Sent:	Wednesday, February 09, 2000 11:54 AM
> To:	mapserver-users at lists.gis.umn.edu; chetturv at sdhu.moh.gov.on.ca
> Subject:	RE: Trouble running demo
> 
> The problem is related to format changes made to line symbols. A
> "corrected"
> version of line.sym is found in the mapserver distribution in the symbols
> directory.
> Swap that version with the one referenced in the demo.map and that error
> should
> go away. I've attached that file just in case you don't have it.
> 
> Steve
> 
> Stephen Lime
> Internet Applications Analyst
> 
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
> 
> >>> Vinod Chettur <chetturv at sdhu.moh.gov.on.ca> 02/09/00 10:28AM >>>
> Hello all,
> 
> I am trying to run the MapServer demo on NT with Apache and AOLserver.
> After
> spending many frustrating days, I think I am doing something wrong with
> the
> demo.map file. I am a web/database developer but not a GIS expert so I am
> still coming to grips with the software. Here is the error I get:
> getInteger(): Incorrect data type. (END):(8) 
> If someone can point me in the right direction I would be grateful. This
> software is great stuff. My demo.map follows.
> Thanks, Vinod
> --------------------------------------------------------------------------
> --
> --------------------------------------------------------------------------
> --
> ----------------------
> --------------------------------------------------------------------------
> --
> --------------------------------------------------------------------------
> --
> ----------------------
> 
> #
> # Start of map file
> #
> NAME DEMO
> STATUS ON
> SIZE 600 600
> SHADESET /AOLserver/servers/server1/pages/ms_demo/symbols/shade.sym
> MARKERSET /AOLserver/servers/server1/pages/ms_demo/symbols/marker.sym
> LINESET /AOLserver/servers/server1/pages/ms_demo/symbols/line.sym
> EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184
> UNITS METERS
> SHAPEPATH "/AOLserver/servers/server1/pages/ms_demo/data"
> IMAGECOLOR 255 255 255
> 
> #LABELOVERLAP FALSE
> 
> #
> # Start of web interface definition
> #
> WEB
>   HEADER /AOLserver/servers/server1/pages/ms_demo/demo_header.html
>   TEMPLATE /AOLserver/servers/server1/pages/ms_demo/demo.html
>   MINSCALE 1000
>   MAXSCALE 1550000
> END
> 
> #
> # Start of reference map
> #
> REFERENCE
>   IMAGE
> /AOLserver/servers/server1/pages/ms_demo/graphics/reference_base.gif
>   EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184
>   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 0 0 0	
>     SIZE SMALL
>   END
>   SIZE 350 5
>   COLOR 255 255 255
>   BACKGROUNDCOLOR 0 0 0
>   OUTLINECOLOR 0 0 0
>   UNITS MILES
>   INTERVALS 5
>   STATUS ON
> END
> 
> #
> # Start of layer definitions
> #
> 
> LAYER
>   NAME county
>   TYPE POLYGON
>   STATUS DEFAULT
>   DATA /AOLserver/servers/server1/pages/ms_demo/data/county
>   CLASS
>     SYMBOL 0
>     OUTLINECOLOR 0 0 0
>     COLOR 248 248 95
>   END
> END
> 
> LAYER
>   NAME landsat
>   TYPE RASTER
>   STATUS ON
>   DATA /AOLserver/servers/server1/pages/ms_demo/data/landsat.tif
>   OFFSITE 0
> END
> 
> LAYER
>   NAME lakes
>   TYPE POLYGON
>   STATUS ON
>   DATA /AOLserver/servers/server1/pages/ms_demo/data/lakes
>   TOLERANCE 3
> 
>   CLASSITEM usclass
>   CLASS
>     NAME "Water & Rivers"
>     EXPRESSION "421"    
>     COLOR 49 117 185
>     BACKGROUNDCOLOR 32 201 201
>     OUTLINECOLOR 0 0 0
>   END
>   CLASS
>     EXPRESSION "^-"
>     COLOR 255 0 0
>     OUTLINECOLOR 0 0 0
>   END
> 
>   QUERYITEM usclass
>   QUERY
>     EXPRESSION "421"
>     TEMPLATE /AOLserver/servers/server1/pages/ms_demo/lakes.html
>     	JOIN
> 	  NAME lakejoin
> 	  TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf
> 	  FROM islake # item names are case insensitive
>  	 TO "type"  # must be quoted as TYPE is a mapserver keyword
> 	END
> 
>   END
>   QUERY
>   EXPRESSION "^-"
>     TEMPLATE /AOLserver/servers/server1/pages/ms_demo/land.html
> 	JOIN
>  	 NAME lakejoin
> 	  TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf
> 	  FROM islake # item names are case insensitive
> 	  TO "type"  # must be quoted as TYPE is a mapserver keyword
> 	END
>   END
> END # Layer
> 
> LAYER
>   NAME streams
>   TYPE LINE
>   STATUS ON
>   DATA /AOLserver/servers/server1/pages/ms_demo/data/streams
>   TOLERANCE 5
> 
>   CLASS
>     NAME "Streams"
>     COLOR 49 117 185
>   END
> 
>   QUERY
>     TEMPLATE /AOLserver/servers/server1/pages/ms_demo/streams.html
>   END
> END # Layer
> 
> LAYER
>   NAME secondary_roads
>   TYPE LINE
>   STATUS OFF
>   DATA /AOLserver/servers/server1/pages/ms_demo/data/secondary
>   MAXSCALE 50000
>   SYMBOLSCALE 24000
>   CLASS
>     NAME "Secondary Roads"
>     COLOR 212 212 212
>     SYMBOL 13
>     SIZE 2
>     MAXSIZE 4
>   END
> END # Layer
> 
> LAYER
>   NAME primary_roads
>   TYPE LINE
>   STATUS OFF
>   DATA /AOLserver/servers/server1/pages/ms_demo/data/primary
>   SYMBOLSCALE 24000
> 
>   CLASS
>     NAME "Primary Roads"
>     COLOR 128 128 128
>     SYMBOL 13	
>     SIZE 3
>     MAXSIZE 5
>   END
> END # Layer
> 
> LAYER
>   NAME runways
>   TYPE LINE
>   STATUS OFF
>   DATA /AOLserver/servers/server1/pages/ms_demo/data/runways
> 
>   CLASS
>     COLOR 30 94 30
>     NAME "Airport Runways"
>   END
> END # Layer
> 
> LAYER
>   NAME railroad
>   TYPE LINE
>   STATUS OFF
>   DATA /AOLserver/servers/server1/pages/ms_demo/data/railroad
>   CLASS
>     COLOR 151 151 151
>     SYMBOL 4
>     NAME "Railways"
>   END
> END # Layer
> 
> LAYER
>   NAME cities
>   TYPE ANNOTATION
>   STATUS ON
>   DATA /AOLserver/servers/server1/pages/ms_demo/data/cities
>   TOLERANCE 10
> 
>   LABELITEM "name"
> 
>   CLASS    
>     SIZE 8
>     COLOR 255 0 0
>     SYMBOL 6
>     LABEL
>       BACKGROUNDCOLOR 200 255 255
>       COLOR 30 94 94
>       TYPE BITMAP
>       #JUSTIFY CENTER
>       SIZE GIANT
>       POSITION AUTO
>       WRAP " "
>     END # Label
>   END # Class
> 
>   QUERY
>     TEMPLATE /AOLserver/servers/server1/pages/ms_demo/cities.html
>   END # Query
> END # Layer
> 
> END # Map File << File: line.sym >> 



More information about the MapServer-users mailing list