[Geomoose-users] Searching Issue

Jay Kapalczynski jkapalczynski at ci.maple-grove.mn.us
Wed Dec 31 16:50:14 EST 2008


I had this working at one point and then tried to add another search (owner).  Something got messed up so I am trying to start from the beginning.

I have two searches (PID, Building Number) the PID is NOT working while the Building Number is.  My problem is that the code seems to be the same to me...I cannot see the problem...
Maybe thinking that another pair of eyes can see the issue..

When I do a search for the Address is comes right up....when I do a search for the PID it takes for EVER to run and then returns a ton of results....it doesn't seem like it is looking at the PID number on the search.

Any thoughts

Thanks


THIS IS FROM THE MG_demo.xml

                                <service title="Search for PID" selectable="false" default="true" locked="true" div="PIDsearch">
                                                <url>/cgi-bin/mapserv.exe</url>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_PID.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <input type="hidden" name="layer" value="Parcels"/>
                                                <input type="user" name="id" title="Zoom to PID#:"/>
                                </service>

                                <service title="Search for Address" selectable="false" default="true" locked="true" div="ADDRESSsearch">
                                                <url>/cgi-bin/mapserv.exe</url>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_ADDRESS.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <input type="hidden" name="layer" value="parcel_points"/>
                                                <input type="user" name="id" title="Zoom to Address:"/>
                                </service>

                                <service title="Search" selectable="false" default="true" locked="true" type='multiform' icon="shared/images/toolbar/MapleGrove_Buttons/spam.jpg" highlight="shared/images/toolbar/MapleGrove_Buttons/spam.jpg">
                                                                                <subform title="Search for PID"/>
                                                                                <subform title="Search for Address"/>
                                </service>

THIS IS FROM MG_Demo.html

<div id="CustomForms">
                <div id="PIDsearch">
                    <br></br>
                                                <font color="black"><b>Search for PID:</b></font><br/>
                                                <input name="id"/><input type="submit" value="Search"/>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_PID.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <br><i>Enter PID number.<i/>
                                                <br></br>
                </div>
                <div id="ADDRESSsearch">
                                                <font color="black"><b>Search for Address:</b></font><br/>
                                                <input name="id"/><input type="submit" value="Search"/>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_ADDRESS.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <br><i>Enter ADDRESS number.<i/>
                </div>
</div>
<div id="WaitingMessage">
<b>Retrieving Information...</b>
</div>


THIS IS THE  itemquery_PID.map
  LAYER # Parcels Polygon Layer
                    NAME 'Parcels'
                    DATA 'parcels/parcels.shp'
                    STATUS DEFAULT
                    TYPE POLYGON
                    METADATA
                                qstring_validation_pattern '.'
                    END
                    TEMPLATE 'parcels/itemquery_parcels.html'
                    FILTERITEM 'PID'
                    FILTER /^%id%/
  END

THIS IS THE  itemquery_ADDRESS.map
  LAYER # Parcels Polygon Points Layer
                    NAME 'Parcel_Points'
                    DATA 'parcel_points/parcel_points.shp'
                    STATUS DEFAULT
                    TYPE POINT
                    METADATA
                                qstring_validation_pattern '.'
                    END
                    TEMPLATE 'parcel_points/itemquery_parcel_points.html'
                    FILTERITEM 'BLDG_NUM'
                    FILTER /^%id%/
  END


THIS IS THE itemquery_parcels.html
<tr>
<td>[PID]</td>
<td>[ADDRESS]</td>
<td><a href="javascript:Map.itemQueryLayer('Highlight', 'Parcels', 'PID', '[PID]', '/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); Map.zoomToViewString(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shpmaxy]+500))"><img src="shared/images/view.png" border="0" title="Click to Zoom Map to PID"></a></td>
</tr>

THIS IS THE itemquery_parcel_points.html
<tr>
<td>[PID_NO]</td>
<td>[BLDG_NUM]</td>
<td>[STREETNAME]</td>
<td><a href="javascript:Map.itemQueryLayer('Highlight', 'Parcel_Points', 'BLDG_NUM', '[BLDG_NUM]', '/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); Map.zoomToViewString(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shpmaxy]+500))"><img src="shared/images/view.png" border="0" title="Click to Zoom Map to PID"></a></td>
</tr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20081231/2ad39d6e/attachment.html


More information about the Geomoose-users mailing list