OutputFormat ImageMap, PostGIS and SymbolHref
Jean David TECHER
davidtecher at YAHOO.FR
Wed May 18 07:07:05 PDT 2005
Hi
I have a mapfile in imagemap outputformat with a layer with a PostGIS layer
I use mapserver cvs
OUTPUTFORMAT
NAME "imagemap"
MIMETYPE "imagemap"
DRIVER "imagemap"
EXTENSION "html"
IMAGEMODE "PC256"
TRANSPARENT FALSE
FORMATOPTION
"SYMBOLHREF=javascript:affichage_popup('./info.php?uid=%s&dept=21','popup1')
"
FORMATOPTION "POLYHREF=#"
END
The imagemap works fine on a postgis layer with
type polygon but
doesn't to work for
type point
I means that from the '%s' gave me only the layer's name (baigande21) ...I
got from FormatOption
affichage_popup('./info.php?uid=baignade21&dept=21','popup1')"
Is it possible to get something like
affichage_popup('./info.php?uid=0&dept=21','popup1')"
affichage_popup('./info.php?uid=1&dept=21','popup1')"
affichage_popup('./info.php?uid=2&dept=21','popup1')"
and so on Or did I have to modify mapserver/mapimagemap.c????
LAYER
CLASSITEM "gid"
CONNECTION "user=postgres dbname=bourgogne_baignade host=localhost"
CONNECTIONTYPE POSTGIS
DATA "centroid(the_geom) from (select * from baignade21 ) as foo using
unique gid using SRID=27582"
METADATA
"QUERY_FIELDS" "gid"
"TABLE" "baignade21"
END
NAME "baignade21"
SIZEUNITS PIXELS
STATUS DEFAULT
TOLERANCEUNITS PIXELS
TYPE POINT
UNITS METERS
CLASS
LABEL
SIZE MEDIUM
TYPE BITMAP
BACKGROUNDCOLOR 255 255 255
BACKGROUNDSHADOWCOLOR 255 255 255
BUFFER 0
COLOR 0 0 0
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 0 0
OUTLINECOLOR 255 255 255
PARTIALS TRUE
POSITION CC
SHADOWCOLOR 255 255 255
END
METADATA
END
STYLE
ANGLE 360
COLOR 0 0 255
SIZE 12
SYMBOL 3
END
END
END
I
---------------------------------------------------------------
TECHER Jean David
01MAP
e-mail: david at 01map.net
Tél: 04 67 45 60 27
Entreprise: http://www.01map.net
Perso: http://techer.pascal.free.fr/postgis/
-----------------------------------------------------------
More information about the MapServer-users
mailing list