<font color="#222222" face="arial, sans-serif">Hello, I am researching and trying to use queries layers of mapserver, mapscript through, but not how to obtain, if possible, the result information.</font><div>I do not use wms</div>
<div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
My java code</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
mapObj map = new mapObj("/home/gaston/maps/map/map.map") ;<br><div><div>layerObj layer = map.getLayerByName("Info");</div><div>//centerP es el putno</div><div>layer.queryByPoint(map,new pointObj(centerP.getX(),centerP.getY(),0), mapscriptConstants.MS_SINGLE, 10); </div>
<div>layer.open();</div><div>resultCacheObj res =layer.getResults(); </div><div> for(int i=0 ;i<layer.getNumResults();i++){ /</div><div> shapeObj feature = layer.getShape(res.getResult(i)); </div>
<div> //Aca no se q hacer</div><div> }</div><div><br></div></div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
My .map</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<div><div>MAP</div><div><span style="white-space:pre-wrap"> </span>STATUS on</div><div><span style="white-space:pre-wrap"> </span>SIZE 256 256</div><div><span style="white-space:pre-wrap"> </span>EXTENT -20037508 -20037508 20037508 20037508</div>
<div><span style="white-space:pre-wrap"> </span>UNITS meters</div><div><span style="white-space:pre-wrap"> </span>IMAGETYPE agg #Este nombre debe coincidir con el valor NAME de OUTPUTFORMAT</div><div><span style="white-space:pre-wrap"> </span>SHAPEPATH "data"</div>
<div><span style="white-space:pre-wrap"> </span>FONTSET "font/fonts.fnt"</div><div><span style="white-space:pre-wrap"> </span>SYMBOLSET "symbol/symbols.sym"</div><div><span style="white-space:pre-wrap"> </span>IMAGECOLOR "#b3c6d4"</div>
<div><span style="white-space:pre-wrap"> </span>DEBUG 5</div><div><span style="white-space:pre-wrap"> </span>CONFIG "MS_ERRORFILE" "/tmp/mapseerver.log"</div><div><br></div><div><span style="white-space:pre-wrap"> </span>OUTPUTFORMAT</div>
<div><span style="white-space:pre-wrap"> </span>NAME agg</div><div><span style="white-space:pre-wrap"> </span>DRIVER agg/png</div><div><span style="white-space:pre-wrap"> </span>IMAGEMODE rgb</div><div><span style="white-space:pre-wrap"> </span>FORMATOPTION "PALETTE_FORCE=TRUE" #es incompatible con la opcion anterior</div>
<div><span style="white-space:pre-wrap"> </span>FORMATOPTION "PALETTE=/home/gaston/maps/map/palette/map.palette"<span style="white-space:pre-wrap"> </span></div><div><span style="white-space:pre-wrap"> </span>MIMETYPE "image/png"</div>
<div><span style="white-space:pre-wrap"> </span>END</div><div><span style="white-space:pre-wrap"> </span></div><div>PROJECTION</div><div><span style="white-space:pre-wrap"> </span>"init=epsg:900913" </div><div>
<span style="white-space:pre-wrap"> </span>END</div></div><div><span style="white-space:pre-wrap"> </span>LAYER </div><div><span style="white-space:pre-wrap"> </span>NAME Info</div><div><span style="white-space:pre-wrap"> </span>STATUS on</div>
<div><span style="white-space:pre-wrap"> </span>TYPE polygon<span style="white-space:pre-wrap"> </span></div><div><span style="white-space:pre-wrap"> </span>CONNECTIONTYPE postgis</div><div><span style="white-space:pre-wrap"> </span> CONNECTION "####"</div>
<div><span style="white-space:pre-wrap"> </span>DATA "polygon from gis.pois"</div><div><span style="white-space:pre-wrap"> </span>CLASS </div><div><span style="white-space:pre-wrap"> </span>STYLE</div><div><span style="white-space:pre-wrap"> </span>COLOR "#f2efe9"</div>
<div><span style="white-space:pre-wrap"> </span>OUTLINECOLOR "#f2efe9"</div><div><span style="white-space:pre-wrap"> </span>END </div><div><span style="white-space:pre-wrap"> </span>END<span style="white-space:pre-wrap"> </span></div>
<div><span style="white-space:pre-wrap"> </span>PROCESSING "CLOSE_CONNECTION=DEFER"</div></div></div>