nemac / taccimo

TACCIMO’s OpenLayers GISViewer Prototype
1 stars 0 forks source link

Add Accordion Section for Support of Climate Wizard #10

Open geoderek opened 9 years ago

geoderek commented 9 years ago

This functionality currently the Flash version ( http://www.taccimogis.sgcp.ncsu.edu/TACCIMO/GIS/taccimo_gis.html )consist of 4 radio button groups and two drop-down boxes. The data themselves are served from http://www.climatewizard.org/

Per Jen it would be great to get the Layer Picker serving this data in the same way it is. However, it is more important to get the data in there in some way.

geoderek commented 9 years ago

According to the documentation on the climate wizard page the layers are served via ArcGIS image services. But, they do provide a map service what to get at the data per the following documentation http://www.climatewizard.org/translator/

Also to be research is that they are saying that they enabled WMS for these services at http://www.climatewizard.org/arcgis/rest/services/ClimateWizard on 10/13/14 If we can get it to work with WMS that is preferable.

geoderek commented 9 years ago

Here is the REST service endpoint: http://www.climatewizard.org:6080/ArcGIS/rest/services/ClimateWizard/US/ImageServer/

From here we can see that they have enabled WMS: http://www.climatewizard.org:6080/arcgis/services/ClimateWizard/US/ImageServer/WMSServer?request=GetCapabilities&service=WMS

We need to figure out how to utilize this WMS service to call the parameter options.

mwhutchi commented 9 years ago

Here's a link that shows examples of WMS GetMap requests for Mosaic datasets: http://resources.arcgis.com/en/help/main/10.1/index.html#/Communicating_with_a_WMS_service_in_a_web_browser/01540000048n000000/

Here's an example that has an "images" parameter for the image ID (but see that the LAYERS=0): http://server_name/arcgis/services/service_name/ImageServer/WMSServer?REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=0&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&BBOX=17.9995833333334,-161.000416666667,23.0004166666666,-153.999583333333&WIDTH=981&HEIGHT=826&images=1

geoderek commented 9 years ago

Something is up with their DNS but this is working for get capabilities: http://54.215.16.211:6080/ArcGIS/rest/services/ClimateWizard/US/ImageServer/

mwhutchi commented 9 years ago

It looks like the WMS GetMap for an Image Service must contain the OBJECTID for the raster and cannot make a request based on the product name.

But, using the Climate Wizard REST API query tool, I am able to get a list of the OBJECTIDs along with the product names. Here is an example: http://www.climatewizard.org/arcgis/rest/services/ClimateWizard/US/ImageServer/query?where=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=OBJECTID%2CName&returnGeometry=false&outSR=&returnIdsOnly=false&returnCountOnly=false&pixelSize=&f=pjson

mwhutchi commented 9 years ago

In order to be able to choose maps based on the 6 different Climate Wizard parameters, we found that we may need to be able to construct a string that contains all the possible parameters. The Climate Wizard has WMS enabled, but the layers are only accessible by providing their OBJECTIDs. The Names associated with each layer can be queried using the rest api. So, we have started a TEST wlayers (WMS Cascading) map file in order to access the layers by their parameter names.

The wlayers Map File contains layers that point to the Climate Wizard image OBJECTID for each layer:

LAYER NAME "m_cccma_cgcm3_1.1_a2_tmean_2_2070_2099" TYPE RASTER STATUS OFF CONNECTION "http://54.215.16.211:6080/arcgis/services/ClimateWizard/US/ImageServer/WMSServer?" CONNECTIONTYPE WMS PROJECTION "init=epsg:4326" END METADATA "wms_srs" "EPSG:4326" "wms_name" "0&images=6344" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_bgcolor" "0x000000" END END

Here is the WMS GetCapabilities: http://dev.nemac.org/~mwhutchi/fswms/html/wlayers?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0

And here is an example GetMap request for one of the layers: http://dev.nemac.org/~mwhutchi/fswms/html/wlayers?REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&LAYERS=m_cccma_cgcm3_1.1_a2_tmean_2_2070_2099&CRS=EPSG:4326&BBOX=24.925582,-124.770831,49.416869,-66.895826&WIDTH=981&HEIGHT=826

For our TEST wlayers, the Climate Wizard layers contain the following possible parameters:

Map Option = Average [m] | Change [c] Ensemble = BCCR [bccr_bcm2_0.1] | CGCM [ccma_cgcm3_1.1] Scenario = High [a2] | Medium [a1b] Variable = Temperature [tmean] | Precipitation [pptPct] Time of Year = January [1] | February [2] Time Period = Mid-Centruy [2040_2069] | End-Century [2070_2099]

The layer NAME string contains each of these parameters separated by underscores, such as:

m_cccma_cgcm3_1.1_a2_tmean_2_2070_2099

mwhutchi commented 9 years ago

Here is a complete list of all the TEST layers that are available in the wlayers (64 in total):

m_bccr_bcm2_0.1_a2_tmean_1_2040_2069 c_bccr_bcm2_0.1_a2_tmean_1_2040_2069 m_cccma_cgcm3_1.1_a2_tmean_1_2040_2069 c_cccma_cgcm3_1.1_a2_tmean_1_2040_2069 m_bccr_bcm2_0.1_a1b_tmean_1_2040_2069 c_bccr_bcm2_0.1_a1b_tmean_1_2040_2069 m_cccma_cgcm3_1.1_a1b_tmean_1_2040_2069 c_cccma_cgcm3_1.1_a1b_tmean_1_2040_2069 m_bccr_bcm2_0.1_a2_pptPct_1_2040_2069 c_bccr_bcm2_0.1_a2_pptPct_1_2040_2069 m_cccma_cgcm3_1.1_a2_pptPct_1_2040_2069 c_cccma_cgcm3_1.1_a2_pptPct_1_2040_2069 m_bccr_bcm2_0.1_a1b_pptPct_1_2040_2069 c_bccr_bcm2_0.1_a1b_pptPct_1_2040_2069 m_cccma_cgcm3_1.1_a1b_pptPct_1_2040_2069 c_cccma_cgcm3_1.1_a1b_pptPct_1_2040_2069 m_bccr_bcm2_0.1_a2_tmean_2_2040_2069 c_bccr_bcm2_0.1_a2_tmean_2_2040_2069 m_cccma_cgcm3_1.1_a2_tmean_2_2040_2069 c_cccma_cgcm3_1.1_a2_tmean_2_2040_2069 m_bccr_bcm2_0.1_a1b_tmean_2_2040_2069 c_bccr_bcm2_0.1_a1b_tmean_2_2040_2069 m_cccma_cgcm3_1.1_a1b_tmean_2_2040_2069 c_cccma_cgcm3_1.1_a1b_tmean_2_2040_2069 m_bccr_bcm2_0.1_a2_pptPct_2_2040_2069 c_bccr_bcm2_0.1_a2_pptPct_2_2040_2069 m_cccma_cgcm3_1.1_a2_pptPct_2_2040_2069 c_cccma_cgcm3_1.1_a2_pptPct_2_2040_2069 m_bccr_bcm2_0.1_a1b_pptPct_2_2040_2069 c_bccr_bcm2_0.1_a1b_pptPct_2_2040_2069 m_cccma_cgcm3_1.1_a1b_pptPct_2_2040_2069 c_cccma_cgcm3_1.1_a1b_pptPct_2_2040_2069 m_bccr_bcm2_0.1_a2_tmean_1_2070_2099 c_bccr_bcm2_0.1_a2_tmean_1_2070_2099 m_cccma_cgcm3_1.1_a2_tmean_1_2070_2099 c_cccma_cgcm3_1.1_a2_tmean_1_2070_2099 m_bccr_bcm2_0.1_a1b_tmean_1_2070_2099 c_bccr_bcm2_0.1_a1b_tmean_1_2070_2099 m_cccma_cgcm3_1.1_a1b_tmean_1_2070_2099 c_cccma_cgcm3_1.1_a1b_tmean_1_2070_2099 m_bccr_bcm2_0.1_a2_pptPct_1_2070_2099 c_bccr_bcm2_0.1_a2_pptPct_1_2070_2099 m_cccma_cgcm3_1.1_a2_pptPct_1_2070_2099 c_cccma_cgcm3_1.1_a2_pptPct_1_2070_2099 m_bccr_bcm2_0.1_a1b_pptPct_1_2070_2099 c_bccr_bcm2_0.1_a1b_pptPct_1_2070_2099 m_cccma_cgcm3_1.1_a1b_pptPct_1_2070_2099 c_cccma_cgcm3_1.1_a1b_pptPct_1_2070_2099 m_bccr_bcm2_0.1_a2_tmean_2_2070_2099 c_bccr_bcm2_0.1_a2_tmean_2_2070_2099 m_cccma_cgcm3_1.1_a2_tmean_2_2070_2099 c_cccma_cgcm3_1.1_a2_tmean_2_2070_2099 m_bccr_bcm2_0.1_a1b_tmean_2_2070_2099 c_bccr_bcm2_0.1_a1b_tmean_2_2070_2099 m_cccma_cgcm3_1.1_a1b_tmean_2_2070_2099 c_cccma_cgcm3_1.1_a1b_tmean_2_2070_2099 m_bccr_bcm2_0.1_a2_pptPct_2_2070_2099 c_bccr_bcm2_0.1_a2_pptPct_2_2070_2099 m_cccma_cgcm3_1.1_a2_pptPct_2_2070_2099 c_cccma_cgcm3_1.1_a2_pptPct_2_2070_2099 m_bccr_bcm2_0.1_a1b_pptPct_2_2070_2099 c_bccr_bcm2_0.1_a1b_pptPct_2_2070_2099 m_cccma_cgcm3_1.1_a1b_pptPct_2_2070_2099 c_cccma_cgcm3_1.1_a1b_pptPct_2_2070_2099