[Geomoose-users] No Results Returned in Itemquery

Dave Misun dmisun at kapur-assoc.com
Tue Mar 16 16:05:51 EDT 2010


Brent,

Thanks for the tip, but I'm lost -- I'm assuming that the query is failing at the routine shown below, since there are no values being returned. It probably is a comparison error (due to format, would be my guess) since I'm inputting a TAXKEY value that I know exists in the parcel shapefile. I'm not a PHP person, but know that the echo command for a variable is echo $variable;. However, when I place an echo command it either doesn't return a message or it gives me an error of the kind "Parse error: syntax error, unexpected T_ECHO, expecting T_FUNCTION in C:\ms4w\apps\geomoose2\htdocs\php\query.php on line 136"

I'm lost and in over my head...

Dave Misun

class Predicate {
	protected $self = array();
	
	/*
	 * field_name = Field Name to search
	 * value = value to test against
	 * operator = operator class
	 * comparitor = comparitor class
	 * blank_okay (boolean) = set whether or not a blank value should be evaluated
	 */

	public function __construct($layer, $field_name, $value, $operator, $comparitor, $blank_okay = true) {
		$this->self['layer'] = $layer;
		$this->self['fname'] = $field_name;
		$this->self['val'] = $value;
		$this->self['op'] = $operator;
		$this->self['comp'] = $comparitor;
		$this->self['blank'] = $blank_okay;
	}

	public function getLayer() {
		return $this->self['layer']; 



-----Original Message-----
From: Brent Fraser [mailto:bfraser at geoanalytic.com] 
Sent: Tuesday, March 16, 2010 10:35 AM
To: Dave Misun
Cc: geomoose-users at lists.sourceforge.net
Subject: Re: [Geomoose-users] No Results Returned in Itemquery

Dave,

   You may want to put some print/echo statements in query.php to make sure things (layer names, attrbute names, etc) are configured as expected.

Brent Fraser


Dave Misun wrote:
> Hello GM Users,
> 
> I'm trying to deploy a search function that will find a parcel by taxkey. I search on a particular taxkey number verbatim (copy & paste), but no items are returened. The error message and my application parameters are shown below.
> 
> Any suggestions are greatly appreciated.
> 
> Dave Misun
> 
> Error Message:
> Warning: [MapServer Error]:
> msQueryByRect(): No matching record(s) found. in 
> C:\ms4w\apps\geomoose2\htdocs\php\query.php
> on line 321 GeoMOOSE Item Query Service
> 
> No results found for your query!
> ----------------------------------------------------------------------
> ----------------------------
> Settings.ini:
> [itemquery]
> itemquery_header=itemquery/header.html
> itemquery_footer=itemquery/footer.html
> itemquery_miss=itemquery/miss.html
> 
> ----------------------------------------------------------------------
> ----------------------------
> 
> Mapbook.xml:
> <service name="search_parcels">
>         <url>php/query.php</url>
>         <step type="input">
>                 <input type="select" name="fieldname0" title="Search By:">
>                         <option value="TAXKEY">TAXKEY</option>
>                 </input>
>                 <input type="hidden" name="comparitor0" value="like-icase"/>
>                 <input type="user" name="value0" title=""/>
>                 <input type="hidden" name="layer0" value="bloomfield/bloomfield_parcels"/>
>                 <input type="hidden" name="template0" 
> value="itemquery"/>
> 				
> 				<input type="hidden" name="zoom_to_first" value="true"/>
>                 <input type="hidden" name="highlight" value="true"/>
>                 <input type="hidden" name="mode" value="search"/>
>         </step>
> 	</service>
> ----------------------------------------------------------------------
> ----------------------------
> 
> Mapfile:
> METADATA
> 	'identify_record'	  		'identify_bloomfield_parcels.html'
> 	'itemquery'			'search_bloomfield_parcels.html'
> END
> ----------------------------------------------------------------------
> -------- Download Intel&#174; Parallel Studio Eval Try the new 
> software tools for yourself. Speed compiling, find bugs proactively, 
> and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users
> 





More information about the Geomoose-users mailing list