Dear all, reading GeoServer's documentation <http://docs.geoserver.org/latest/en/user/data/app-schema/feature-chaining.html#multiple-mappings-of-the-same-type>, it is my understanding that it is not possible in app-schema to map the same type multiple times, from different sources, AND have all the types accessible as top level features.
At times, this may pose some challenges. For example, let's consider a case where multiple sets of observations should be published: each set sits in its own DB table, but they should all be mapped to the om:OM_Observation type from OGC's Observation & Measurements schema <http://schemas.opengis.net/om/2.0/observation.xsd>. I can see only two possible ways to work around this limitation: 1. Define a view in the database as the union of the source tables, and use that as sourceType in the FeatureTypeMapping 2. Create a custom application schema and define there one specialised observation type (derived from om:OM_Observation) for each source type that needs publishing, something along the lines of: <complexType name="MyFirstObservationType"> <complexContent> <extension base="om:OM_ObservationType"> <sequence /> </extension> </complexContent> </complexType> <element name="MyFirstObservation" type="myns:MyFirstObservationType" substitutionGroup="om:OM_Observation" /> <complexType name="MySecondObservationType"> <complexContent> <extension base="om:OM_ObservationType"> <sequence /> </extension> </complexContent> </complexType> <element name="MySecondObservation" type="myns:MySecondObservationType" substitutionGroup="om:OM_Observation" /> Am I interpreting the docs correctly? Does anybody have any further suggestion? Thanks in advance. -- 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.
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users