[Mapserver-users] msyyparse() - parse error
Möri Cédric
Cedric.Moeri at bd.so.ch
Mon Mar 22 09:04:20 PST 2004
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C4102F.B7EC23B0
Content-Type: text/plain;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Steve!
thanks for the hints. So i'm going to check my stuff once again, but =
this
time i've got an idea what i'm looking for ;-)
I attached my mapfile, if you like to have a look at it (it's quite a =
bunch
of lines).
Were there any recent changes in the msyyparse()-function between =
ms3.6.6
and ms4.0.1?
This mapfile worked quite fine in the "old" system (I didn't see this =
error
before working with 4.0.1).
What i'm not understandig too, is that the errors triggers sometimes =
one
time and then up to 60 times.
Thanks for your help
regards
Cedric
> -----Original Message-----
> From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
> Sent: Monday, March 22, 2004 5:38 PM
> To: Cedric.Moeri at bd.so.ch; mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] msyyparse() - parse error
>=20
>=20
> Hi there: Msyyparse() is the function that evaluates=20
> MapServer expressions. There
> are 3 possibilities:=20
>=20
> 1) There is an error in the expression you're using.
> 2) There is something funky in your data, that breaks an expression.
> 3) There is an error in the code itself.
>=20
> Although 1) and 3) are possible they seem unlikely. My guess=20
> is that there is an
> issue with certain data values and the expressions. One=20
> example would be
> data values containing embeded quotes. Let's say you had a place name
> called O'Reilly and where using an expression like:
>=20
> ('[placename]' =3D 'foo') which would become in the case of O'Reilly,
>=20
> ('O'Reilly' =3D 'foo') and this would cause a parse error.=20
>=20
> Could also happen with numeric fields that didn't contain=20
> numbers or are empty.
> We'd really need to see your mapfile to make the call.
>=20
> Steve
>=20
> >>> M=F6ri C=E9dric <Cedric.Moeri at bd.so.ch> 3/22/2004 4:27:42 AM >>>
> Hello list!
>=20
> we recently upgraded our systems from
> MapServer3.6.6/postgreSQL7.2.4/postgis0.8.0 to
> MapServer4.0.1/postgreSQL7.4.2/postgis0.8.1. The system is=20
> running under
> Linux RH7.2.
>=20
> Now i'm reciving sometimes this strange error "msyyparse(): =
Expression
> parser error. parse error".
> (In the old version, everyting worked perfect!)
>=20
> I'm not able to reproduce this error regularly. Sometimes it=20
> triggers when
> i'm switching some layers on/off, sometimes it triggers when=20
> i'm just paning
> (same layer-set/same scale). Sometimes it triggers only one=20
> time, othertimes
> up to 60 times with still the same mapfile.=20
>=20
> I read from the archives that there might be some issue about=20
> the querrying
> in postgis but there is not much more.
>=20
> So I guess I'm stuck. Has anybody a hint for me in which=20
> direction to go on
> with my quest? May anybody explain what the msyyparse does,=20
> and when it is
> called?
>=20
> Any hint would be appreciated!
> If needed I would be glad to provide further information.
>=20
> best regards
> mit freundlichen Gr=FCssen
>=20
> C=E9dric M=F6ri
>=20
> ********************************************
> Kanton Solothurn
> Amt f=FCr Geoinformation
> Abt. SO!GIS Koordinationsstelle=20
> R=F6tihof
> 4509 Solothurn
> T: ++41 (0)32 627 2475
> Fax: ++41 (0)32 627 2214=20
> http://www.sogis.so.ch=20
> ********************************************
>=20
>=20
------_=_NextPart_000_01C4102F.B7EC23B0
Content-Type: application/octet-stream;
name="strada.map"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="strada.map"
NAME STRADA
STATUS ON
#SIZE 666 594 # if the size entry is deleted, it can be set via the =
URL
SYMBOLSET =
"/opt/wwwroot/sogis/develop/cmoe/MapServer/etc/symbols/symbols.neu"
EXTENT 590000 190000 650000 265000
UNITS METERS
SIZE 200 200
SHAPEPATH "/opt/wwwroot/sogis/daten/"
IMAGECOLOR 255 255 255
FONTSET =
"/opt/wwwroot/sogis/develop/cmoe/MapServer/etc/fonts/fonts.list"
RESOLUTION 82
IMAGETYPE GIF
INTERLACE OFF
DATAPATTERN ".*"
TEMPLATEPATTERN ".*"
#
# Start of web interface definition
#
WEB
HEADER "/opt/wwwroot/sogis/develop/cmoe/MapServer/fr_map/header.html"
TEMPLATE =
"/opt/wwwroot/sogis/develop/cmoe/MapServer/fr_map/template.html"
FOOTER "/opt/wwwroot/sogis/develop/cmoe/MapServer/fr_map/footer.html"
MINSCALE 100
MAXSCALE 1550000
IMAGEPATH "/opt/wwwroot/sogis/gifs/"
IMAGEURL "/sogis/gifs/"
LOG "/opt/wwwroot/sogis/MapServer/etc/log/MapServer.log"
# EMPTY "/opt/wwwroot/sogis/develop/cmoe/MapServer/fr_map/empty.html"
# ERROR =
"http://srsofaioi4531/sogis/develop/cmoe/MapServer/fr_map/error.html"
END
QUERYMAP
SIZE 800 800
STATUS ON
STYLE selected
COLOR 255 0 0
END
#
# Start of legend
#
LEGEND
KEYSIZE 30 20
LABEL
TYPE TRUETYPE
ANTIALIAS TRUE
FONT arial
COLOR 0 0 0 =20
SIZE 11
END
TEMPLATE =
'/opt/wwwroot/sogis/develop/cmoe/MapServer/fr_map/legend_view_template.h=
tml'=09
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END #LABEL
SIZE 200 5
COLOR 0 0 0
BACKGROUNDCOLOR 255 255 255
OUTLINECOLOR 0 0 0
UNITS meters
INTERVALS 3
STATUS ON
END #SCALEBAR
#PROJECTION
# "init=3DEPSG:9814"
#END
LAYER
NAME polysearch
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION 'dbname=3Dfoo host=3Dbar user=3Dfoobar'
DATA "dummy"
TYPE POLYGON
TEMPLATE ""=09
DEBUG ON
CLASS=09
NAME "objekt"
OUTLINECOLOR 255 0 0
SIZE 7
SYMBOL 7
LABEL
TYPE TRUETYPE
FONT arial
POSITION CC
SIZE 16
COLOR 147 231 0 =20
OUTLINECOLOR 0 0 0=20
FORCE true
OFFSET 0 0
END
END
END
## ADRESSE ####################################
LAYER
NAME adressepoint ##
STATUS OFF
DATA ""
TYPE POINT
LABELITEM "LABEL"
LABELCACHE ON
POSTLABELCACHE TRUE
CLASSITEM "PROG_ID"
CLASS
NAME "green"
EXPRESSION "1"
SYMBOL "Feature_green"
COLOR 0 0 0
SIZE 40
LABEL
COLOR 0 0 0 =20
POSITION ur
SIZE 14
OFFSET 17 17
TYPE truetype
FONT arial
ANTIALIAS TRUE
OUTLINECOLOR 0 255 0
BACKGROUNDCOLOR 255 255 204
END =20
END
CLASS
NAME "red"
EXPRESSION "0"
SYMBOL "Feature_red"
COLOR 0 0 0
SIZE 40
LABEL
COLOR 0 0 0 =20
POSITION ur
SIZE 14
OFFSET 17 17
TYPE truetype
FONT arial
ANTIALIAS TRUE
OUTLINECOLOR 255 0 0
BACKGROUNDCOLOR 255 255 204
END =20
END
CLASS
NAME "red_pnt"
EXPRESSION "2"
SYMBOL 7
COLOR 255 0 0
SIZE 15
END =09
CLASS
NAME "green_pnt"
EXPRESSION "3"
SYMBOL 7
COLOR 0 255 0
SIZE 15
END =09
END
## ORTHOFOTO #######################
LAYER
MINSCALE 500
MAXSCALE 25000
NAME Orthofoto #Orthofoto 2002
STATUS ON
TILEINDEX sogis/pixelkarten/ortho02_idx
TILEITEM LOCATION
TYPE RASTER
END
## HINTERGRUNDKARTE SITUATION ###################
LAYER
NAME pk #Hintergrundkarte# #
STATUS ON
TYPE RASTER
MAXSCALE 10000
TILEINDEX sogis/pixelkarten/uep_idx
TILEITEM LOCATION
OFFSITE 255 255 255
END
LAYER
NAME pk #Hintergrundkarte# #
STATUS ON
MINSCALE 10000
MAXSCALE 35000
TILEINDEX sogis/pixelkarten/pk25cm_idx.shp
TILEITEM LOCATION
TYPE RASTER
CLASS
NAME "Situation"
EXPRESSION "6"
COLOR 0 0 0
END
OFFSITE 255 255 255
END=20
LAYER
NAME pk #Hintergrundkarte# #
STATUS ON
MINSCALE 35000
MAXSCALE 40000
TILEINDEX sogis/pixelkarten/pk50cm_idx.shp
TILEITEM LOCATION
TYPE RASTER
CLASS
NAME "Situation"
EXPRESSION "7"
COLOR 0 0 0
END=09
OFFSITE 255 255 255
END=20
LAYER
NAME pk #Hintergrundkarte# #
STATUS ON
MINSCALE 40000
MAXSCALE 150000
TILEINDEX sogis/pixelkarten/pk100cm_idx.shp
TILEITEM LOCATION
TYPE RASTER
CLASS
NAME "Situation"
EXPRESSION "7"
COLOR 0 0 0
END=09
OFFSITE 255 255 255
END
## GEMEINDEGRENZEN ##############################=20
LAYER
NAME gemeinde #Gemeindegrenzen#Legende#
MAXSCALE 600000
MINSCALE 1
STATUS ON
CONNECTIONTYPE POSTGIS=20
CONNECTION 'dbname=3Dfoo host=3Dbar user=3Dfoobar'
DATA "wkb_geometry from geo_gemeinden"
TYPE POLYGON
SYMBOLSCALE 150000
CLASS
TEMPLATE "/opt/wwwroot/sogis/MapServer/etc/php_inc/dummy.html"
NAME 'Gemeindegrenze'
OUTLINECOLOR 255 0 0
SYMBOL 7
SIZE 2 =09
MINSIZE 1
MAXSIZE 2
END
END=20
LAYER
NAME baukreis #Baukreise#
# DESCRIPTION "Baukreise"
MAXSCALE 6000000
MINSCALE 25000
STATUS ON
DATA avt/baukreise
TYPE POLYGON
LABELMAXSCALE 6000000
CLASS =20
OUTLINECOLOR 153 102 0
LABEL
TYPE TRUETYPE
ANTIALIAS TRUE
FONT arial=20
# COLOR 153 102 0
COLOR 255 255 255 =20
OUTLINECOLOR 0 0 0 =20
SIZE 15
END
TEXT (Baukreis [KREIS_STR])
END
END =20
###### ORTSPLAN #############=20
## BODENBEDECKUNG ###########
LAYER
NAME bdbed #Ortsplan#Legende
STATUS ON
MINSCALE 1
MAXSCALE 15000
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=3Dfoo host=3Dbar user=3Dfoobar"
DATA "wkb_geometry from (select oid,* from kva_av_bdbed where =
archive=3D0) as foo using SRID=3D-1"
TOLERANCE 0
TYPE POLYGON
#FILTER "archive=3D0"
CLASSITEM "ART"
CLASS
EXPRESSION "bla"
NAME "<table><tr><td =
colspan=3D2>=A0</td></tr><td>=A0</td><td><b>Bodenbedeckung</b></td></tr>=
</table>"
END
#Geb=E4ude
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION (([ART] =3D 0) OR ([ART] =3D 50))
NAME "Geb=E4ude"
COLOR 245 198 198
OUTLINECOLOR 70 0 0
END
#Befestigt
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION (([ART] =3D 1) OR ([ART] =3D 2) OR ([ART] =3D 11) OR =
([ART] =3D 9) OR ([ART] =3D 13))
NAME "Strassen, Wege, Geb=E4udeerschliessung"
COLOR 255 255 228
OUTLINECOLOR 25 25 12
END =20
CLASS
MINSCALE 1
MAXSCALE 15000 =20
EXPRESSION ([ART] =3D 3)
NAME "Trottoir"
COLOR 255 232 229
OUTLINECOLOR 30 8 8
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 4)
NAME "Verkehrsinsel"
COLOR 255 241 187
OUTLINECOLOR 50 20 0
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 5)
NAME "Bahnareal"
COLOR 234 251 209
OUTLINECOLOR 0 70 0
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 6 )
NAME "Flugplatz"
SYMBOL 'triangle'=20
SIZE 3
COLOR 100 100 100
BACKGROUNDCOLOR 250 250 250
OUTLINECOLOR 30 30 30
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 12 )
NAME "Parkplatz"
COLOR 232 232 232
OUTLINECOLOR 30 30 40
END
#Humusiert
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION (([ART] =3D 14) OR ([ART] =3D 15) OR ([ART] =3D 19) OR =
([ART] =3D 24))
NAME "Acker, Wiese, Weide, Garten, =FCbrige"
COLOR 252 244 218
OUTLINECOLOR 0 70 0
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 16 )
NAME "Reben"
SYMBOL 'reben'
SIZE 1
COLOR 10 70 0
BACKGROUNDCOLOR 225 255 175
OUTLINECOLOR 0 0 0
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 17 )
NAME "Obstkultur"
SYMBOL 'obst'
SIZE 1=20
COLOR 0 50 0
BACKGROUNDCOLOR 225 255 175
OUTLINECOLOR 0 50 0
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 18 )
NAME "=FCbrige Intensivkultur"
SYMBOL 'circle'=20
COLOR 0 50 0
BACKGROUNDCOLOR 225 255 175
OUTLINECOLOR 0 50 0
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 23 )
NAME "Hoch-, Flachmoor"
SYMBOL 'moor'
SIZE 9
COLOR 10 70 0
OUTLINECOLOR 0 70 0
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION (([ART] =3D 7) OR ([ART] =3D 25) OR ([ART] =3D 26))
NAME "Gew=E4sser"
COLOR 209 252 255
OUTLINECOLOR 0 0 160
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 27)
NAME "Schilfg=FCrtel"
SYMBOL 'schilf'
SIZE 8
COLOR 12 12 12
BACKGROUNDCOLOR 195 230 255
OUTLINECOLOR 0 0 85
END
#Wald
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION (([ART] =3D 28) OR ([ART] =3D 30) OR ([ART] =3D 31))
NAME "Wald, Hecken, =FCbrige Bestockte"
SYMBOL 'baumsymbol'
COLOR 90 230 50
OUTLINECOLOR 51 102 51 =20
BACKGROUNDCOLOR 255 255 0
END
#Fels, Abbau, Deponie
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 32)
NAME "Fels"
SYMBOL 'fels'
SIZE 9
COLOR 60 60 60
BACKGROUNDCOLOR 240 240 240
OUTLINECOLOR 50 50 50 =20
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 34)
NAME "Steinbruch"
SYMBOL 1
SIZE 4
COLOR 138 128 118
BACKGROUNDCOLOR 247 243 229
OUTLINECOLOR 78 43 33
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION (([ART] =3D 33) OR ([ART] =3D 35) OR ([ART] =3D 36) OR =
([ART] =3D 37))
NAME "Ger=F6ll, Sand, Kiesgrube, Deponie, =FCbriger Abbau"
SYMBOL 7
COLOR 153 113 102
BACKGROUNDCOLOR 248 240 232
OUTLINECOLOR 53 13 2 =20
END
#Anlagen
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 21)
NAME "Sportanlage gr=FCn"
COLOR 182 224 195
OUTLINECOLOR 0 70 0
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 8)
NAME "Sportanlage rot"
COLOR 212 165 165
OUTLINECOLOR 70 0 0
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION ([ART] =3D 22)
NAME "Friedhof"
SYMBOL 'friedhofskreuz'
SIZE 16
COLOR 50 50 50
BACKGROUNDCOLOR 223 223 223
OUTLINECOLOR 50 50 50
END
CLASS
MINSCALE 1
MAXSCALE 15000
EXPRESSION (([ART] =3D 20) OR ([ART] =3D 29))
NAME "Parkanlage, ~ bestockt"
COLOR 205 247 187
OUTLINECOLOR 0 70 0
END=20
END
## FL=C4CHEN ###############################
LAYER
NAME bdbed #Ortsplan#Legende
MINSCALE 1
MAXSCALE 15000
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=3Dfoo host=3Dbar user=3Dfoobar"
DATA "wkb_geometry from (select oid,* from kva_av_eopoly where =
archive=3D0) as foo using SRID=3D-1"
TYPE POLYGON
#FILTER "archive=3D0"
CLASSITEM "Art"=20
CLASS
EXPRESSION "bla"
NAME "<table><tr><td =
colspan=3D2>=A0</td></tr><td>=A0</td><td><b>Einzelobjekte =
Fl=E4chen</b></td></tr></table>"
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "7"
NAME "Brunnen"
COLOR 196 196 196
OUTLINECOLOR 50 50 50
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "9"
NAME "Pfeiler"
SYMBOL 'circle'
COLOR 50 50 50
BACKGROUNDCOLOR 251 251 251
OUTLINECOLOR 50 50 50
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION (([Art] =3D 13) OR ([Art] =3D 14))
NAME "Denkmal, Mast_Antenne"
SYMBOL 'Mast - Antenne'
SIZE 8
COLOR 0 0 0
BACKGROUNDCOLOR 245 245 245
OUTLINECOLOR 50 50 50
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "17"
NAME "Schwelle"
SYMBOL 'li unten re unten'
SIZE 2
COLOR 0 0 0
BACKGROUNDCOLOR 245 245 245
OUTLINECOLOR 50 50 50
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION (([ART] =3D 28) OR ([ART] =3D 30) OR ([ART] =3D 31))
NAME "bestockte Fl=E4che"
# SYMBOL 10
COLOR 205 247 187
OUTLINECOLOR 50 190 15
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION (([ART] =3D 2) OR ([ART] =3D 11))
NAME "schmaler Weg"
# SYMBOL 10
COLOR 255 255 228
OUTLINECOLOR 220 220 90
END
CLASS
MINSCALE 1
MAXSCALE 1000
EXPRESSION ([Art] =3D 8)
NAME "Reservoir"=20
SYMBOL 'li unten re unten'
SIZE 4
COLOR 0 0 255
OUTLINECOLOR 0 0 255
END
CLASS
MINSCALE 1
MAXSCALE 1000
EXPRESSION ([Art] =3D 3) =20
NAME "Eingedoltes Gew=E4sser"=20
COLOR 209 252 255
OUTLINECOLOR 102 204 255
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION (([Art] =3D 0) OR ([Art] =3D 11) OR ([Art] =3D 12) OR =
([Art] =3D 15) OR ([Art] =3D 19))
NAME "Geb=E4ude"
COLOR 245 198 198
OUTLINECOLOR 0 0 0
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION (([Art] =3D 2) OR ([Art] =3D 10)) =20
NAME "Geb=E4udeteil, Unterstand"=20
SYMBOL 'li unten re unten'
SIZE 2
COLOR 0 0 0
OUTLINECOLOR 0 0 0
END
END
LAYER
NAME bdbed #Ortsplan#Legende
STATUS ON
MINSCALE 1
MAXSCALE 15000
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=3Dfoo host=3Dbar user=3Dfoobar"
DATA "wkb_geometry from (select oid,* from kva_av_eopoly where =
archive=3D0) as foo using SRID=3D-1"
TYPE LINE
#FILTER "archive=3D0"
CLASSITEM "Art"=20
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "6"=20
NAME "Br=FCcke"=20
SYMBOL 'Gebaeude/ Mauern'
COLOR 0 0 0
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "5"=20
NAME "Tunnel"=20
SYMBOL 'unterirdische Bauten'
COLOR 0 0 0
END
CLASS
MINSCALE 1
MAXSCALE 1000
EXPRESSION "1"=20
NAME "unterirdisches Geb=E4ude"=20
SYMBOL 'unterirdische Bauten'
COLOR 0 0 0
END=20
CLASS
MINSCALE 1
MAXSCALE 1000
EXPRESSION "4"=20
NAME "Treppe"=20
SYMBOL 'Gebaeude/ Mauern'
COLOR 140 140 140
END
CLASS
MINSCALE 1000
MAXSCALE 5000
EXPRESSION ([Art] =3D 1)=20
NAME "unterirdisches Geb=E4ude"=20
SYMBOL 'unterirdische Bauten'
COLOR 0 0 0
END
CLASS
MINSCALE 1000
MAXSCALE 5000
EXPRESSION ([Art] =3D 8)=20
# NAME "Reservoir"=20
SYMBOL 'unterirdische Bauten'
COLOR 0 0 255
END
CLASS
MINSCALE 1000
MAXSCALE 5000
EXPRESSION ([Art] =3D 3) =20
# NAME "Eingedoltes Gew=E4sser"=20
SYMBOL 'unterirdische Bauten'
COLOR 102 204 255
OUTLINECOLOR 102 204 255
END
END
=20
## LINIEN ###########################=20
LAYER
NAME bdbed #Ortsplan#Legende
MINSCALE 1
MAXSCALE 15000
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=3Dfoo host=3Dbar user=3Dfoobar"
DATA "wkb_geometry from (select oid,* from kva_av_eoline where =
archive=3D0) as foo using SRID=3D-1"
TYPE LINE
#FILTER "archive=3D0"
CLASSITEM "ART"
CLASS
EXPRESSION "bla"
NAME "<table><tr><td =
colspan=3D2>=A0</td></tr><td>=A0</td><td><b>Einzelobjekte =
Linien</b></td></tr></table>"
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "28"
NAME "Luftseilbahn"
SYMBOL 'Eisenbahn/ Seilbahn/ Skilift'
COLOR 70 175 225
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "29"
NAME "Gondel-, Sesselbahn"
SYMBOL 'Eisenbahn/ Seilbahn/ Skilift'
COLOR 155 108 205=20
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "30"
NAME "Materialseilbahn"
SYMBOL 'Eisenbahn/ Seilbahn/ Skilift'
COLOR 200 82 82=20
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "31"
NAME "Skilift"
SYMBOL 'Eisenbahn/ Seilbahn/ Skilift'
COLOR 165 42 42
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "32"
NAME "F=E4hre"
SYMBOL 'Eisenbahn/ Seilbahn/ Skilift'
COLOR 20 40 200
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "34"
NAME "Achse"
SYMBOL 'Eisenbahn/ Seilbahn/ Skilift'
COLOR 0 0 0=20
END
CLASS
MINSCALE 5000
MAXSCALE 15000
EXPRESSION "27"
# NAME "Bahngeleise"
SYMBOL 'Gebaeude/ Mauern'
SIZE 2
COLOR 0 0 0
END
CLASS
MINSCALE 2500
MAXSCALE 5000
EXPRESSION "27"
# NAME "Bahngeleise"
SYMBOL 'Gebaeude/ Mauern'
SIZE 2
COLOR 0 0 0
END
CLASS
MINSCALE 1
MAXSCALE 2500
EXPRESSION "27"
NAME "Bahngeleise"
SYMBOL 'Gebaeude/ Mauern'
SIZE 4
COLOR 0 0 0
OVERLAYSYMBOL 'bahnlinie overlay'
OVERLAYSIZE 3
OVERLAYCOLOR 255 255 255
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "3"
NAME "eingedoltes Gew=E4sser"
SYMBOL 'unterirdische Bauten'
COLOR 0 0 250=20
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "4"
NAME "Treppe"
SYMBOL 'Gebaeude/ Mauern'
COLOR 140 140 140
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "14"
NAME "Mast_Antenne"
SYMBOL 'uebriger Gebaeudeteil'
COLOR 120 120 120
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "23"
NAME "Rinnsal"
SYMBOL 'Gebaeude/ Mauern'
COLOR 0 0 250=20
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "24"
NAME "schmaler Weg"
SYMBOL 'Abgrenzung der Bodenbedeckung'
COLOR 0 0 0=20
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "25"
NAME "Hochspannungsfreileitung"
SYMBOL 'Oel-, Gaspipeline'
COLOR 0 0 0=20
END
CLASS
MINSCALE 1
MAXSCALE 5000
EXPRESSION "26"
NAME "Druckleitung"
SYMBOL 'Oel-, Gaspipeline'
COLOR 130 80 180
END
END
## PUNKTE ###############################
LAYER
NAME bdbed #Ortsplan#Legende
MINSCALE 1
MAXSCALE 5000
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=3Dfoo host=3Dbar user=3Dfoobar"
DATA "wkb_geometry from (select oid,* from kva_av_eopnt where =
archive=3D0) as foo using SRID=3D-1"
TYPE POINT
#FILTER "archive=3D0"
SYMBOLSCALE 2400
CLASSITEM "ART"
CLASS
EXPRESSION "bla"
NAME "<table><tr><td =
colspan=3D2>=A0</td></tr><td>=A0</td><td><b>Einzelobjekte =
Punkte</b></td></tr></table>"
END
CLASS
EXPRESSION "13"=20
NAME "Denkmal"=20
SYMBOL 'Denkmal'
SIZE 10
MINSIZE 5
MAXSIZE 18
COLOR 0 0 0
END
CLASS
EXPRESSION "14"=20
NAME "Mast_Antenne"=20
SYMBOL 'Mast - Antenne'
SIZE 10
MINSIZE 5
MAXSIZE 16
COLOR 0 0 0
END
CLASS
EXPRESSION "21"=20
NAME "Fels"=20
SYMBOL 'Fels'
SIZE 10
MINSIZE 5
MAXSIZE 18
COLOR 0 0 0
END
CLASS
EXPRESSION "33"=20
NAME "Grotte, H=F6hleneingang"=20
SYMBOL 'Grotte'
SIZE 10
MINSIZE 5
MAXSIZE 18
COLOR 0 0 0
END
CLASS
EXPRESSION "35"=20
NAME "Einzelbaum"=20
SYMBOL 'Einzelbaum'
SIZE 10
MINSIZE 5
MAXSIZE 18
COLOR 0 0 0
END
CLASS
EXPRESSION "36"=20
NAME "Bildstock, Kruzifix"=20
SYMBOL "Kruzifix"
SIZE 10
MINSIZE 5
MAXSIZE 18
COLOR 0 0 0
END
CLASS
EXPRESSION "37"=20
NAME "Quelle"=20
SYMBOL "Quelle"
SIZE 10
MINSIZE 5
MAXSIZE 18
COLOR 0 0 0
END
END
LAYER
NAME labels #Bezugspunkt-Beschriftung# #
# DESCRIPTION "Bezugspunkt-Beschriftung"
MAXSCALE 10005
MINSCALE 100
SYMBOLSCALE 5000
STATUS ON
DATA avt/labelbox_centers
TYPE POINT
LABELMAXSCALE 6000000
LABELITEM "RPT_CK"
LABELANGLEITEM "ROTATION" =20
CLASS
LABEL
TYPE TRUETYPE
ANTIALIAS TRUE
FONT arial=20
COLOR 0 0 0 =20
FORCE true=20
SIZE 14
END
END
END =20
LAYER
NAME labels #Bezugspunkt-Beschriftung# #
# DESCRIPTION "Bezugspunkt-Beschriftung"
MAXSCALE 10005
MINSCALE 100
STATUS ON
DATA avt/labelboxes
TYPE POLYGON
CLASS
COLOR 255 255 204
OUTLINECOLOR 0 0 0
SYMBOL 'hellgelb transparent'
END
END
LAYER
NAME axe #Axen# #
MAXSCALE 600000
STATUS ON
DATA avt/axe
TYPE LINE
SYMBOLSCALE 25000
CLASS
COLOR 153 255 0
SYMBOL 7
SIZE 1
END
END=20
LAYER
NAME axequery=20
MAXSCALE 6000000
STATUS OFF
DATA avt/axe
TYPE LINE
SYMBOLSCALE 25000
CLASS
COLOR 255 0 0
SYMBOL 7
SIZE 4
END
END
LAYER
NAME axe #Axen# #
MINSCALE 100
MAXSCALE 35000
STATUS ON
DATA avt/axe
TYPE LINE
SYMBOLSCALE 25000
CLASS
COLOR 153 255 0
SYMBOL 7
SIZE 1
END
END
## AXENBESCHRIFTUNG ###################
LAYER
NAME axeo #Axen-Beschriftung#
MAXSCALE 25000
STATUS ON
DATA avt/axe
TYPE LINE
LABELITEM "AXE_CK"
SYMBOLSCALE 10000
LABELMAXSCALE 600000
CLASS
LABEL
TYPE TRUETYPE
ANTIALIAS true
FONT arial
COLOR 153 255 0 =20
OUTLINECOLOR 0 0 0
SIZE 8
MINSIZE 4
MAXSIZE 80
MINDISTANCE 300
ANGLE AUTO
POSITION CC
MINFEATURESIZE AUTO =20
END
END
END
LAYER
NAME restrict #Beschr=E4nkungen#Legende #
MAXSCALE 100000
STATUS ON
DATA avt/restrict/restrict_begin
TYPE POINT
SYMBOLSCALE 25000
# QUERYITEM "Nr"
CLASSITEM "Nr"
LABELITEM "Nr"
LABELCACHE ON
CLASS
LABEL
TYPE TRUETYPE
ANTIALIAS TRUE
FONT arial
MINFEATURESIZE 6
MINSIZE 7
MINDISTANCE 2
COLOR 255 255 255 =20
SIZE 3
POSITION AUTO
FORCE TRUE
BUFFER 1
BACKGROUNDCOLOR 255 0 0
END =20
END=09
END
LAYER
NAME restrict #Beschr=E4nkungen#Legende #
MAXSCALE 50000
STATUS ON
TOLERANCE 10
DATA avt/restrict/restrict
TYPE LINE
SYMBOLSCALE 12000
# QUERYITEM "Nr"
CLASSITEM "Nr"
CLASS
TEMPLATE =
"/opt/wwwroot/sogis/MapServer/projekte/avt/strada/qry_tpl.html"
NAME "Beschr=E4nkungen"
SYMBOL 7
SIZE 6
COLOR 255 0 0 =09
OVERLAYSYMBOL 7
OVERLAYCOLOR 255 255 255
OVERLAYSIZE 0.2
END
END
# dieser Layer ist nur vorhanden, weil das Ursprungsdatum zu kurz ist
# ab Massstab 100125 wird die Linie kleiner als Pixel und deshalb nicht =
mehr dargestellt
# Workaround: in diesem neuen Layer wird f=FCr den entsprechenden Punkt =
ein inline-feature
# erstellt!
LAYER=20
NAME restrict #Beschr=E4nkungen#Legende #
MAXSCALE 600000
MINSCALE 100125
STATUS ON
TOLERANCE 10
DATA avt/restrict/restrict
TYPE POINT
SYMBOLSCALE 25000
FEATURE
POINTS
600689 227525
END
END
CLASS=20
TEMPLATE =
"/opt/wwwroot/sogis/MapServer/projekte/avt/strada/qry_tpl.html"
SYMBOL 7
SIZE 80
COLOR 255 0 0
END=20
END
LAYER
NAME restrict #Beschr=E4nkungen#Legende #
MAXSCALE 600000
MINSCALE 50001
STATUS ON
TOLERANCE 10
DATA avt/restrict/restrict
TYPE LINE
SYMBOLSCALE 25000
CLASS
TEMPLATE =
"/opt/wwwroot/sogis/MapServer/projekte/avt/strada/qry_tpl.html"
SYMBOL 7
SIZE 80
COLOR 255 0 0 =09
END
END
#layer restrictbold wird nicht im /MapServer/ verwendet, sondern nur =
f=FCr die Standalone-Applikation des AVT
LAYER
NAME restrictbold=20
STATUS OFF
TOLERANCE 20
DATA avt/restrict/restrict
TYPE POINT
# CLASSITEM "nr"
CLASS
TEMPLATE =
"/opt/wwwroot/sogis/MapServer/projekte/avt/strada/qry_tpl.html"
NAME "Beschr=E4nkungen"
SYMBOL 7
SIZE 4
COLOR 255 0 0 =09
END
END
## ZUSTAND-RCO1400 ################################
LAYER
NAME rco1400 #Zustand rco-1400#Legende #
# DESCRIPTION "Zustand RCO-1400"
MAXSCALE 10005
MINSCALE 100
STATUS ON
DATA avt/themes/rco-1400
TYPE POLYGON
LABELMAXSCALE 6000000
CLASSITEM "VALUE1"
CLASS
EXPRESSION ([VALUE1] >=3D 0 and [VALUE1] < 2)
NAME "0 - 2"
COLOR 255 0 0
OUTLINECOLOR 0 0 0
END =20
CLASS
EXPRESSION ([VALUE1] >=3D 2 and [VALUE1] < 3)
NAME "2 - 3"
COLOR 255 153 153
OUTLINECOLOR 0 0 0
END =20
CLASS
EXPRESSION ([VALUE1] >=3D 3 and [VALUE1] < 4)
NAME "3 - 4"
COLOR 255 153 51
OUTLINECOLOR 0 0 0
END =20
CLASS
EXPRESSION ([VALUE1] >=3D 4 and [VALUE1] < 5)
NAME "4 - 5"
COLOR 0 153 51
OUTLINECOLOR 0 0 0
END=20
END =20
## BEZUGSPUNKTE ###################
LAYER
NAME svt_reference_ps #Bezugspunkte#Legende #
# DESCRIPTION "Bezugspunkte"
MAXSCALE 10005
MINSCALE 100
SYMBOLSCALE 5000
STATUS ON
DATA avt/svt_reference_ps
TYPE POINT
LABELMAXSCALE 6000000
CLASSITEM "RPT_SEGMT_"
CLASS
EXPRESSION ([RPT_SEGMT_] =3D 0)
NAME "Zwischenpunkt"
COLOR 255 255 204
OUTLINECOLOR 0 0 0
BACKGROUNDCOLOR 255 255 204=20
SYMBOL 4
SIZE 9
END =20
CLASS
EXPRESSION ([RPT_SEGMT_] =3D 1)
NAME "Axensegment Anfang"
COLOR 255 255 204
OUTLINECOLOR 0 0 0
BACKGROUNDCOLOR 255 255 204=20
SYMBOL 7
SIZE 11 =09
END =20
CLASS
EXPRESSION ([RPT_SEGMT_] =3D 2)
NAME "Axensegment Ende"
COLOR 255 255 204
OUTLINECOLOR 0 0 0
BACKGROUNDCOLOR 255 255 204=20
SYMBOL 7
SIZE 11=09
END
END
LAYER
NAME netz #Netz =F6ffentlicher Verkehr#Legende #
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=3Dfoo host=3Dbar user=3Dfoobar"
DATA "wkb_geometry from avt_oev_netz using SRID=3D-1"
TYPE LINE
MAXSCALE 50001
CLASS
NAME "Bus"
EXPRESSION ([TYP] =3D 1)
SIZE 3
SYMBOL 7
COLOR 0 0 255
END
CLASS
NAME "Bahn"
EXPRESSION ([TYP] =3D 2)
SYMBOL 'Gebaeude/ Mauern'
SYMBOL 250000
SIZE 4
COLOR 0 0 0
OVERLAYSYMBOL 'bahnlinie overlay'
OVERLAYSIZE 3
OVERLAYCOLOR 0 220 0
END
END
LAYER
NAME netz #Netz =F6ffentlicher Verkehr#Legende #
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=3Dfoo host=3Dbar user=3Dfoobar"
DATA "wkb_geometry from avt_oev_netz using SRID=3D-1"
TYPE LINE
MINSCALE 50001
CLASS
NAME "Bus"
EXPRESSION ([TYP] =3D 1)
SIZE 1
SYMBOL 7
COLOR 0 0 255
END
CLASS
NAME "Bahn"
EXPRESSION ([TYP] =3D 2)
SYMBOL 'Gebaeude/ Mauern'
SYMBOL 250000
SIZE 4
COLOR 0 0 0
OVERLAYSYMBOL 'bahnlinie overlay'
OVERLAYSIZE 3
OVERLAYCOLOR 0 220 0
END
END
LAYER
NAME klassierung #Strassenklassierung#Legende #
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=3Dcmoe host=3Dsrsofaioi4531 user=3Dmspublic =
port=3D5432"
DATA "wkb_geometry from avt_strassenklassierung using SRID=3D-1"
TYPE LINE
#MAXSCALE 50001
CLASS
NAME "<b>Achtung: Der genaue Strassenverlauf dieses Layers deckt =
sich nicht mit STRADA!</b>"
EXPRESSION ([COLOR] =3D foo)
SIZE 3
SYMBOL 7
COLOR 255 255 255
END
CLASS
NAME "Kategorie A<br>regionale Bedeutung, Belastung gering"
EXPRESSION ([COLOR] =3D 4)
SIZE 3
SYMBOL 7
COLOR 0 255 255
END
CLASS
NAME "Kategorie B<br>regionale Bedeutung, Belastung hoch"
EXPRESSION ([COLOR] =3D 5)
SIZE 3
SYMBOL 7
COLOR 100 0 255
END
CLASS
NAME "Kategorie C<br>kantonale Bedeutung, Belastung gering"
EXPRESSION ([COLOR] =3D 40)
SIZE 3
SYMBOL 7
COLOR 255 140 0
END
CLASS
NAME "Kategorie D<br>kantonale Bedeutung, Belastung hoch"
EXPRESSION ([COLOR] =3D 1)
SIZE 3
SYMBOL 7
COLOR 255 50 0
END
CLASS
NAME "Passstrassen"
EXPRESSION ([COLOR] =3D 6)
SIZE 3
SYMBOL 'bahnlinie overlay'
#SYMBOL 7
COLOR 255 0 255
END
END
LAYER
NAME messstellen #Z=E4hlstellen#
MAXSCALE 100005
MINSCALE 100
STATUS OFF
TOLERANCE 20
DATA avt/veza/messstellen
TYPE POINT
LABELMAXSCALE 6000000
CLASSITEM "Nr_string"
LABELITEM "Nr_string"
CLASS
TEMPLATE =
"/opt/wwwroot/sogis/MapServer/projekte/avt/strada/qry_tpl.html"
SYMBOL 'Zaehlstelle'
COLOR 0 0 0
SIZE 22
LABEL
TYPE TRUETYPE
ANTIALIAS TRUE
FORCE TRUE
FONT arial=20
COLOR 0 0 0 =20
SIZE 11
POSITION CC
END =20
END =20
END=20
LAYER
NAME liegen #Parzellen#
MINSCALE 1
MAXSCALE 55000
STATUS OFF
TYPE POLYGON
CONNECTIONTYPE POSTGIS
CONNECTION 'dbname=3Dfoo host=3Dbar user=3Dfoobar'
DATA "wkb_geometry from (select oid,wkb_geometry from kva_av_liegen =
where archive=3D0) as foo using SRID=3D-1"
CLASS
NAME "Liegenschaften"
OUTLINECOLOR 40 40 40
END
END
END
------_=_NextPart_000_01C4102F.B7EC23B0--
More information about the MapServer-users
mailing list