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?
2015-07-31 20:07 GMT+02:00 Stefano Costa <[email protected]>: > 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 <import> 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 > > /<dataStore> > > <id>elf_Address_datastore</id> > > <name>elf_Address</name> > > <enabled>true</enabled> > > <workspace> > > <id>elf_addr_workspace_id</id> > > </workspace> > > <connectionParameters> > > <entry key="dbtype">app-schema</entry> > > <entry > > key="url">file:workspaces/elf_addr/elf_Address/elf_Address.xml</entry> > > <entry > > key="namespace">http://www.locationframework.eu/schemas/Addresses/0.1 > </entry> > > </connectionParameters> > > <__default>false</__default> > > </dataStore>/ > > > > my namespace.xml > > /<namespace> > > <id>elf_addr_namespace_id</id> > > <prefix>elf_addr</prefix> > > <uri>http://www.locationframework.eu/schemas/Addresses/0.1</uri> > > </namespace>/ > > > > my elf_Address.xml (I left out irrelevant information) > > /. > > . > > . > > <Namespace> > > <prefix>inspire_addr</prefix> > > <uri>urn:x-inspire:specification:gmlas:Addresses:3.0</uri> > > </Namespace> > > <Namespace> > > <prefix>elf_addr</prefix> > > <uri>http://www.locationframework.eu/schemas/Addresses/0.1</uri> > > </Namespace> > > . > > . > > . > > <targetTypes> > > <FeatureType> > > > > <schemaUri> > http://www.locationframework.eu/schemas/Addresses/0.1/Addresses.xsd > </schemaUri> > > </FeatureType> > > </targetTypes> > > <typeMappings> > > <FeatureTypeMapping> > > <sourceDataStore>datasource</sourceDataStore> > > <sourceType>INS_AD</sourceType> > > <targetElement>inspire_addr:Address</targetElement> > > <isDenormalised>false</isDenormalised> > > <attributeMappings> > > <AttributeMapping> > > <targetAttribute> > > inspire_addr:Address > > </targetAttribute> > > <idExpression> > > <OCQL>strConcat('SI.GURS.RPE.AD.', ID)</OCQL> > > </idExpression> > > </AttributeMapping> > > . > > . > > ./ > > > > 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? > > > > > > > > -- > > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Problem-mapping-ELF-Addresses-schema-tp5217968.html > > Sent from the GeoServer - User mailing list archive at Nabble.com. > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Geoserver-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > -- > > Best regards, > Stefano Costa > > == > GeoServer Professional Services from the experts! Visit > 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://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. > > >
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
