[mapserver-users] Itemquery in 3.5

Stephen Lime steve.lime at dnr.state.mn.us
Mon Aug 20 08:11:50 PDT 2001


I'll have to post something from home tonite. ITEMQUERY has changed radically (for the
better) in order to support all file types (i.e. SDE/OGR/PostGIS/shapefile). I've updated
the test suite on my home machine but not in the demo CVS yet. Will try to get that all
squared away this evening. At that point you'll be able to download the test suite and data
from the CVS to play with.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Laurent FOULONNEAU" <adsllaurentf at canl.nc> 08/19/01 07:05AM >>>
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]








More information about the MapServer-users mailing list