MassGIS / morisoliver

Automatically exported from code.google.com/p/morisoliver
2 stars 2 forks source link

Open OLIVER to a particular layer's column's value #224

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We had a request to open OLIVER to a particular parcel based on it's id.  In 
that case, we'd need to query to get the bounding box of the parcel, then zoom 
to it. 

This would be similar to passing an address in on the initial OLIVER URL (Issue 
186) - in that case there was a geocode, then a zoom.  The user would be 
constructing these URLs probably based on a spreadsheet or program.  This is 
not a Permalink, Permalink functionality would not change.

There are 3 pieces of info: layer name, column (attribute) name and value.

I would suggest suggest something like:

&qrylayer=massgis:GISDATA.TOWNS_POLYM&qrycol=TOWN&qryval='MALDEN'

so

http://maps.massgis.state.ma.us/map_ol/oliver.php&qrylayer=massgis:GISDATA.COUNT
IES_POLYM&qrycol=FIPS_ID&qryval=25019

would open zoomed in on the county with that ID (happens to be Nantucket 
County).

http://maps.massgis.state.ma.us/map_ol/oliver.php&qrylayer=massgis:GISDATA.LIGHT
HOUSES_PT&qrycol=NAME&qryval='Chatham Light' 

would open zoomed in on the Chatham Light lighthouse.

http://maps.massgis.state.ma.us/map_ol/oliver.php&qrylayer=massgis:GISDATA.L3_TA
XPAR_POLY_ASSESS&qrycol=LOC_ID&qryval='F_1079864_2711454' 

would open zoomed in on the that parcel (happens to be 20 Shore Road Chatham).

If more than one feature returns from the query, the combined bounding box 
should be used.  If a point is returned, the bounding box should back out 
(similar to geocoding distance).  

Original issue reported on code.google.com by Aleda.Fr...@state.ma.us on 5 Aug 2013 at 5:02

MassGIS commented 8 years ago

We did this with CSC, but they had to work through some math. This method would be easier and flexible for different datalayers (if we could get it to work)

MassGIS commented 8 years ago

Aleda 11/12/2015 - this will be tricky but represents major new functionality that is flexible enough to apply to all layers. Would like to discuss possible options.