[Geoserver-devel] [JIRA] (GEOS-9814) Support decorations with multiple layers and legend styling in WPS downloads

Jose Macchi created an issue

GeoServer / ImprovementGEOS-9814

Support decorations with multiple layers and legend styling in WPS downloads

Issue Type:

ImprovementImprovement

Assignee:

Unassigned

Attachments:

99308331-951d4300-2836-11eb-8860-b799d3f09085.png

Components:

WPS

Created:

01/Dec/20 2:23 PM

Priority:

MediumMedium

Reporter:

Jose Macchi

This ticket involves improvements on decorations and legend styling on WPS downloads, in a way that:

  1. allow to style the background color, opacity and other styling attributed for a LegendDecorator,
  2. allow to add multiple legend decorations based on layers that are requested in the WPS payload.

As an example of use, a request with this payload

<wps:Execute version="1.0.0" service="WPS"
   (...)
    <wps:Input>
      <ows:Identifier>layer</ows:Identifier>
      <wps:Data>
        <wps:ComplexData xmlns:dwn="http://geoserver.org/wps/download">
          <dwn:Layer>
            <dwn:Name>tiger:tiger_roads,</dwn:Name>
            <dwn:DecoratorName>layout1</dwn:Name>
          </dwn:Layer>
        </wps:ComplexData>
      </wps:Data>
    </wps:Input>
    (...)
    <wps:Input>
      <ows:Identifier>layer</ows:Identifier>
      <wps:Data>
        <wps:ComplexData xmlns:dwn="http://geoserver.org/wps/download">
          <dwn:Layer>
            <dwn:Name>tiger:poly_landmarks</dwn:Name>
            <dwn:DecoratorName>layout2</dwn:Name>
          </dwn:Layer>
        </wps:ComplexData>
      </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  (...)

with these layouts definitions (layout1 and layout2)

<layout>
	<decoration type="layout_roads" affinity="top,right" offset="6,6" size="auto">
               <option name="legend_options" value="bgColor:0xFFFFEE;"" />
        </decoration>
</layout>

and

<layout>
	<decoration type="layout_lands" affinity="top,left" offset="6,6" size="auto">
               <option name="legend_options" value="bgColor:0xFFFFEE;"" />
        </decoration>
</layout>

would result in attached image.

Also it’s possible to set a header area at top of result on which legends can be placed (using a new optional Input for the WPS gs:downloadMap process)

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100152-sha1:66422ce)

Atlassian logo