Programs using FILTER and QUERY on POSTGIS layers

Rainer Spittel gosia.rainer at T-ONLINE.DE
Fri Nov 19 02:29:53 PST 2004


hi,

  I have a small problem with the mapserver and MapScript. I have stored my
data into the PostGIS database and I am using the FILTER expression to
select specific entities from the table, e.g. datasets fo a specific year.
  The mapserver shows the map correkt.

  I try to query on the layer by using the QueryByPoint function. But I am
receiving entities which are not fitting to the filter...

  For example:

  I set the filter, using MapScript, to select a specific year:

[...]
  $layer = $gpoMap->getLayerByName("Voyages_ASIA");
  $layer->setFilter("decade_start=".$ms_filter);
[...]

  When I query on this layer:

[...]
  @ $layer->QUERY_POINTByPoint($oClickGeo, MS_SINGLE, 50);

  I receive datasets which are not fitting to the filter...

What is wrong? HELP!!! ;-)

How can I read the current filter?

Cheers
Rainer



More information about the MapServer-users mailing list