[Geomoose-users] Search issue - no results

CoFIS Web coffee at uni-bonn.de
Thu Dec 17 06:41:52 EST 2009


This is what I get if I comment out error reporting in query.php:

I searched for "Oromia" & it returns:

Warning: [MapServer Error]: msQueryByRect(): No matching record(s) 
found. in /srv/www/geomoose/2.0.1/htdocs/php/query.php on line 317

Warning: [MapServer Error]: msEvalExpression: Failed to parse 
expression: ("Oromia" =~ /.*(o|O)(r|R)(o|O)(m|M)(i|I)(a|A).*/) in 
/srv/www/geomoose/2.0.1/htdocs/php/query.php on line 317

Warning: [MapServer Error]: msyyparse(): syntax error in 
/srv/www/geomoose/2.0.1/htdocs/php/query.php on line 317


GM parses through the table but for some reason does not recognise the 
entries with "Oromia" as such. ...

Any suggestions?

Nils


Len Kne schrieb:
> In query.php or itemquery.php, try commenting out the error suppression, like this:
> 
> #error_reporting(E_ERROR | E_PARSE);
> 
> That might give some further information.  Also in Firebug, check the param values being sent to make sure they look right.  Maybe the extent is wrong? - speaking from frustrating experience here.
> 
> Len
> 
> -----Original Message-----
> From: CoFIS Web [mailto:coffee at uni-bonn.de] 
> Sent: Wednesday, December 16, 2009 9:06 AM
> To: Len Kne
> Cc: GeoMoose Mailing list
> Subject: Re: [Geomoose-users] Search issue - no results
> 
> alright, so how can I start tracking down the issue in my app?
> 
> Nils
> 
> 
> 
> Len Kne schrieb:
>> I can confirm that using query.php with 2.0.1 works just fine, we have several sites with this combination.  
>>
>> Len
>>
>> -----Original Message-----
>> From: Dan Little [mailto:danlittle at yahoo.com] 
>> Sent: Wednesday, December 16, 2009 8:44 AM
>> To: coffee at uni-bonn.de; GeoMoose Mailing list
>> Cc: Len Kne
>> Subject: Re: [Geomoose-users] Search issue - no results
>>
>> Actually, Len and Brian are running query.php with 2.0.1 installations.  There's just no "package" to download.  We're currently trying to put the trunk code, "through the paces."  In my opinion, there are MANY fixed bugs with the current trunk and very few new ones.
>>
>>
>>
>> ----- Original Message ----
>>> From: CoFIS Web <coffee at uni-bonn.de>
>>> To: GeoMoose Mailing list <geomoose-users at lists.sourceforge.net>
>>> Cc: Dan Little <danlittle at yahoo.com>; Len Kne <lkne at houstoneng.com>
>>> Sent: Wed, December 16, 2009 8:37:59 AM
>>> Subject: Re: [Geomoose-users] Search issue - no results
>>>
>>> Dan Little schrieb:
>>>> Getting the new query service will require pulling from SVN/trunk as it is 
>>> technically a 2.2 feature.
>>>
>>> Too bad, I rather stick with 2.0.1 for the official version.
>>>
>>> Anyway, no luck using the patterns in the demo from the downladable packages for 
>>> GM 2.0.1. The query still does not return any results.
>>>
>>> One thing that I find strange is, that if I mess up the 
>>> php/itemquery.php to something like php/nothing.php, GM 
>>> does not return an error but the "No results found for your query!". So I think 
>>> it doesn´t even call the service (Yes, I cleared the cache and reloaded FF).
>>>
>>> Nils
>>>
>>> My mapbook service now looks like
>>>
>>>
>>>   php/itemquery.php
>>>   
>>>     
>>>       Wereda
>>>       Region    
>>>     
>>>     
>>>     
>>>     
>>>     
>>>   
>>>
>>>
>>> All the rest is still the same:
>>>
>>>
>>>
>>> service="search_admin" selectable="false"/>
>>>
>>>
>>> In my mapfile in
>>> METADATA
>>> 'identify_record'    'tool_identify/wereda_identify.html'
>>> 'itemquery'        'tool_select/admin_04_wereda_itemquery.html'
>>> #'itemquery-filteritem'    'region'
>>> 'itemquery-filter'    '/.*[qstring].*/i'
>>> 'qstring_validation_pattern'    '.'
>>> END #METADATA
>>>
>>>
>>> admin_04_wereda_itemquery.html says
>>>
>>>
>>> [wereda]
>>> [region]
>>>
>>>
>>> src="images/toolbar/zoomto.png" border="0" title="Click here to zoom
>>> selected wereda">
>>>
>>
>>
>>       
> 

-- 
Center for Development Research
Department of Ecology and Resource Management

Walter-Flex-Strasse 3
53113 Bonn (Germany)

Tel.:   +49 (0) 228 - 73-1793
FAX:    +49 (0) 228 - 73-1889

E-Mail: coffee at uni-bonn.de

Web:    http://www.cofis.info/atlas
         http://www.coffee.uni-bonn.de




More information about the Geomoose-users mailing list