I already mentioned that you can check the query string applied on the 
shapefile. If I define the search like

<searchitem name="cities_2_fld" description="City + Country code">
  <layer type="shape" name="cities10000eu">
   <field type="s" name="NAME" description="City"  wildcard="0" />
   <field type="s" name="ISO2_CODE" description="C Code" wildcard="0" />
  </layer>
</searchitem>


Then I get a debug log (when setting the debug level to 3) as following:

Parameters for searchParams
file: query.php->q_execAttributeQuery
  Array
(
     [layerName] => cities10000eu
     [layerType] => shape
     [firstFld] => NAME
     [qStr] => ((  ( "[NAME]" =~ /(C|c)(A|a)(T|t)(A|a)/ ) ) AND ( 
"[ISO2_CODE]" =~ /(I|i)(T|t)/ ) )
)


I put a test script to test the result of the query string at
http://svn.pmapper.net/trac/browser/pmapper/trunk/util/test_query_string.php?format=txt

armin

On 21/03/2008 14:51, Stefano Gambini wrote:
> Hi Andre,
> I tried all options: options, suggest and operator...but doesn't work.
> 
> In my search.xml i write:
>     <searchitem name="monumenti_pericolo" description="Monumenti">
>         <layer type="shape" name="monumenti_pericolo">
>             <field type="s" name="tipologia" description="Tipo" wildcard="0" 
> />
>             <field type="s" name="fattibilit" description="Classe sismica" 
> wildcard="0" />
>         </layer>
>     </searchitem>
> and i do get "Tipo" and "Classe sismica" as options under "Monumenti". I can 
> perform simple queries referred to EITHER "Tipo" OR "Classe sismica" BUT i 
> can not do a multiple query which includes "Tipo" AND "Classe sismica" (for 
> example i want to highlight only those churches within sismic class=3). 
> Notice that the attributes of "Tipo" and "Classe sismica" belong to the 
> "tipologia" and "fattibilit" fields of the "monumenti_pericolo" shapefile. Do 
> i necessarily need a database for my multiple query to work, or can this be 
> achieved with simple shapefile?
> 
> Thanks a lot
> Stefano
>  
> 
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to