[mapserver-users] Querybypoint on wms / mapscript

2010-02-12 Thread jerome guitton

I need to make a querybypoint on a layers that are wms layers.

the mapfile for the wms is

MAP
  EXTENT -7.62370822331571 43.5483013153076 -0.202127302673821 
48.9686855316162

  FONTSET "fonts.list"
  IMAGECOLOR 255 255 255
  IMAGETYPE PNG
  SYMBOLSET "examples.sym"
  SIZE 650 475
  STATUS ON
  UNITS METERS
  NAME "MS"

 PROJECTION
  "init=epsg:4326"
END


  WEB
IMAGEPATH "/var/www/html/reglementation_fr/tmp/"
IMAGEURL "/reglementation_fr2/tmp/"
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
TEMPLATE "TOTO"
   METADATA
 "queryable" "true"
   wms_title "Demo serveur WMS"
   wms_onlineressource 
"http://xxx/cgi-bin/mapserv?map=/var/www/html/reglementation_fr/data/mapfile/reglementations_wms.map&; 
" 


   wms_srs "EPSG:4326"
   END
  END


 LAYER
CONNECTION "user=xxx dbname=reglementations_france host=localhost 
password=xxx"

CONNECTIONTYPE POSTGIS
DATA "geom from (select distinct idcouche as oid,idcouche as 
gid,idcouche,geom,nom from couches where groupe like 'traitcote') as foo"

LABELITEM "nom"
METADATA
 "queryable" "true"
  "wms_title""layer_fond"
END
NAME "layer_fond"
TEMPLATE 'TOTO'
 PROJECTION
  "init=epsg:4326"
END
STATUS ON
TYPE POLYGON
UNITS METERS
CLASS
  STYLE
ANGLE 360
COLOR 200 200 200
OUTLINECOLOR 0 0 0
SYMBOL 0
WIDTH 1
  END
END
  END


END


And i want to make a query by point on a mapfile that use these wms layers

MAP
  NAME monde
  # Map image size
  SIZE 700 700
  EXTENT -6.844027 45.180141 -0.93 50.224335
  PROJECTION
  "init=epsg:4326"
END

  # Background color for the map canvas -- change as desired

  IMAGEQUALITY 95
  IMAGETYPE gif
  OUTPUTFORMAT
NAME gif
DRIVER 'GD/GIF'
MIMETYPE 'image/gif'
#IMAGEMODE PC256
EXTENSION 'gif'
  END
  # Legend


  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH '/tmp/'

# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/tmp/'

# WMS server settings
METADATA
  'wms_title'   'monde'
  'wms_srs' 'EPSG:4326'
END

#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See 
MapServer documentation

  END

  LAYER
NAME 'world_borders'
TYPE POLYGON
TEMPLATE '../../tmp/test.html'
DATA '/var/www/html/testmapscript/data/world_borders.shp'

STATUS DEFAULT
TRANSPARENCY 100



  END

   LAYER
CONNECTION 
"http:///cgi-bin/mapserv?map=/var/www/html/reglementation_fr/data/mapfile/reglementations_wms.map&; 
" 


CONNECTIONTYPE WMS
METADATA
  "wms_srs""EPSG:4326"
"queryable""true"
  "wms_name""layer_fond"
  "wms_format""image/gif"
  "wms_server_version""1.1.1"
  "wms_title""layer_fond"
ENDa
NAME "layer_fond"
TEMPLATE '../../tmp/test.html'
STATUS ON
TYPE RASTER
UNITS METERS
  END
END

With mapscript the map appear no problem. But then i want to know if 
i've got a layer that is on the point (0,48.20)


so here is my php file

