Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwrite legend graphics for RemoteWMS layers #1393

Closed
lgoltz opened this issue Sep 21, 2022 · 1 comment · Fixed by #1479
Closed

Overwrite legend graphics for RemoteWMS layers #1393

lgoltz opened this issue Sep 21, 2022 · 1 comment · Fixed by #1479
Labels
enhancement enhancement or improvement schema change change to deegree configuration files

Comments

@lgoltz
Copy link
Contributor

lgoltz commented Sep 21, 2022

If a legend graphic from the RemoteWMS is unusable the legend graphic for the RemoteWMS layer should be configurable in the deegree workspace configuration.

Example:

A RemoteWMS provides the layer vegetation with the styles colorful and blackwhite.
In the configuration of the RemoteWMS layer the legend graphics of the styles can be overwritten:

Enhancement RemoteWMSLayers configuration (proposal):

<?xml version="1.0" encoding="UTF-8"?>
<RemoteWMSLayers xmlns="http://www.deegree.org/layers/remotewms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.deegree.org/layers/remotewms http://schemas.deegree.org/layers/remotewms/3.4.0/remotewms.xsd" configVersion="3.4.0">
  
  <RemoteWMSId>vegetation_wms</RemoteWMSId>
   
  <Layer>
    <OriginalName>vegetation</OriginalName>
    <Name>vegetation</Name>
    <Style>
      <OriginalName>colorful</OriginalName> <!-- original name of the style -->
      <LegendGraphic>vegetation_legendGraphic.png</LegendGraphic> <!-- reference to the legend graphic as local file -->
    <Style>
    <Style>
      <OriginalName>blackwhite</OriginalName> <!-- original name of the style -->
      <LegendGraphic>https://example.de/vegetation_legendGraphic.png</LegendGraphic> <!-- reference to the legend graphic as remote URL -->
    <Style>
  </Layer>

</RemoteWMSLayers>

Hints

  • The legend graphic can be referenced as local file, or remote URL.
  • It is not possible to create new (pseudo) styles.
@tfr42 tfr42 added enhancement enhancement or improvement schema change change to deegree configuration files labels Oct 19, 2022
lgoltz added a commit to lat-lon/deegree3 that referenced this issue Oct 31, 2022
lgoltz added a commit to lat-lon/deegree3 that referenced this issue Oct 31, 2022
lgoltz added a commit to lat-lon/deegree3 that referenced this issue Nov 2, 2022
@tfr42
Copy link
Member

tfr42 commented Nov 2, 2022

The TMC members have seen the config example and consider this extension as reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement or improvement schema change change to deegree configuration files
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants