error 500 while enabling REQUIRES
Sergio Lopez
sergiodlopez at YAHOO.COM
Sun Nov 13 15:03:46 PST 2005
Hi there:
I have a problem, when I turn on REQUIRES in a layer I receive a Internal
Server error 500. everithing works fine when I comment the line.
the line in my .map file is:
REQUIRES "![Img]"
I also tried
REQUIRES "[Img] !=1"
the "Img" layer is a TIFF raster.
The issue is that the map file worked perfectly well with version 4.2 of
mapscript.dll. The problem appeared when I upgraded to 4.4 and above.
am I doing something wrong?
both llayers are:
LAYER
NAME "Img"
STATUS OFF
DATA "mdpgk2.TIF"
TYPE RASTER
UNITS METERS
SIZEUNITS PIXELS
END
LAYER
NAME "Manzanas"
GROUP "Base"
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION "host=xxport=5432 dbname=xxuser=xxpassword=xx"
DATA "the_geom from manzanas"
TYPE POLYGON
CLASSITEM "verde"
UNITS METERS
SIZEUNITS PIXELS
MAXSCALE 25000
REQUIRES "![Img]"
TOLERANCE 10
TOLERANCEUNITS PIXELS
CLASS
NAME "comunes"
EXPRESSION "0"
STYLE
SYMBOL 0
COLOR 255 255 199
OUTLINECOLOR 100 100 100
SIZE 3
END
END
CLASS
NAME "VERDES"
EXPRESSION "1"
STYLE
SYMBOL 0
COLOR 0 170 0
OUTLINECOLOR 100 100 100
SIZE 3
END
END
CLASS
NAME "AGUA"
EXPRESSION "3"
STYLE
SYMBOL 0
COLOR 0 0 240
OUTLINECOLOR 100 100 100
SIZE 3
END
END
END
Thanks in advance
Sergio
La Plata - Argentina
More information about the MapServer-users
mailing list