$map = ms_newMapObj($map_path."toto3.map") or die("on a mal charge le 
.map");


echo "Nombre de couches".($map->numlayers)."";

 $mpoint = ms_newPointObj();
$mpoint->SetXY(0,48.20);
// find into layer the most closed point
//--- LOOP ON LAYERS and get identify results.


$tot = $map->numlayers;
for ($i =0; $i < $tot; $i++) {
   //--- get map layer.
echo "on teste $i ";
   $oLayer = $map->getLayer($i);
   //--- Verify Layer type
   //--- Validate if query succeeds.
   $check_query = $oLayer->queryByPoint($mpoint, MS_SINGLE,0);

echo "---$check_query".($oLayer->getNumResults())." ";
   if ($check_query != MS_SUCCESS) {echo "Rien ".$oLayer->name." ";}
else {echo "on trouve une intersection avec 
".$oLayer->name."";}

   //--- Open layer for data input.
$oLayer->open();

} // for i

?>


He find that my layer world_borders (from the shapefile) in on the point 
but not the second one. But both should be find.


Please why can't i querybypoint on a wms layer ?

Jerome guitton
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] querybypoint a postgis db with php mapscript

2009-01-30 Thread MirMatin

Hi Stefan,
Did you get a work out of the problem. I am having the same problem and want
to find some solution.

Looking forward to your response

Regards,

Mir Matin


Stefan Schwarzer wrote:
> 
> Hi there,
> 
> I guess there is something I am doing wrong. I think that since I  
> moved from shapefiles to postgis, my query (bypoint/byrect) doesn't  
> work anymore. Is there anything I have to change? I am kind of  
> frustrated, because if looked around everywhere to find the problem;  
> this issue has cost me hours over hours, but nothing in sight
> 
> My code looks like this:
> 
>   //Set the layers status ON (b/c it might not be...)
>   $Layer -> set("status", 1);
> 
>   $ImgWidth = $map -> width;
>   $ImgHeight = $map -> height;
>   $x = (($ptX / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
>   $y = $ext4 - (($ptY / $ImgHeight) * ($ext4 - $ext2));
> 
>   $x1 = (($extent_px0 / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
>   $y1 = $ext4 - (($extent_px1 / $ImgHeight) * ($ext4 - $ext2));
>   $x2 = (($extent_px2 / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
>   $y2 = $ext4 - (($extent_px3 / $ImgHeight) * ($ext4 - $ext2));
> 
>   $click_pt = ms_newPointObj();
>   $click_pt -> setXY($x, $y);
>   
>   $click_rt = ms_newRectObj();
>   $click_rt -> setextent($x1, $y2, $x2, $y1);
>   
> 
>   //Query the Map at the point clicked
>   if (!$imgbox)
>   $a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1);
>   else
>   $a = $map -> queryByRect($click_rt);
> 
> 
> 
> 
> 
> 
> And my mapfile like this:
> 
>   LAYER
>   NAME floods_killed
>   STATUS ON
>   CONNECTIONTYPE postgis
>   CONNECTION 'user=xxx password=xxx dbname='
>   TYPE POLYGON
>   DATA "the_geom FROM
>   (
>   SELECT
>   c.the_geom,
>   c.name,
>   COALESCE(d.value, -) AS 
> value,
>   d.id_country AS uid
>   FROM
>   floods_killed AS d
>   RIGHT JOIN
>   countries AS c ON c.id = 
> d.id_country
>   WHERE
>   d.year_start = 2007 AND
>   c.id = d.id_country
>   ) AS foo USING UNIQUE uid USING 
> srid=4326"
>LABELITEM value
>   CLASSITEM 'value'
>   CLASS
>   NAME ''
>   EXPRESSION ([value]=-10001)
>   TEMPLATE 'empty space'
>   END  # CLASS
>   CLASS
>   NAME 'Units: Number of People'
>   EXPRESSION ([value]=-110003)
>   TEMPLATE 'units as title in legend'
>   END  # CLASS
> 
> 
> Thanks for any hints!
> 
> Stef
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/querybypoint-a-postgis-db-with-php-mapscript-tp1971499p229.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Querybypoint and drawquery

2008-08-28 Thread ramya srinivasan
hi,
 iam new to mapservers.can i get a sample php code for implementation of
queryBypoint and drawquery methods and the required changes to be made in
the mapfile for this code to work.Also please say something about template
in the layer.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] querybypoint

2008-08-26 Thread Steve Lime
Hi: This is the basic query method in MapServer. It allows you to intersect a 
point with one or more
layers. In MapScript there are layerObj and mapObj wrappers for it. To make a 
layer queryable via a
point you need to:

  1) define a presentation template, this could be as simple as TEMPLATE 'foo' 
if you don't intend to use it
  2) set a layer TOLERANCE value

That should do it.

Steve

>>> "ramya srinivasan" <[EMAIL PROTECTED]> 08/26/08 5:09 AM >>>
hi,
Can anyone tell me about QueryBypoint method and the faetures to be included
in the mapfile for this method to work

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] querybypoint a postgis db with php mapscript

2008-08-26 Thread Stefan Schwarzer

Hi there,

I guess there is something I am doing wrong. I think that since I  
moved from shapefiles to postgis, my query (bypoint/byrect) doesn't  
work anymore. Is there anything I have to change? I am kind of  
frustrated, because if looked around everywhere to find the problem;  
this issue has cost me hours over hours, but nothing in sight


My code looks like this:

//Set the layers status ON (b/c it might not be...)
$Layer -> set("status", 1);

$ImgWidth = $map -> width;
$ImgHeight = $map -> height;
$x = (($ptX / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
$y = $ext4 - (($ptY / $ImgHeight) * ($ext4 - $ext2));

$x1 = (($extent_px0 / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
$y1 = $ext4 - (($extent_px1 / $ImgHeight) * ($ext4 - $ext2));
$x2 = (($extent_px2 / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
$y2 = $ext4 - (($extent_px3 / $ImgHeight) * ($ext4 - $ext2));

$click_pt = ms_newPointObj();
$click_pt -> setXY($x, $y);

$click_rt = ms_newRectObj();
$click_rt -> setextent($x1, $y2, $x2, $y1);


//Query the Map at the point clicked
if (!$imgbox)
$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1);
else
$a = $map -> queryByRect($click_rt);






And my mapfile like this:

 LAYER
NAME floods_killed
STATUS ON
CONNECTIONTYPE postgis
CONNECTION 'user=xxx password=xxx dbname='
TYPE POLYGON
DATA "the_geom FROM
(
SELECT
c.the_geom,
c.name,
COALESCE(d.value, -) AS 
value,
d.id_country AS uid
FROM
floods_killed AS d
RIGHT JOIN
countries AS c ON c.id = 
d.id_country
WHERE
d.year_start = 2007 AND
c.id = d.id_country
) AS foo USING UNIQUE uid USING 
srid=4326"
 LABELITEM value
CLASSITEM 'value'
CLASS
NAME ''
EXPRESSION ([value]=-10001)
TEMPLATE 'empty space'
END  # CLASS
CLASS
NAME 'Units: Number of People'
EXPRESSION ([value]=-110003)
TEMPLATE 'units as title in legend'
END  # CLASS


Thanks for any hints!

Stef
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] querybypoint

2008-08-26 Thread ramya srinivasan
hi,
Can anyone tell me about QueryBypoint method and the faetures to be included
in the mapfile for this method to work
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] queryByPoint + PostGIS layers + USING statement

2008-07-23 Thread Stefan Schwarzer
If removing the superfluous ) doesn't solve your problem, you will  
need

to elaborate on what "doesn't like it" means. Does it give an error
message?


No, no error message... Query of a polygon does result in stalling the  
whole process.


I striped the map file, so that only one single layer appears.

Looks like this now:

LAYER
NAME co2_mdg_total
STATUS ON
CONNECTIONTYPE postgis
CONNECTION 'user=ss_admin password=450_data 
dbname=geodataportal'   
TYPE POLYGON
DATA "the_geom FROM
(
SELECT

c.the_geom,
c.name,

d.id_country AS uid
FROM

co2_mdg_total AS d
RIGHT JOIN
xxx
) AS foo USING UNIQUE uid USING 
srid=4326"
CLASSITEM 'value'
CLASS
NAME ''
EXPRESSION ([value]=-10001)
TEMPLATE 'empty space'
END  # CLASS
CLASS
NAME 'Units: Million Metric Tons of CO2'
EXPRESSION ([value]=-110003)
TEMPLATE 'units as title in legend'
END  # CLASS
CLASS
NAME 'no data'
EXPRESSION ([value]=-)
COLOR 230 230 230
TEMPLATE 'dummy'
#OUTLINECOLOR 147 190 238
END  # CLASS
CLASS NAME '0 to 1197596'
EXPRESSION ([value]<=1197596)
COLOR 255 255 178
TEMPLATE 'dummy'
#OUTLINECOLOR 147 190 238
LABEL
FONT arial
TYPE truetype
ANTIALIAS false
SIZE 7
COLOR 200 50 70
POSITION AUTO
PARTIALS FALSE
FORCE true
OFFSET 0 5
#OUTLINECOLOR 0 0 0
END
END  # CLASS
.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] queryByPoint + PostGIS layers + USING statement

2008-07-21 Thread Carlos Ruiz
If you want to retrieve geometry with a specify projection, i suggest you to 
set it inside the
postgres geometry_columns table, to simplify the query in the map file.

When you upload some shape file to the database via shp2pgsql utility, you can 
specify 
the SRID of the projection, if not, SRID sets to -1.

If you're an expert user, you can alter the values of the geometry_columns 
table.

IC Carlos Ruiz 

--- On Mon, 7/21/08, Stefan Schwarzer <[EMAIL PROTECTED]> wrote:
From: Stefan Schwarzer <[EMAIL PROTECTED]>
Subject: [mapserver-users] queryByPoint + PostGIS layers + USING statement
To: mapserver-users@lists.osgeo.org
Date: Monday, July 21, 2008, 8:00 AM

Hi there,

it seems that it's mandatory for postgis layers to use the
"USING"  
statement in the query.

My layer parameters look a bit like this:

DATA 'the_geom FROM ( SELECT  FROM xxx LEFT JOIN  WHERE xxx)  
AS foo USING UNIQUE uid USING srid=4326) '

But nevertheless, mapserver doesn't like it...

Can anyone give me a hint what is wrong with that?

Thanks for any advice,

Stef
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] queryByPoint + PostGIS layers + USING statement

2008-07-21 Thread Kristian Thy
On Mon, Jul 21, Stefan Schwarzer wrote:
> My layer parameters look a bit like this:
> 
>   DATA 'the_geom FROM ( SELECT  FROM xxx LEFT JOIN  WHERE xxx) 
> AS foo USING UNIQUE uid USING srid=4326) '

