[mapserver-users] Layer Object Parameter Substitution fromURLusing GIS
Heiko Schröter
schroete at iup.physik.uni-bremen.de
Wed Apr 8 23:37:32 PDT 2009
Hello Steve,
Mapserver fails by just scanning the mapfile.
Did fetch the 5.4_rc1 and installed it. But same behaviour as with the
5.4_beta.
/usr/lib/cgi-bin/mapserv -v
MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE
[Thu Apr 9 08:13:06 2009].548952 loadHashTable(): Unknown identifier. Parsing
error near (FILTER):(line 128)
[Thu Apr 9 08:13:06 2009].549088 msFreeMap(): freeing map at 0x18c51b0.
Did cut and paste your filter suggestion into the Mapfile but same result.
I'am back in the office on 15th of April.
Thanks for your effort.
Regards
Heiko
>
> LAYER
> NAME 'psc'
> ...
> VALIDATION
> filter '^orbitnr=[0-9]{1,5}$'
> END
> ...
> END
> >
> You can set a far more general pattern (e.g. '.' matches anything) but I
> recommend against it.
The corrected MAPFILE:
MAP
NAME WELT
CONFIG "MS_ERRORFILE" "/tmp/ms_error.txt"
DEBUG 5
STATUS ON
#SIZE 647 320
SIZE 800 400
IMAGETYPE PNG24
IMAGECOLOR 240 240 240
SHAPEPATH "data"
#EXTENT -180 -89.8 180 83.623596
EXTENT -180 -90 180 90
UNITS DD
WEB
IMAGEPATH "images"
IMAGEURL "images"
MINSCALE 50000
MAXSCALE 400000000
METADATA
"wms_title" "Example WMS Server"
"wms_onlineresource" "http://kahlo1/cgi-bin/mapserv?map=heiko1.map&"
"wms_srs" "epsg:4326 epsg:32661 epsg:32761 epsg:4308 epsg:3413
epsg:3575 epsg:0815 epsg:0816"
END
END
PROJECTION
"init=epsg:4326"
END
<snip>removed not needed layers for readability<snap>
LAYER
NAME "PSC"
CONNECTIONTYPE POSTGIS
OPACITY 30
STATUS ON
METADATA
"wms_title" "psc"
END
PROJECTION
"init=epsg:4326"
END
CONNECTION "user=foo password=fum dbname=fei host=kahlo1"
DATA "geocenter from scia_psc"
VALIDATION
FILTER '.' <--- Line 128
END
FILTER "orbitnr=3456"
TYPE POINT
CLASS
COLOR 250 10 10
SYMBOL "circle"
SIZE 7
END
END # Layer
END # Ende Map
More information about the MapServer-users
mailing list