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

Missing <annotation> for GML ReferenceType #12

Open
yaozhihang opened this issue Sep 30, 2020 · 3 comments
Open

Missing <annotation> for GML ReferenceType #12

yaozhihang opened this issue Sep 30, 2020 · 3 comments

Comments

@yaozhihang
Copy link

The property connectedCityObject of the class AbstractNetworkFeature has a type of gml:ReferenceType
https://github.com/TatjanaKutzner/CityGML-UtilityNetwork-ADE/blob/master/XSD/CityGML_UtilityNetworkADE.xsd#L119
An annotation element is usually required here which allows applications to know what is the target element. For example:

<element minOccurs="0" name="connectedCityObject" type="gml:ReferenceType">
  <annotation>
    <appinfo>
      <gml:targetElement>core:_CityObject</gml:targetElement>
    </appinfo>
  </annotation>
</element>

Could be a bug in ShapeChange? Or something is missing the shapechange configuration file?

@TatjanaKutzner
Copy link
Owner

The element gml:targetElement is part of the GML 3.2 encoding rule. It does not exist in GML 3.1.1. Since the ADE is based on CityGML 2.0, which in turn uses GML 3.1.1., ShapeChange behaves correctly in not adding this element.

The GML 3.1.1. standard, however, defines the following encoding for specifying the target element:

<element name="owner" type="gml:ReferenceType" minOccurs=”0”>
  <annotation>
    <appinfo source=”urn:x-gml:targetElement”>_CityObject</appinfo>
  </annotation>
</element>

This kind of annotation does not seem to be supported by ShapeChange.

@yaozhihang
Copy link
Author

Thanks, you are right. It seems that adding gml:targetElement to CityGML 2.0 ADE is not a correct and valid way.
So, maybe the EnergyADE (http://www.citygmlwiki.org/images/a/ac/EnergyADE.xsd) XML schema shall be fixed accordingly.

@TatjanaKutzner
Copy link
Owner

I posted an issue in the Energy ADE repository to find out why the made use of the element: https://git.rwth-aachen.de/energyade/citygml-energy/-/issues/173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants