-----Original Message-----
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Colson
Sent: Thursday, March 10, 2011 11:39 AM
To: Daniel Morissette
Cc: mapserver-users
Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
On 3/9/2011 8:47 PM, Daniel Morissette wrote:
The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
My mapfile has:
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 255 255 255
OUTLINECOLOR 0 61 245
BUFFER 3
ANGLE [txt_angle]
POSITION cc
PARTIALS false
END
I get error:
ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol()
(the line number is correct... that's very nice)
-Andy
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
On 3/10/2011 3:18 PM, Lime, Steve D (DNR) wrote:
> Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img?
Will have a look.
>
> THANKS FOR TESTING!!!
>
> Steve
>
Both fail. Here is the map file. It uses postGis, hopefully it'll die
parsing before you actually need to hit the db.
-Andy
# at zero (at + sign)
# 400 at 1
# 900 at 3 **start
# 3000 at 4
# 6000 at 5
# 11000 at 6
# 22000 at 7
# 44000 at 8
# 87000 at 9
MAP
#CONFIG "MS_ERRORFILE" "/tmp/blue.tmp"
NAME blueearth
SIZE 800 800
UNITS feet
SHAPEPATH '/pub/maps/BlueearthMN/shape'
FONTSET "/pub/www/fonts/fonts.txt"
#EXTENT 507346.988736 100294.437868 628854.325083 241675.238498
EXTENT 471625 98939 636718 252080
PROJECTION
"+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333
+lat_0=43 +lon_0=-94 +x_0=800000 +y_0=100000 +ellps=GRS80 +units=m +no_defs"
END
IMAGECOLOR 192 192 192
QUERYMAP
STATUS ON
STYLE HILITE
END
LEGEND
IMAGECOLOR 255 255 255
STATUS ON
#KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END
WEB
IMAGEPATH '/tmp/'
IMAGEURL '/tmp/'
METADATA
'wms_title' 'blueearthmn'
'wms_onlineresource'
'http://mapper/getmap.pl?map=blueearthmn&'
'wms_srs' 'EPSG:2812'
"wms_feature_info_mime_type" "text/plain"
"wms_enable_request" "*"
END
END
SYMBOL
NAME 'dashed1'
TYPE ELLIPSE
POINTS 1 1 END
FILLED true
PATTERN 5 5 5 5 END
END
SYMBOL
NAME 'CIRCLE'
TYPE ellipse
FILLED true
POINTS
1 1
END
END
SYMBOL
NAME "railway"
TYPE truetype
FONT "Vera"
CHARACTER "|"
GAP -25 # distance between symbols
END
LAYER
#DEBUG 4
NAME "raster12"
STATUS off
TILEINDEX "raster12.shp"
TILEITEM "location"
TYPE RASTER
END
LAYER
#DEBUG 4
NAME "raster6"
STATUS off
TILEINDEX "raster6.shp"
TILEITEM "location"
TYPE RASTER
END
LAYER
NAME 'search'
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION "dbname=gis user=andy"
DATA 'the_geom from (select parcelPoly.gid, general.gid as
genid, the_geom from blueearthmn.parcelPoly inner join blueearthmn.general on
general.parcelpin=parcelPoly.pin) as subq using unique gid using srid=-1'
STATUS off
# getmap.pl will fixup this filter, by default show nothing
FILTER '1=2'
METADATA
'wms_title' 'search'
END
CLASS
STYLE
SYMBOL 'circle'
COLOR 255 153 53
OUTLINECOLOR 255 126 1
SIZE 1
END
END
END
LAYER
NAME 'parcel_point'
STATUS off
TYPE POINT
CONNECTIONTYPE postgis
CONNECTION "dbname=gis user=andy"
DATA 'the_geom FROM blueearthmn.parcelPoint using unique gid
using srid=-1'
PROCESSING "LABEL_NO_CLIP=1"
TEMPLATE "query.html"
LABELITEM gisnum
METADATA
'wms_title' 'parcelPoint'
END
CLASS
NAME 'parcelpoint'
MAXSCALEDENOM 44000
STYLE
SYMBOL 'CIRCLE'
SIZE 1
OUTLINECOLOR 0 0 0
COLOR 150 123 90
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 255 255 255
OUTLINECOLOR 0 61 245
BUFFER 3
ANGLE [txt_angle]
POSITION cc
PARTIALS false
#FORCE true
END
END
END
LAYER
NAME 'parcels'
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION "dbname=gis user=andy"
DATA 'the_geom FROM blueearthmn.parcelPoly using unique gid
using srid=-1'
#PROCESSING "CLOSE_CONNECTION=DEFER"
PROCESSING "LABEL_NO_CLIP=1"
STATUS off
TEMPLATE "query.html"
#LABELITEM pin
METADATA
'wms_title' 'parcels'
"wms_srs" "EPSG:2812"
"ows_include_items" "all"
END
CLASS
NAME 'parcelpoly'
TEMPLATE "query.html"
MAXSCALEDENOM 6000
STYLE
SYMBOL 0
SIZE 2
OUTLINECOLOR 0 0 0
#COLOR 229 210 191
#COLOR 190 228 209
COLOR 255 255 255
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
#BACKGROUNDCOLOR 255 255 255
#BUFFER 10
ANGLE auto
POSITION auto
MAXSCALEDENOM 2000
PARTIALS false
#FORCE true
END
END
END
LAYER
NAME 'road_names'
TYPE LINE
CONNECTIONTYPE postgis
CONNECTION "dbname=gis user=andy"
DATA 'the_geom FROM blueearthmn.cadastralAnno using unique gid
using srid=-1'
#PROCESSING "CLOSE_CONNECTION=DEFER"
PROCESSING "LABEL_NO_CLIP=1"
TEMPLATE "query.html"
STATUS off
LABELITEM 'roads'
METADATA
'wms_title' 'road_names'
END
CLASSITEM 'tsclink'
LABELITEM 'textstring'
CLASS
EXPRESSION /Road Name/
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
#BACKGROUNDCOLOR 150 150 255
#ANGLE [angle]
POSITION auto
PARTIALS false
BUFFER 8
END
END
END
LAYER
NAME 'cadastral_line'
TYPE LINE
CONNECTIONTYPE postgis
CONNECTION "dbname=gis user=andy"
DATA 'the_geom FROM blueearthmn.cadastralLine using unique gid
using srid=-1'
#PROCESSING "CLOSE_CONNECTION=DEFER"
PROCESSING "LABEL_NO_CLIP=1"
TEMPLATE "query.html"
STATUS on
METADATA
'wms_title' 'cadastral_line'
END
CLASSITEM 'alphatag'
CLASS
#NAME 'alphatag = '
EXPRESSION ''
STATUS off
STYLE
SYMBOL 0
SIZE 2
OUTLINECOLOR 0 0 0
COLOR 0 0 0
END
END
CLASS
#NAME 'alphatag = Corp Line'
EXPRESSION 'Corp Line'
STATUS off
STYLE
SYMBOL 0
SIZE 2
COLOR 177 214 186
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME 'County Line'
EXPRESSION 'County Line'
STYLE
SYMBOL 0
SIZE 2
COLOR 124 53 190
OUTLINECOLOR 0 0 0
END
END
CLASS
#NAME 'alphatag = Geo Twp Line'
EXPRESSION 'Geo Twp Line'
STATUS off
STYLE
SYMBOL 0
SIZE 2
COLOR 120 117 243
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME 'Lot Line'
EXPRESSION 'Lot Line'
STATUS on
MAXSCALEDENOM 22000
STYLE
SYMBOL 'dashed1'
SIZE 1
COLOR 190 28 153
OUTLINECOLOR 0 0 0
END
END
CLASS
#NAME 'Misc Line'
EXPRESSION 'Misc Line'
STATUS off
MAXSCALEDENOM 22000
STYLE
SYMBOL 0
SIZE 2
COLOR 99 188 156
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME 'Parcel Line'
EXPRESSION 'Parcel Line'
MAXSCALEDENOM 22000
STYLE
SYMBOL 0
SIZE 2
COLOR 146 93 39
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME 'Pol Twp Line'
EXPRESSION 'Pol Twp Line'
STATUS off
STYLE
SYMBOL 0
SIZE 2
COLOR 58 109 205
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME 'Railroad'
EXPRESSION /Railroad/
SYMBOL 'circle'
COLOR 0 0 0
SIZE 1
OVERLAYSYMBOL 'railway'
OVERLAYCOLOR 0 0 0
OVERLAYSIZE 7
END
CLASS
NAME 'Road Centerline'
EXPRESSION 'Road Centerline'
STYLE
SYMBOL 0
SIZE 2
#COLOR 126 17 179
COLOR 170 170 170
#OUTLINECOLOR 100 100 100
END
END
CLASS
NAME 'Road ROW'
EXPRESSION 'Road ROW'
STYLE
SYMBOL 0
SIZE 2
COLOR 129 38 243
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME 'Section Line'
EXPRESSION 'Section Line'
STATUS off
STYLE
SYMBOL 0
SIZE 2
#COLOR 37 231 177
COLOR 0 0 0
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME 'Sub Line 100'
EXPRESSION 'Sub Line 100'
STATUS off
STYLE
SYMBOL 0
SIZE 2
COLOR 78 109 18
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME 'Sub Line 400'
EXPRESSION 'Sub Line 400'
STYLE
SYMBOL 0
SIZE 2
COLOR 247 175 40
OUTLINECOLOR 0 0 0
END
END
CLASS
NAME 'Water Line'
EXPRESSION 'Water Line'
STYLE
SYMBOL 0
SIZE 2
COLOR 0 0 255
OUTLINECOLOR 0 0 0
#BACKGROUNDCOLOR 0 0 255
END
END
END
LAYER
NAME 'Cadastral_Anno'
TYPE POLYGON
# DATA 'D:\maps\buchanan\buchanan County
geodb\shp\Cadastral_Anno.shp'
CONNECTIONTYPE postgis
CONNECTION "dbname=gis user=andy"
DATA 'the_geom FROM blueearthmn.cadastralAnno using unique gid
using srid=-1'
#PROCESSING "CLOSE_CONNECTION=DEFER"
PROCESSING "LABEL_NO_CLIP=1"
STATUS off
METADATA
'wms_title' 'Cadastral_Anno'
END
LABELITEM 'textstring'
CLASSITEM 'tsclink'
CLASS
EXPRESSION /Parcel Dim/
MAXSCALEDENOM 3000
LABEL
TYPE truetype
FONT "Vera"
SIZE 12
COLOR 179 0 255
OUTLINECOLOR 0 204 255
BUFFER 4
#BACKGROUNDCOLOR 255 255 255
#ANGLE [angle]
POSITION auto
#PARTIALS false
#MINDISTANCE 900
END
END
CLASS
EXPRESSION /Lot Dim/
MAXSCALEDENOM 3000
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 255 255 0
OUTLINECOLOR 133 133 255
BUFFER 4
#ANGLE [angle]
POSITION auto
END
END
END
LAYER
NAME annotate_pin
TYPE line
STATUS on
#PROCESSING "LABEL_NO_CLIP=1"
#SIZEUNITS miles
CLASS
NAME "Selected Parcel"
STYLE
COLOR 0 255 0
OUTLINECOLOR 0 255 0
WIDTH 3
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
STYLE
BACKGROUNDCOLOR 255 255 255
END
ANGLE follow
POSITION auto
#PARTIALS false
MINDISTANCE 900
MAXSCALEDENOM 6000
END
END
END
LAYER
NAME 'poltwppoly'
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION "dbname=gis user=andy"
DATA 'the_geom FROM blueearthmn.poltwppoly using unique gid
using srid=-1'
#PROCESSING "CLOSE_CONNECTION=DEFER"
STATUS off
METADATA
'wms_title' 'poltwppoly'
END
# County Map Begin Edit
CLASSITEM 'political_'
LABELITEM 'political_'
CLASS
EXPRESSION 'LE RAY'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 57 135 150
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'LINCOLN'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 1 150 194
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'STERLING'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 214 116 232
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'RAPIDAN'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 49 215 210
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'LIME'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 40 104 211
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'LYRA'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 53 90 98
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'BEAUFORD'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 125 239 107
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'CAMBRIA'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 101 93 101
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'JAMESTOWN'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 83 118 106
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'JUDSON'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 51 144 82
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'MANKATO'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 244 238 48
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'SHELBY'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 206 112 237
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'CERESCO'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 226 190 241
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'DECORIA'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 54 121 223
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'MAPLETON'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 181 199 18
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'VERNON CENTER'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 123 187 247
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'PLEASANT MOUND'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 148 95 203
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'GARDEN CITY'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 215 168 172
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'MEDO'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 29 222 170
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'MC PHERSON'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 131 62 205
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'SOUTH BEND'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 229 96 43
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'BUTTERNUT VALLEY'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 224 210 3
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
CLASS
EXPRESSION 'DANVILLE'
STYLE
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 26 233 80
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
# County Map End Edit
END
LAYER
NAME 'corp_poly'
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION "dbname=gis user=andy"
DATA 'the_geom FROM blueearthmn.corpPoly using unique gid using
srid=-1'
#PROCESSING "CLOSE_CONNECTION=DEFER"
STATUS off
LABELITEM 'corp_name'
METADATA
'wms_title' 'corppoly'
END
CLASS
NAME 'corppoly'
STYLE
SYMBOL 0
SIZE 2
OUTLINECOLOR 0 0 0
#COLOR 150 123 90
COLOR 45 220 182
END
LABEL
TYPE truetype
FONT "Vera"
SIZE 8
COLOR 0 0 0
ANGLE auto
POSITION auto
END
END
END
END
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users