[mapserver-users] gmap and queries

Vinko Vrsalovic B. v at w.cl
Thu Jul 26 22:14:04 EDT 2001


Hello,

	I've seen the gmap for mapscript 3.5 and how to handle the
new queries functions, but can't get it right.

	The manual says that the query is performed on all the shapes that
are part of a class that contains a template parameter. How can I tell
if a shape is part of a class?

	And the template has to be a dummy file in the case of mapscript?

	(I couldn't find the ttt_query.html file)

	What defines a match for the query functions? And CLASSITEM is
the right parameter to set the record that will be asked about?

	I can use the CLASSITEM and EXPRESSION parameters to define what
will be drawn in the image, but when i click on a point and do 
queryByPoint, nothing matches. 

	(The point is in georeferenced coords using the GMapPix2Geo function, 
just to be sure they're converted right)

	I have even defined a rectobj with all the map extent and using
queryByRect with that rectobj gives me 'no matching records' too.

	The tolerance factor is set to 5 in each layer of the mapfile.

	The querymap object is defined in the mapfile.

	The layers are of type LINE.

	I tried with a POINT type too but with no avail.
	
-- 
V. <v at w.cl>



More information about the mapserver-users mailing list