[Mapserver-users] setExpression

Rene Teniere TENIERER at gov.ns.ca
Wed Feb 18 04:50:39 PST 2004


Robert,

Same deal with that one as well, make sure you draw as late as possible, and set it up like this:

<?php
//insert all the stuff you have before

//  $query="\"H"\";
//or
//  $query="'H'";
//or
//  $query="/H/";
//or
$query="/H|F/";

$class0->setExpression($query);
//insert any other stuff you have to do to the map

$image = $map->draw();
$image_url = $image->saveWebImage();
?>

<img src=<?php echo $image_url; ?>>

This is the exact situation I ran into. Do a search in the archives for setExpression and you'll see everything we tried to get it going. Good luck!

Rene

Rene J.R. Teniere - BSc., D.GIS
GIS Technician
Nova Scotia Department of Natural Resources
Forestry Division (GIS) - Truro

Phone: (902) 893-5655
Mobile: (902) 209-8956

>>> "robert fritz" <robert-fritz at web.de> 2004-02-18 7:39:36 AM >>>
  Hello,

again a question about regular expressions....

Searching for one attribute works:
$query="H";
$classO->setExpression("\"$query\"");

I want to search for more than one attribute, but I do not know how to set the expression correctly:
$query="H|F";  // does not work
$query="/H|F/"; // does not work

$classO->setExpression("\"$query\"");


Mapserver 4.

Thank you,
Robert

______________________________________________________________________________
Extra-Konto: 2,50 %* Zinsen p. a. ab dem ersten Euro! Nur hier mit 25
Euro-Tankgutschein & ExtraPrämie! https://extrakonto.web.de/?mc=021110 


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list