Changes between Version 13 and Version 14 of WMSGuide


Ignore:
Timestamp:
Aug 28, 2017 8:18:30 AM (4 weeks ago)
Author:
bphamhuu
Comment:

Add WCPS query fragment

Legend:

Unmodified
Added
Removed
Modified
  • WMSGuide

    v13 v14  
    4040Styles can be created for layers using rasql query fragments. This allows users to define several visualization options for the same dataset in a flexible way. Examples of such options would be color classification, NDVI detection etc. The following HTTP request will create a style with the name, abstract and layer provided in the KVP parameters below
    4141
     42* WCPS query fragment ('''version 9.5'''):
     43
     44{{{
     45http://localhot:8080/rasdaman/ows?
     46service=WMS&
     47version=1.3.0&
     48request=InsertStyle&
     49name=wcpsQueryFragment&
     50layer=test_wms_4326&
     51abstract=This style marks the areas where fires are in progress with the color red&
     52wcpsQueryFragment=switch case $c > 1000 return {red: 107; green:17; blue:68} default return {red: 150; green:103; blue:14})
     53}}}
     54You can add a WCPS fragment (coverage expression inside encode() operator) from a working WCPS query to make a WMS style for a layer. The variable $c will be replaced by a layer name when sending a GetMap request containing this layer's style.
     55
     56* Rasql transform fragment ('''deprecated'''):
     57
    4258{{{
    4359http://example.org/rasdaman/ows?service=WMS&version=1.3.0&request=InsertStyle