[Mapserver-users] (no subject)

Merrett, Mike mike.merrett at city.whitehorse.yk.ca
Tue May 25 13:21:46 EDT 2004


Hi:
	Here is the map file.   I am not sure if it worked before I upgraded
to 4.2b3 (as I didnt find the errorlog until after the upgrade)
If I had to guess I would say that it is looking at the lable information
and trying to decode a symbol out of it but all my lable texts are either
random numbers or some text (i.e. lot numbers and street names) 

I didnt know about a GIS Users Group in Prince George - where can I find
details?  I am going to the Mapserver Usergroup in Ottawa though - will you
be there?



MAP
	debug true
	NAME Whitehorse
	STATUS ON
	SIZE 500 400
#	SYMBOLSET "e:\\VariousData\\Devel\\map_test\\etc\\symbols.sym"

	extent 485108.508198 6714194.605109 506888.578325 6745540.034837

	UNITS METERS
	SHAPEPATH "e:\\VariousData\\Devel\\map_test\\data"
	FONTSET "e:\\VariousData\\Devel\\map_test\\etc\\fonts.txt"

	IMAGECOLOR 255 255 255

	IMAGETYPE png24

	PROJECTION
			##  <32608>
		"proj=utm"
		#"init=epsg:32608"
		"ZONE=8"
		"ellps=WGS84"
		"datum=WGS84"
		"units=m"
		"north"
		"no_defs"
	END
	#
	# Start of web interface definition
	#
	WEB
		#MINSCALE 2000000
		minscale 5
		MAXSCALE 60000000

		IMAGEPATH "e:\\VariousData\\Devel\\map_test\\tmp\\"
		IMAGEURL "/map_test/tmp/"
		log 'gmap.log'

		METADATA
			"title" "Whitehorse, YT (General)"
			"author" "Mike Merrett"
		END
	END

	#
	# Start of reference map
	#
	REFERENCE
		IMAGE images/City_of_Whitehorse_key.png
		extent 485108.508198 6714194.605109 506888.578325
6745540.034837

		STATUS ON
		COLOR -1 -1 -1
		OUTLINECOLOR 255 0 0
		SIZE 120 90
	END

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

	#
	# Start of scalebar
	#
	SCALEBAR
		IMAGECOLOR 255 255 255
		LABEL
			COLOR 0 0 0
			SIZE SMALL
		END
		SIZE 400 5
		COLOR 255 255 255
		BACKGROUNDCOLOR 0 0 0
		OUTLINECOLOR 0 0 0
		UNITS kilometers
		INTERVALS 5
		STATUS ON
	END


	QUERYMAP
		STYLE HILITE   #selected
		COLOR 255 0 0
	 # status on
	END

OUTPUTFORMAT
  NAME png24
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE rgba
  EXTENSION "png"
END

	LAYER
		NAME "Cadastre Text"
		CONNECTION
"e:\GIS_Claims\gisdata\MapInfo\Cadastre\CAD_text.tab"
		CONNECTIONTYPE OGR
		METADATA
			DESCRIPTION	"Cadastre Text"
		END
		STATUS ON
		TYPE annotation
		minscale 100
		MAXSCALE 5000
		STYLEITEM "AUTO"
		LABELITEM "TEXT"
		CLASS
			debug true
			NAME "Cadastre Text"
			LABEL
				position auto
				PARTIALS true
				angle auto
			END # end of label
		END
	END # layer
END

-----Original Message-----
From: Tyler Mitchell [mailto:TMitchell at lignum.com]
Sent: May 25, 2004 10:12 AM
To: Merrett, Mike
Subject: Re: [Mapserver-users] (no subject)


Looks like your symbol definition is wrong.  Can you provide the full map 
file (I know it's looong) so we can see how your symbols are defined and 
what symbol is being used here.  Do you think this is a problem with the 
auto styling?  The symbol being used for that layer appears to be goofy. 
This may also be related to the version of mapserver you are using.  Did 
this work before an upgrade? 

p.s. are you coming down to the Northern BC GIS Users Group in Prince 
George?  If so, I'd love to meet, I'm doing a workshop on MapServer!

mapserver-users-admin at lists.gis.umn.edu wrote on 05/25/2004 09:56:54 AM:

> 
> Hi:
> 
> Can anyone explain the following?
> 
> the Error log file gives the following lines:
>    Tue May 25 09:50:17 2004 - getSymbol(): Symbol definition error.
> Parsing error near (KODIAK PLACE):(line 1363)
>    Tue May 25 09:50:17 2004 - getSymbol(): Symbol definition error.
> Parsing error near (449):(line 1363)
> 
> 
> 
> Ogrinfo gives the following output snippet:
> 
> OGRFeature(CAD_text):7846
>   DXF_ (Integer) = 7846
>   DXF_ID (Integer) = 7846
>   X (Real) = 494272.209545523
>   Y (Real) = 6729098.07961854
>   OFFSETX (Real) = 0
>   OFFSETY (Real) = 0
>   HEIGHT (Real) = 6
>   SYMBOL (Integer) = 4
>   LEVEL (Integer) = 5
>   TEXT (String) = KODIAK PLACE
>   e00_anno_id (Integer) = 7846
>   e00_text_level (Integer) = 5
>   e00_anno_name (String) = DXF
>   Style = LABEL(t:"KODIAK 
PLACE",a:0.000000,s:4.799023g,c:#000000,p:1,f:"")
>   POINT (494272.206 6729098.082)
> 
> the layer definition in the map file is
>    LAYER
>       NAME "Cadastre Text"
>       CONNECTION
> "e:\GIS_Claims\gisdata\MapInfo\Cadastre\CAD_text.tab"
>       CONNECTIONTYPE OGR
>       METADATA
>          DESCRIPTION   "Cadastre Text"
>       END
>       STATUS ON
>       TYPE annotation
>       minscale 100
>       MAXSCALE 5000
>       STYLEITEM "AUTO"
>       LABELITEM "TEXT"
>       CLASS
>          debug true
>          NAME "Cadastre Text"
>          LABEL
>             position auto
>             PARTIALS true
>             angle auto
>          END # end of label
>       END
>    END # layer
> 
> 
> I have tried every combination of symbol file -- blank - one known good
> entry -- there are no symbols in the map file --
> what symbol is it looking for?
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list