[Geomoose-users] Address search Redux
Nelson Soto
NSoto at plotplans.com
Tue Nov 4 11:25:40 EST 2008
Use firebug and Firefox or IE7 and developer toolbar to verify that you
are even passing the values to the service. You don't seem to specify
any id's to your inputs and nothing here seems to suggest you have
configured the service definition either. I think if you are going to
configure your inputs you should do so in the service as well so when
you post the data the service is looking for everything you are sending.
________________________________
From: Blaine Hackett [mailto:blaine at gisrangers.com]
Sent: Tuesday, November 04, 2008 11:12 AM
To: geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] Address search Redux
Sorry for the repost but I had not heard anything and I can't seem to
figure this out. It is pretty important to be able to search an address
and searching with a number and allowing the user to pick the road name
I think is the best way to go.
If someone could just point me in the right direction I can take it from
there. As always, any help is greatly appreciated.
Blaine
SEE ORIGINAL TEXT BELOW
I need to create and address search for GeoMoose. I have done this
before with regular mapserver but can't get it to work with GeoMoose and
I thought someone might have an idea what I am doing wrong.
Essentially I am using an input field for the address number and a
dropdown for the street name. Once the user submits this the two are
concatenated and it searches the field with the address.
I have tried it two ways. Neither works but I get different results.
The first way was to use the same syntax I have used before and just add
it to the appropriate geomoose files.
Here is the syntax for the first way which breaks and tells me it can't
find the querylayer:
----
theproject.html file:
<div id="addsearch">
<font color="black"><b>Search for Parcels by Address:</b></font><br/>
Input House Number: <input type="text" name="number"/><br>
Select Street: <select name="street"/>
<option value="NASHUA AVE NE" [NASHUA AVE NE_select]> NASHUA AVE
</select>
<INPUT TYPE="submit" value="Search"><br>
<input type="hidden" name="map"
value="/ms4w/apps/GeoMOOSE/maps_otsego/itemquery.map"/>
<input type="hidden" name="mode" value="nquery">
</div>
---
itemquery.map
LAYER # Parcels Polygon Layer
NAME 'ParcelAddressSearch'
DATA 'landrecords/parcels.shp'
STATUS DEFAULT
TYPE POLYGON
TEMPLATE 'landrecords/itemquery_address.html'
FILTERITEM 'TPADDR1'
FILTER "%number% %street%"
END
Here is the second way which says it is retrieving but just locks up the
browser.
----
xxx.html file:
<div id="addsearch">
<font color="black"><b>Search for Parcels by Address:</b></font><br/>
Input House Number: <input type="text" name="number"/><br>
Select Street: <select name="street"/>
<option value="NASHUA AVE NE" [NASHUA AVE NE_select]> NASHUA AVE
</select>
<INPUT TYPE="submit" value="Search"><br>
<input type="hidden" name="map"
value="/ms4w/apps/GeoMOOSE/maps_otsego/itemquery.map"/>
<input type="hidden" name="mode" value="itemquery">
<input type="hidden" name="qlayer" value="ParcelAddressSearch">
</div>
---
itemquery.map
LAYER # Parcels Polygon Layer
NAME 'ParcelAddressSearch'
DATA 'landrecords/parcels.shp'
STATUS DEFAULT
TYPE POLYGON
TEMPLATE 'landrecords/itemquery_address.html'
FILTERITEM 'TPADDR1'
FILTER "%number% %street%"
END
Thanks for any help you can give me
Blaine
****************************
Blaine Hackett
President, GIS RANGERS
651 303-8490
blaine at gisrangers.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20081104/b7318be2/attachment.html
More information about the Geomoose-users
mailing list