Changes between Version 14 and Version 15 of WMSGuide


Ignore:
Timestamp:
Aug 28, 2017 8:29:40 AM (3 weeks ago)
Author:
bphamhuu
Comment:

add note for creating WMS query style correctly in Tomcat (character { } without encoding is not valid standard)

Legend:

Unmodified
Added
Removed
Modified
  • WMSGuide

    v14 v15  
    3939
    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
     41
     42'''NOTE''': for Tomcat version 7+ it requires the query (WCPS fragment, Rasql fragment) to be encoded correctly. Please use this website http://meyerweb.com/eric/tools/dencoder/ to encode your query first:
     43
     44e.g:
     45
     46{{{
     47switch case $c > 1000 return {red: 107; green:17; blue:68} default return {red: 150; green:103; blue:14})
     48}}}
     49
     50is translated to
     51
     52{{{
     53switch%20case%20%24c%20%3E%201000%20return%20%7Bred%3A%20107%3B%20green%3A17%3B%20blue%3A68%7D%20default%20return%20%7Bred%3A%20150%3B%20green%3A103%3B%20blue%3A14%7D)
     54}}}
     55
    4156
    4257* WCPS query fragment ('''version 9.5'''):