jklimke / libcitygml

C++ Library for CityGML Parsing and Visualization
GNU Lesser General Public License v2.1
98 stars 55 forks source link

Element parser throwing errors for xlinks #52

Open shehzan10 opened 5 years ago

shehzan10 commented 5 years ago

I have data that contains a cityobject like:

<gml:solidMember>
  <gml:Solid>
    <gml:exterior xlink:href='#otherobject'>
    </gml:exterior>
  </gml:Solid>
</gml:solidMember>

Looks like this causes it to run https://github.com/jklimke/libcitygml/blob/b71d2e855a48d5b8db60c1e18e6ea5cd88b2f8d3/sources/src/parser/citygmlelementparser.cpp#L36-L42

While I understand why it's going into this condition, I'm not completely sure why it has to throw an unrecoverable error. Isn't there a different path it can take?

Or is it because xlink is not supported?

If I wanted to work on this, what is the workaround for this?