You have an extra ) at the end.

> But nevertheless, mapserver doesn't like it...

If removing the superfluous ) doesn't solve your problem, you will need
to elaborate on what "doesn't like it" means. Does it give an error
message?

\\kristian
-- 
... et nemo ex vobis interrogat me: »Quo vadis?«
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] queryByPoint + PostGIS layers + USING statement

2008-07-21 Thread Stefan Schwarzer

Hi there,

it seems that it's mandatory for postgis layers to use the "USING"  
statement in the query.


My layer parameters look a bit like this:

	DATA 'the_geom FROM ( SELECT  FROM xxx LEFT JOIN  WHERE xxx)  
AS foo USING UNIQUE uid USING srid=4326) '


But nevertheless, mapserver doesn't like it...

Can anyone give me a hint what is wrong with that?

Thanks for any advice,

Stef
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] queryByPoint problem - rien ne va plus

2008-07-08 Thread Stefan Schwarzer

Hi there,

I have a script to query my layers by point or rectangle, which used  
to run smoothly. But now, don't know what happened... I updated from  
an old mapserver version to a recent one. Is it that? I have no idea.


Here is the code which I use. When it reaches the bottom part with the  
queryByPoint it stalls...


Thanks for any help!

Stef


//Get the Layer being queried
$Layer = $map -> GetLayerByName($lyr_name);

//Set the layers status ON (b/c it might not be...)
$Layer -> set("status", 1);

$ImgWidth = $map -> width;
$ImgHeight = $map -> height;
$x = (($ptX / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
$y = $ext4 - (($ptY / $ImgHeight) * ($ext4 - $ext2));

$x1 = (($extent_px0 / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
$y1 = $ext4 - (($extent_px1 / $ImgHeight) * ($ext4 - $ext2));
$x2 = (($extent_px2 / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
$y2 = $ext4 - (($extent_px3 / $ImgHeight) * ($ext4 - $ext2));

$click_pt = ms_newPointObj();
$click_pt -> setXY($x, $y);

$click_rt = ms_newRectObj();
$click_rt -> setextent($x1, $y2, $x2, $y1);


//Query the Map at the point clicked
if (!$imgbox)
$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1);
else
$a = $map -> queryByRect($click_rt);
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] queryByPoint still valid?

2008-05-16 Thread Daniel Morissette

Stefan Schwarzer wrote:


Could anyone give me a hint what would be wrong with these lines? It 
seems that mapserver doesn't like it. But it doesn't spit out any error 
message. It just stops working... And after the doc, these commands 
should be quite alright.




By "stops working", do you mean that it seg faults or that it simply 
doesn't find any query result? Did you check the Apache error_log file 
for any hint of the problem (or a confirmation that it seg faults).


Also, make sure the files being queried are not corrupt, that the .qix 
is up to date if there is one, etc.


If it seg faults, then you may need to file a ticket with a small 
testcase to reproduce (mapfile, data, script, url to test, etc.).


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] queryByPoint still valid?

2008-05-15 Thread Stefan Schwarzer
hmm... I changed a couple of things in my application: new template  
engine; moved from PHP4 to PHP5; and from mapserver 4.x to mapserver  
5.x


Now, the "identify" feature (click on a country and give me some  
info about it), has problems


Is anything wrong with these lines?


//Query the Map at the point clicked
if (!$imgbox)
$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1);
else
$a = $map -> queryByRect($click_rt);


Could anyone give me a hint what would be wrong with these lines? It  
seems that mapserver doesn't like it. But it doesn't spit out any  
error message. It just stops working... And after the doc, these  
commands should be quite alright.


Thanks a lot,

Stef
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] queryByPoint still valid?

2008-04-23 Thread Stefan Schwarzer

Hi,

hmm... I changed a couple of things in my application: new template  
engine; moved from PHP4 to PHP5; and from mapserver 4.x to mapserver 5.x


Now, the "identify" feature (click on a country and give me some info  
about it), has problems


Is anything wrong with these lines?


//Query the Map at the point clicked
if (!$imgbox)
$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1);
else
$a = $map -> queryByRect($click_rt);

Thanks for any hints,

Stef
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] QueryByPoint problem: why always the same feature?

2008-04-21 Thread Pietro Giannini
Carlo,
I think the cache is refreshed each call of $layer->queryByPoint(point,
mode, buffer).
Remember to set the "mode" = MS_MULTIPLE to obtain more than one result,
the point is a $pointObj in GEOGRAPHIC coordinates, the buffer set to 0
get the default of the TOLERANCE (in pixels) of the mapfile, otherwise you
can specify in ground units a circle around the point for obtain the
results.

Look here:
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class
for a good guide about.

here a piece of code (it work):

$res = @$layer->queryByPoint($qpoint,MS_MULTIPLE,0);
if (@$layer->getNumResults() > 0) {
$layer->open();
for ($i=0;$i<$layer->getNumResults();$i++) {
$resCache = $layer->getResult($i);
$shape = $layer->getShape(-1,$resCache->shapeindex);
echo $shape->values['fieldname']."";
//  etc.
}
$layer->close();
}

ciao
..pg


-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E





On Lun, Aprile 21, 2008 13:20, Carlo Pelliconi wrote:
> Hi all.
> I use PHPMapScritp with Mapserver 4.10 on Debian Etch.
> I do a series of querybypoint, but the answer is always the first feature!
> I think it could be a resultCacheMember problem. How can I free all
> cache about previous query results?
> New results of next query are appended to previous results or getResult
> goes to a new set at any new query?
> It is sufficient to close the queried layer ad to free the
> $shp=getResult(...)?
> Thank you very much.
> Carlo
>
> --
> ing. Carlo Pelliconi
> [EMAIL PROTECTED]
> SIS.TER S.p.A.
> www.sis-ter.it
> via Mentana, 10
> 40026 Imola (BO) Italy
> tel +39 0542 364034
> fax +39 0542 612130
>
>
>
>
> ATTENZIONE!
> Questo documento è indirizzato esclusivamente al destinatario. Tutte le
> informazioni ivi contenute, compresi eventuali allegati, sono soggette
> a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di
> "privacy" e ne è proibita l'utilizzazione da parte di altri soggetti. Si
> ricorda che la diffusione l'utilizzo e/o la conservazione dei dati
> ricevuti per errore costituisce violazione di carattere penale ai sensi
> dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di
> corrispondenza). Se avesse ricevuto per errore questo messaggio, La
> preghiamo cortesemente di contattare il mittente al più presto e di
> cancellare il messaggio subito dopo. Grazie.
>
> ATTENTION!
> This message is being sent from Sis.Ter S.p.A. and may contain information
> which is confidential or privileged. If you are not the intended
> recipient, please advise the sender immediately by reply e-mail and delete
> this message and any attachments without retaining a copy. Any
> unauthorized use of the content of this message is a breach of your duty
> to respect the confidentiality of the correspondence between other persons
> and can expose the responsible party to civil and/or criminal penalties
> (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale
> "Violazione, sottrazione e soppressione di corrispondenza"), and may
> constitute a more serious offence. Thanks.
>
> ACHTUNG!
> Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin
> enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne
> des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und
> dürfen von anderen Personen nicht verwende werden. Wer diese Mitteilung
> irrtümlicherweise erhält ist gebeten uns umgehend zu informieren und
> anschließend die Mitteilung zu vernichten. Vielen Dank.
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] QueryByPoint problem: why always the same feature?

