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

DescribeFeatureType reponse of deegree WFS causes ArcGIS online to fail #1044

Closed
tfr42 opened this issue Mar 4, 2020 · 4 comments · Fixed by #1068
Closed

DescribeFeatureType reponse of deegree WFS causes ArcGIS online to fail #1044

tfr42 opened this issue Mar 4, 2020 · 4 comments · Fixed by #1068
Labels
ready WFS deegree Web Feature Service

Comments

@tfr42
Copy link
Member

tfr42 commented Mar 4, 2020

The issues we've been having is that most of our services using deegree either do not open, or do not show any data when using ArcGIS online as a client. We don't get any useful error messages back unfortunately.
We think it's a DescribeFeatureType issue, so we've been doing some more research (with both QGIS and ArcGis Online) and what we've found out is that the configuration of DisableDynamicSchema is relevant. Either the returned schema is not valid or the clients can not process the response of the DescribeFeatureType request.
We're assuming is that the only way our services can work in ArcGIS online (and with a schema that validates), is if the response from a DescribeFeatureType request is a full schema coming directly from the file system or external resources.

@tfr42 tfr42 added the WFS deegree Web Feature Service label Mar 4, 2020
@tfr42
Copy link
Member Author

tfr42 commented Mar 18, 2020

Reproducer will be setup with deegree 3.4.12 + merged PR #1005

The issue may relates to #892 and #455

@tfr42
Copy link
Member Author

tfr42 commented Apr 7, 2020

Currently the deegree WFS returns for a DescribeFeatureType response the defined XSD using a W3C XSD include element. This include element provides support for schema modularity in which an XML schema can be partitioned into more than one physical file.

Some WFS clients such as ArcGIS Online currently does not support this element in the DescribeFeatureType response. XML schemas that include this element will be rejected by the server.

As a solution, XML schemas that include the <xsd:include> directive can be preprocessed to copy and merge the contents of any included schemas into a single schema for uploading to the server.

When one single XSD file is present in the workspace or referenced locally by the SQLFeatureStore configuration deegree shall return this XSD file directly.

@tfr42
Copy link
Member Author

tfr42 commented Apr 14, 2020

The proposed solution shall return a XSD file from deegree workspace as it is in the response of a DescribeFeatureType request.
As a prequisite a <SQLFeatureStore/> shall contain only one element of <GMLSchema/> pointing to a local file, e.g.:

<SQLFeatureStore configVersion="3.4.0" xmlns="http://www.deegree.org/datasource/feature/sql" xmlns:app="http://domain.com/path/to/xsd/Schema/Version" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.deegree.org/datasource/feature/sql
  http://schemas.deegree.org/datasource/feature/sql/3.4.0/sql.xsd">
   <JDBCConnId>testdata</JDBCConnId>
   <StorageCRS srid="4326" dim="2D">EPSG:4326</StorageCRS>
   <GMLSchema>../../appschemas/MySchemaFile.xsd</GMLSchema>
   <FeatureTypeMapping>
...
</SQLFeatureStore>

@tfr42 tfr42 closed this as completed Apr 14, 2020
@tfr42 tfr42 reopened this Apr 14, 2020
@tfr42
Copy link
Member Author

tfr42 commented May 29, 2020

A PR containing an enhanced XSD schema handling will be available soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready WFS deegree Web Feature Service
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant