[mapserver-users] Strange results with the QueryResultObj Class in the PHP Mapscript

Christian Fuerpass fuerp at atlas.gis.univie.ac.at
Wed Jun 20 12:18:59 EDT 2001


Hi!

I use the PHP Mapscript Module in my application with runs with
Mapserver 3.4 (and Mapplet) on a Linux System.

I use the query option with a rectangle around some points and get very
strange results:

For example, i will draw the rectangle around a point from layer 23 and
from layer 24.
If the point of layer 23 is left from the point of layer 24 the result
will only be the point of layer 23.
Otherwise if the point of layer 24 is left of the point of layer 23, i
will get the correct result, of both points.
(Something simmilar works if one point is above the other point and
reverse.)

Both layer consists of the same shapefile with different expression in a
single class.

Could it be that there is a bug in the programming of MapScript, or is
my own programming wrong?
For me it sounds like the bug is not in my application because, as
written before, sometimes it works and sometimes not, shown in the
example.

You can try it out at:

http://dtm6.gis.univie.ac.at/mapserver/atos/htdocs/demo/sta.phtml?lang=E

Queryable are the pink points which are in different layers.
A good place to try out is at the south end of Italy near "Bari". Some
states like Austria have no date inside, if this happens please try
querying in another state.

Maybee someone has noticed this before and can give me some solutions.

Thanks in advance

Christian


PS: The application is not finished yet and some graphics are only
placeholders.

--
________________________________________________________
Institut fuer Geographie der Universitaet Wien
   Kartographie und Geoinformation

Deptartment of Geography and Regional Science
   University of Vienna
   Cartography and GIS

  Tel:            (+43 1) 4277 48658
  Fax:            (+43 1) 4277 48649
  E-Mail:       mailto:fuerp at atlas.gis.univie.ac.at
  Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA

  WWW:        http://www.gis.univie.ac.at/karto/
_______________________________________________________





More information about the mapserver-users mailing list