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

Enhanced RemoteWMS Layer to use XSLT files for GetFeatureInfo requests #722

Merged
merged 10 commits into from
May 14, 2022

Conversation

dstenger
Copy link
Contributor

@dstenger dstenger commented Jul 5, 2016

Previously, when GetFeatureInfo was requested on a RemoteWMS Layer, a default parser for the returned XML of the remote service was used. As the returned XML often has different structures depending on the implementation of the remote service, the default parser already considers different structures (e.g. ESRI has its own structure) but it is, of course, limited to the in deegree implemented cases.

This pull request introduces the possibility to set a XSLT file in the RemoteWMS Layer which is used to configure the parser for the GFI response of the remote service. By that, deegree users can now configure the parser making it possible to use GFI responses of remote services which cannot be parsed by the default parser or control the structure of the GML.

The element

<XSLTFile targetGmlVersion="GML_2">name2gml.xslt</XSLTFile>

is used to activate a XSLT file for GetFeatureInfo requests to a remote layer.
The target GML version must also be configured.

Full configuration example of the new option:

  <Layer>
    <!-- Layer name of the original service -->
    <OriginalName>Name</OriginalName>
    <!-- deegree configuration identifier to be use e.g. in theme configuration file -->
    <Name>name</Name>
    <XSLTFile targetGmlVersion="GML_2">name2gml.xslt</XSLTFile>
  </Layer>

@dstenger dstenger added enhancement enhancement or improvement in progress labels Jul 5, 2016
@tfr42 tfr42 added this to the 3.4 milestone Jul 7, 2016
@tfr42 tfr42 modified the milestones: 3.4.1, 3.4 Aug 9, 2016
@tfr42 tfr42 modified the milestones: 3.4.1, 3.5 Jun 18, 2018
@tfr42 tfr42 added the schema change change to deegree configuration files label Jul 20, 2018
@tfr42 tfr42 added the WMS deegree Web Map Service label Feb 12, 2021
@Override
public FeatureCollection parseAsFeatureCollection( InputStream inputStream, String csvLayerNames )
throws XMLStreamException {
XMLStreamReader xmlReader = XML_FACTORY.createXMLStreamReader( inputStream );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tfr42 tfr42 added the ready label May 13, 2022
@tfr42 tfr42 merged commit d72a460 into deegree:main May 14, 2022
@lgoltz lgoltz deleted the transformationOfRemoteWmsGFIResponse-189 branch December 8, 2022 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement or improvement ready schema change change to deegree configuration files WMS deegree Web Map Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants