-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Recognization of FeatureCollections in deegree #1752
Comments
At first glance, I can see that it will be difficult to implement a general solution in the core that comes without side effects. References:
|
…ze-deprecated-types to disable recognition of deprecated feature collections
…ize-deprecated-types to enable recognition of deprecated feature collections
…ize-deprecated-types
Background
deegree GML tools CLI is used to generate configuration from an INSPIRE schema. However, the generated configuration is empty. We analyzed this and the result was that some FeatureTypes are recognized as FeatureCollections. There is no configuration written for FeatureCollections.
The problem occurred with INSPIRE schema Geophysics and FeatureTypes
ge_gp:GeophProfile
andge_gp:Campaign
.What does the GML specification say?
The specification says: "A GML feature collection is any GML feature with a property element in its content model whose content model is derived by extension from gml:AbstractFeatureMemberType (see 9.9.2)"
How does deegree behave?
FeatureTypes are considered as FeatureCollection in method isGML32FeatureCollection() if they have a property which is either derived from "AbstractFeatureMemberType" or "FeaturePropertyType".
There is also following comment in the code:
How is this use case (INSPIRE) handled by deegree?
The INSPIRE schema has properties which are derived from "gml:FeaturePropertyType" and, thus, those FeatureTypes are considered as FeatureCollections by deegree.
In this case, the property "sam:sampledFeature" defined by https://schemas.opengis.net/sampling/2.0/samplingFeature.xsd causes the problem as it is of type "gml:FeaturePropertyType":
Why is deegree behaving like this?
The "AbstractFeatureCollectionType" is defined in https://schemas.opengis.net/gml/3.2.1/deprecatedTypes.xsd and includes a sequence of elements of type "FeaturePropertyType" (element featureMember):
So, the deprecatedTypes schema gives a hint why deegree behaves like this.
What are possible solutions?
The text was updated successfully, but these errors were encountered: