[mapserver-users] Itemquery in 3.5

Laurent FOULONNEAU adsllaurentf at canl.nc
Sun Aug 19 08:05:24 EDT 2001


Hello mapserver users,

Is there any working sample using itemquery or itemnquery in 3.5. ?

I can't figure out how and where the value passed in http vars is tested in the mapfile. 

Any help would be very appreciated.

Follow some code...

Au revoir...
Laurent Foulonneau

I use a form like :
<input type="hidden" name="mode" value="itemquery">
 <input type="hidden" name="item" value="Nom">
 <input type="TEXT" size="30" name="value" value="">
 <input type="submit" value="Search">

so it produce an url like :
http://ubiq.hn.org/carto/noumea.phtml?minx=641474.000000&miny=7531714.000000&maxx=655534.000000&maxy=7542134.000000&imagewidth=500&imageheight=375&CMD=&INPUT_TYPE=&INPUT_COORD=&quartiers=Y&KEYMAPXSIZE=222&KEYMAPYSIZE=185&mode=itemquery&item=Nom&value=Ducos

with my mapfile like :
NAME DEMO
STATUS ON
SIZE 500 375
EXTENT 641474 7531714 655534 7542134
UNITS METERS
SHAPEPATH "../noumea"
FONTSET ../etc/fonts.txt

WEB
  MINSCALE 0
  MAXSCALE 50000000
  IMAGEPATH "/tmp/ms_tmp/" 
  IMAGEURL "/ms_tmp/"
  LOG "/tmp/gmap.log"
END


QUERYMAP
  STYLE HILITE
  COLOR 200 200 200
END

LAYER
  NAME quartiers
  METADATA
    "DESCRIPTION" "Nom"
    "RESULT_FIELDS" "Nom Perimetre Surface"
  END
  TYPE POLYGON
  STATUS ON
  DATA nou_utm
  LabelItem "Nom"
  CLASSITEM "Nom"
  CLASS
    COLOR 240 240 240
    OUTLINECOLOR 190 190 190
    TEMPLATE "query.html"
  END
END # layer

END #mapfile


My template "query.html" file only contain 
[Nom]




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010819/72169e4d/attachment.html


More information about the mapserver-users mailing list