[Geomoose-users] [Geomoose-developers] Buffer Problems

Dan Little danlittle at yahoo.com
Fri May 22 10:52:36 EDT 2009


If you're getting that error, I doubt it is a problem with the Javascript.

Remove the "FILTER" lines in select.map, those are for an item query and causing you to have a no-match situation.



________________________________
From: Jay Kapalczynski <jkapalczynski at ci.maple-grove.mn.us>
To: Nelson Soto <NSoto at plotplans.com>; "geomoose-users at lists.sourceforge.net" <geomoose-users at lists.sourceforge.net>; "geomoose-developers at lists.sourceforge.net" <geomoose-developers at lists.sourceforge.net>
Sent: Friday, May 22, 2009 9:45:03 AM
Subject: Re: [Geomoose-users] [Geomoose-developers] Buffer Problems


I don’t think that it can
be the 1.6 version as I have been using that for some time…with select/buffer
success…although it very well might be
I cant think of anything else
that I changed…as I said I haven’t worked on this in a few months…the
last I know it has been working
That and I haven’t done
anything with the Select tools…
 
As a simple test I created a new
Select…Still not working…
Is there some code that I am
missing to set up a new select?  I think this is all that has to be
written for the select to work
 
Could one of the .js files be
corrupt?

Thanks
 
Maplegrove_demo.xml
<service
title="Select Feature Poly" default="true"
locked="true" cursor="url(cursors/select.cur), auto"
shape="measurearea" type="inspect-search"
icon="shared/images/toolbar/MapleGrove_Buttons/Select.jpg" highlight="shared/images/toolbar/MapleGrove_Buttons/Select.jpg">
                <url>php/select.php</url>
                <input
type="multipoint" name="coords"/>
                <input
type="hidden" name="shape" value="poly"/>
                <input
type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map"/>
                <input
type="hidden" name="select"
value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map"/>    
                <input
type="select" name="layer" title="Layer to
Select:">
                                <option
value="Parcels:PID">Parcels</option>
                                <option
value="Plats:PLAT_ID">Plats</option>
                                <option
value="Parcel_Points:PID_NO">Parcel Points</option>
                </input>
                <input
type="hidden" name="output" value="html"/>
</service>
 
Select.map file
LAYER # Parcels
Polygon Layer
                    NAME
'Parcels'
                   
DATA 'parcels/parcels.shp'
                   
STATUS ON
                   
TYPE POLYGON                   
    FILTERITEM 'PID'
                   
FILTER /^%id%/
                                
                   
METADATA
                   
            qstring_validation_pattern
'.'
                    
END
                   
HEADER 'parcels/select_header.html'
                   
TEMPLATE 'parcels/select_parcel.html'
                   
FOOTER 'parcels/select_footer.html'
                   
TOLERANCE 0
   
                            CLASS
   
                            SYMBOL
'plainline'
   
                            SIZE
3
   
                            COLOR
-1 -1 -1
   
                            OUTLINECOLOR
255 255 0
   
                            END
  END
 
Select_parcel.html file
<tr>
<td><b>PID:</b></td>
<td>[PID]</td>
</tr>
 
<tr>
<td
colspan="2"><hr/></td>
</tr>
 
 
 
 
From:Nelson Soto
[mailto:NSoto at plotplans.com] 
Sent: Friday, May 22, 2009 9:15 AM
To: Jay Kapalczynski; geomoose-users at lists.sourceforge.net;
geomoose-developers at lists.sourceforge.net
Subject: RE: [Geomoose-developers] Buffer Problems
 
There are intermittent issues with GM 1.6 is you are using that. I
don’t know if they would be related to this, but I’d highly
recommend porting your work to GM 2 and give that a shot.
 

________________________________
 
From:Jay Kapalczynski
[mailto:jkapalczynski at ci.maple-grove.mn.us] 
Sent: Friday, May 22, 2009 10:10 AM
To: geomoose-users at lists.sourceforge.net;
geomoose-developers at lists.sourceforge.net
Subject: [Geomoose-developers] Buffer Problems
 
I have had this app running for some time now.  I
haven’t touched anything in a few months.
I went back in and tried to do a buffer by line and am
getting errors…I tried this on the other select buttons and the same
error.
 
Nothing changed in my:
·         Maple Grove_demo.xml
·         Select.map 
·         Buffer_select.map
 
Why all of a sudden does the query not find the parcels?
 
Any thoughts?
 
 
FIREFOX:
<br
/>
<b>Warning</b>: 
[MapServer Error]: msQueryByShape(): No matching record(s) found.
 in
<b>C:\ms4w\apps\GeoMOOSE\htdocs\php\buffer_select.php</b> on line
<b>139</b><br />
<html><head><title>Mailing
Label Service Error</title></head><body><h3>Service
Message</h3><b style='color
:red'>Query
Failed to return any results!</b></body></html>
 
 
LINE 139:
#
Perform the Query.
$queryResultCheck = $queryMap->queryByShape($shape);
if($queryResultCheck
== MS_FAILURE)
{                           
# If the query fails, error out.
               
# Check to see if the Map has any pointers to an empty file
               
$empty = $queryMap->web->empty;
               
# If it's set then show that HTML instead. :D
               
if(isset($empty) and $empty != '') {
                               
readfile($empty);
                               
exit(0);
               
} else {
                               
appError('Query Failed to return any results!');
               
}
}


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20090522/e0336ec1/attachment.html


More information about the Geomoose-users mailing list