MassGIS / morisoliver

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

Allow OLIVER to pick layer/style combo from external WMS #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This would change the current method of using the local copy of the 
GetCapabilities document, we'd need to do something more like the folderset 
listing.... But it would be useful for example to go to MHC and get labels 
(they can't add labels to their default style). 

Original issue reported on code.google.com by Aleda.Fr...@state.ma.us on 17 Jul 2012 at 6:57

GoogleCodeExporter commented 9 years ago
To demonstrate the styles problem: 

1.  Open this OLIVER Permalink which will zoom to download Boston: 
http://maps.massgis.state.ma.us/map_ol/oliver.php?lyrs=Ocean~massgis:GISDATA.OCE
ANMASK_POLY_MASURVEYCOAST~GISDATA.OCEANMASK_POLY_MASURVEYCOAST::Default|States%2
0Bordering%20MA%20plus%20ME~massgis:GISDATA.NEMASK_POLY_MASURVEY~GISDATA.NEMASK_
POLY_MASURVEY::Default|Massachusetts%20Towns%20Survey%20Boundaries%20Muted%20Col
ors~massgis:GISDATA.TOWNSSURVEY_ARC~GISDATA.TOWNSSURVEY_ARC::Muted|Major%20MassD
OT%20Routes~massgis:GISDATA.EOTMAJROADS_RTE_MAJOR~GISDATA.EOTMAJROADS_RTE_MAJOR:
:Lighter|Massachusetts%20Towns%20Black%20Labels~massgis:GISDATA.TOWNS_POLY~GISDA
TA.TOWNS_POLY::Labels&bbox=-71.09573263379251,42.345216546900794,-71.02822026821
74,42.37317327050205&coordUnit=m&measureUnit=m&base=custom¢er=236083.87120629,9
01059.34375311&zoom=8.415118806210378&opacity=1,1,1,1,1&baseO=1&filt=undefined|u
ndefined|undefined|undefined|undefined 

2.  Click the “add datalayers from external sources” button in the upper 
right hand corner.  

3.  Choose “MHC Historic Inventory” 

4.  Choose “Inventory Point Designations”

Colored points are drawn on the map.  We do have a legend for the points which 
tells us the type of point but we don’t have labels.  So we do not know which 
particular buildings the points represent.  (Is it Fanueil Hall?  The State 
House?  Who knows?).  MassGIS has discussed with MHC adding labels to their 
default style that that is not possible for them because they have a client 
(which they do not have the staff to modify) that also adds labels.  MassGIS 
has given them an additional style they are hosting that draws both points and 
lables.  OLIVER just needs the ability to request a specify style.  

The current request to draw the buildings is:

http://mhc-macris.net:8080/geoserver/ows?LAYERS=MHC%3Ain_pts&TRANSPARENT=TRUE&ST
YLES=&STYLE=&FOO=Inventory%20Point%20Designations&VERSION=1.1.1&SERVICE=WMS&REQU
EST=GetMap&FORMAT=image%2Fpng&SRS=EPSG%3A26986&BBOX=235361.27891089,901319.69065
611,237429.34677557,902057.28018555&WIDTH=2422&HEIGHT=864

The GetCapabilities document for the MHC data is stored locally on the maps 
server: http://maps.massgis.state.ma.us/map_ol/mhc_getcaps.xml Currently it 
does not list styles.  In talking with MHC we can find out which styles are 
available.  There is a GetStyles request that should work with them but there 
is an error.  

This concept of alternate styles may not apply to ArcGIS Server-backed WMS? We 
should utilize the GEOSERVER keyword in the GetCapabilities response to apply 
styles to this case. 

Original comment by Aleda.Fr...@state.ma.us on 17 Dec 2012 at 8:00

GoogleCodeExporter commented 9 years ago

Original comment by Aleda.Fr...@state.ma.us on 4 Sep 2013 at 4:40

MassGIS commented 9 years ago

Aleda 11/12/2015 - This is difficult and not much demand, changing priority to Low