Dear developers,
I experienced issues trying to build an app-schema mapping configuration
based on GeoSciML 3.2 schemas, namely
http://schemas.geosciml.org/geosciml/3.2/geosciml.xsd (got "no GeologicUnit
element found" exception).

After some investigation, I concluded that the problem arises when the
schema referred to in the mapping file is itself a placeholder, i.e.
contains no definitions, just import tags referring to external schemas: in
such a case, the EMF parser ignores imported schemas and, as a result, the
elements and types defined there are not made available to the app-schema
data access.

At least another user experienced the same issue, with a different schema:
http://osgeo-org.1560.x6.nabble.com/Problem-mapping-ELF-Addresses-schema-td5217968.html

Two days ago I opened a JIRA ticket:
https://osgeo-org.atlassian.net/browse/GEOT-5194

...and yesterday I submitted a PR with a tentative fix:
https://github.com/geotools/geotools/pull/946

The fix affects org.geotools.xml.Schemas and essentially forces the import
of external schemas (if any) when the schema being parsed contains itself
no element / type definition.

I successfully ran a full local build, the Travis build seems to have
failed because of unreachable Unidata artifacts.

I would like to have this PR merged before the feature freeze on the 28th:
can anybody confirm that my fix is viable?


Thanks!


-- 

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts!
Visithttp://goo.gl/it488V for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it

-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility  for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.
------------------------------------------------------------------------------
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to