Hi there,

I am trying to parse some 3D city models and am running into issues. All
geotools dependencies are at 32.1. It follows a standalone XML file I am
trying to parse with a couple of `xsd` locations in the header.
https://gist.github.com/FiV0/91098e483ab993a3ef2293c12bd60afc#file-test-xml
and the way I am trying to parse it
https://gist.github.com/FiV0/91098e483ab993a3ef2293c12bd60afc#file-parserissue-java

There is no error but I am getting a bunch of warnings that some `xsd`
files can not be resolved and hence the returned result is not typed with
classes.
For example:
WARNING: Error loading schema for namespace:
http://www.opengis.net/citygml/building/1.0 at location:
http://repository.gdi-de.org/schemas/adv/citygml/building/1.0/buildingLoD1.xsd

Digging deeper, I tried to parse the schema directly with a custom
`CashingSchemaResolver` as follows:
https://gist.github.com/FiV0/91098e483ab993a3ef2293c12bd60afc#file-parsexsdfile-java
This results in a premature end of file error for a referenced schema. See
https://gist.github.com/FiV0/91098e483ab993a3ef2293c12bd60afc#file-error-txt

My second question concerns how I can actually set a custom schema resolver
on a parser. I tried to overwrite all kinds of methods on a custom
configuration, but all to no avail.
For example how would I set the following on my parser?
```
        SchemaResolver schemaResolver = new SchemaResolver(new
SchemaCache(new File ("/path/to/schema/catalog"), true));
```

Thank you,
Finn
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to