It would be great if you could confirm that the mapping you were trying to define now works correctly.
···
On Sun, Aug 23, 2015 at 12:14 AM, Stefano Costa <stefano.costa@anonymised.com> wrote:
Hi,
sorry for the (very) late reply.
–
On Fri, Jul 31, 2015 at 8:16 PM, Amadej Pevec <amadej.pevec@anonymised.com> wrote:
Thank you for your answer.
I know that if I change everything to inspire, then it is working, but I am wondering if then it is still elf schema or is only inspire schema?
The element you’re mapping is “{urn:x-inspire:specification:gmlas:Addresses:3.0}Address” regardless of what schema you are pointing at in the configuration. In your case, I can see no substantial reason to prefer http://www.locationframework.eu/schemas/Addresses/0.1/Addresses.xsd over http://inspire.ec.europa.eu/schemas/ad/3.0/Addresses.xsd.
Anyway, I also had issues trying to build a mapping with a schema containing no elements, just imports (in my case it was GeoSciML 3.2), so I investigated a bit and opened a JIRA ticket:
https://osgeo-org.atlassian.net/browse/GEOT-5194
Keep an eye on the ticket if you’re interested in seeing this fixed.
–
Best regards,
Stefano Costa
==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://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.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_it](http://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.
2015-07-31 20:07 GMT+02:00 Stefano Costa <stefano.costa@anonymised.com>:
Hi,
if you point straight to the INSPIRE schema at:
http://inspire.ec.europa.eu/schemas/ad/3.0/Addresses.xsd
it works: probably the empty schema with just one tag inside is
giving the schema parsing machinery a hard time… but I didn’t have the
time to debug this more deeply.
Please find attached a working skeleton configuration.
Hope this helps,
Stefano
Il giorno ven, 31/07/2015 alle 04.25 -0700, amacar ha scritto:
Hi,
I had successfuly mapped ELF GeographicalNames schema, but now I want to map
ELF Addresses schema (
http://www.locationframework.eu/schemas/Addresses/0.1/Addresses.xsd ). There
are no elements in schema, so basically it is the same as INSPIRE Addresses.
But I have problems creating correct mapping files.
My datastore.xml
/
elf_Address_datastore
elf_Address
true
elf_addr_workspace_id
app-schema
file:workspaces/elf_addr/elf_Address/elf_Address.xml
http://www.locationframework.eu/schemas/Addresses/0.1
<__default>false</__default>
/
my namespace.xml
/
elf_addr_namespace_id
elf_addr
http://www.locationframework.eu/schemas/Addresses/0.1
/
my elf_Address.xml (I left out irrelevant information)
/.
.
.
inspire_addr
urn:x-inspire:specification:gmlas:Addresses:3.0
elf_addr
http://www.locationframework.eu/schemas/Addresses/0.1
.
.
.
http://www.locationframework.eu/schemas/Addresses/0.1/Addresses.xsd
datasource
INS_AD
inspire_addr:Address
false
inspire_addr:Address
strConcat(‘SI.GURS.RPE.AD.’, ID)
.
.
./
When I run geoserver I get this error, even though
urn:x-inspire:specification:gmlas:Addresses:3.0 should had top element
Addresss:
/31 jul 13:20:42 WARN [data.complex] - No top level element found in
schemas: {urn:x-inspire:specification:gmlas:Addresses:3.0}Address
31 jul 13:20:42 WARN [complex.config] - Error creating app-schema data store
for ‘inspire_addr:Address’, caused by: No top level element found in
schemas: {urn:x-inspire:specification:gmlas:Addresses:3.0}Address
31 jul 13:20:42 WARN [org.geoserver] - Error connecting to ‘elf_Address’.
Disabling./
Somebody has a solution how to correctly map this schema?
Best regards,
Stefano Costa
==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://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.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_it](http://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.