2008-04-21 Thread Carlo Pelliconi

Hi all.
I use PHPMapScritp with Mapserver 4.10 on Debian Etch.
I do a series of querybypoint, but the answer is always the first feature!
I think it could be a resultCacheMember problem. How can I free all 
cache about previous query results?
New results of next query are appended to previous results or getResult 
goes to a new set at any new query?  
It is sufficient to close the queried layer ad to free the 
$shp=getResult(...)?

Thank you very much.
Carlo

--
ing. Carlo Pelliconi
[EMAIL PROTECTED]
SIS.TER S.p.A.
www.sis-ter.it
via Mentana, 10
40026 Imola (BO) Italy
tel +39 0542 364034
fax +39 0542 612130




ATTENZIONE!
Questo documento è indirizzato esclusivamente al destinatario. Tutte le
informazioni ivi contenute, compresi eventuali allegati, sono soggette
a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di
"privacy" e ne è proibita l'utilizzazione da parte di altri soggetti. Si 
ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore 
costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale 
(Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore 
questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e di 
cancellare il messaggio subito dopo. Grazie.

ATTENTION!
This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or 
privileged. If you are not the intended recipient, please advise the sender immediately by reply 
e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use 
of the content of this message is a breach of your duty to respect the confidentiality of the 
correspondence between other persons and can expose the responsible party to civil and/or criminal 
penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale 
"Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more 
serious offence. Thanks.

ACHTUNG!
Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen 
Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in 
Sachen "Privacy" als streng vertraulich und dürfen von anderen Personen nicht 
verwende werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend 
zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank.


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users