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

Document a portable tool for validating citygml files against standard schema #74

Open
EricBoix opened this issue Feb 17, 2022 · 1 comment
Assignees

Comments

@EricBoix
Copy link
Contributor

EricBoix commented Feb 17, 2022

CityGML-schema-validation seems to fail

mkdir test && cd test
virtualenv -p python2 venv    # yes this is a python2 (TWO) code
source venv/bin/activate
pip install lxml
git clone [email protected]:tudelft3d/CityGML-schema-validation.git
cd CityGML-schema-validation
wget https://download.data.grandlyon.com/files/grandlyon/imagerie/2018/maquette/CALUIRE_ET_CUIRE_2018.zip
unzip -e CALUIRE_ET_CUIRE_2018.zip
./valxsdcitygml.py CALUIRE_ET_CUIRE_2018/CALUIRE_ET_CUIRE_BATI_2018.gml

will complain about

 '69034AR222' is not a valid value of the atomic type 'xs:ID'., line 616530

xmllint doesn't support multiple XSD

brew install xmlstarlet   # on OSX
wget https://download.data.grandlyon.com/files/grandlyon/imagerie/2018/maquette/CALUIRE_ET_CUIRE_2018.zip
unzip -e CALUIRE_ET_CUIRE_2018.zip
xmllint --schema schemas/v2.0/CityGML/cityGMLBase.xsd CALUIRE_ET_CUIRE_2018/CALUIRE_ET_CUIRE_BATI_2018.gml  --noout

will fail because xmllint doesn't work with multiple XSD. There is an ad-hoc kludgy workaround.

@jailln
Copy link
Contributor

jailln commented Feb 17, 2022

The best validator that I could find is the 3DCityDB one but I think it is no portable sadly, or is it ? Let us know if you find one that is, interested too! 🙂

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

3 participants