Re: App-schema issue mapping GeologyCore INSPIRE schema

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Ben Caradoc-Davies-2
[Moved to GeoServer users list]

Stefano,

I could not see anything obvious in your mapping file. Do you have a
secondary namespace configured for gml?
http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html#secondary-namespace-for-gml-3-2-1-required

I did not see anything obviously wrong with the schemas, either.
GeoServer app-schema guesses GML version based on whether a GML 3.1 or
3.2 feature base type is present. I did not see anything that could
import GML 3.1.1.

In the past I have seen GML 3.2.1 application schemas that mistakenly
import GML 3.1.1 and cause GeoServer app-schema to load the wrong Java
bindings. If GeoServer finds both, it will pick GML 3.1.1; see
SUPPORTED_GML_KNOWN_TYPE_TO_CONFIGURATION_MAP and findGmlConfiguration
in GmlFeatureTypeRegistryConfiguration. This is a schema problem as a
GML application schema should use only one version of GML.

Try removing your app-schema-cache and restarting (with only this one
feature type mapped) to see if any GML 3.1.1 schemas are downloaded into
the cache.

Kind regards,
Ben.

On 14/07/15 00:43, stefano.costa wrote:

> Hi all,
> I'm facing an issue with a simple app-schema mapping targeting the Geology Core INSPIRE schema, which can be found here:
> file:///home/stefano/Lavoro/GeoSolutions/projects/hale/geoserver-2.6.2/data_dir/app-schema-cache/eu/europa/ec/inspire/schemas/ge-core/3.0/GeologyCore.xsd
>
> I'm attaching a simplified version of the mapping file.
>
> Example request:
> http://localhost:8080/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=ge:MappedFeature&maxFeatures=50&outputFormat=application%2Fgml%2Bxml%3B+version%3D3.2
>
> Stack trace of the error:
> java.lang.RuntimeException: Failed to get properties. Binding for {http://www.opengis.net/gml}AbstractFeatureType
>      at org.geotools.xml.impl.GetPropertiesExecutor.visit(GetPropertiesExecutor.java:72)
>      at org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:220)
>      at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:186)
>      at org.geotools.xml.impl.BindingVisitorDispatch.walk(BindingVisitorDispatch.java:47)
>      at org.geotools.xml.impl.BindingVisitorDispatch.walk(BindingVisitorDispatch.java:32)
>      at org.geotools.xml.impl.BindingPropertyExtractor.properties(BindingPropertyExtractor.java:96)
>      at org.geotools.xml.Encoder.encode(Encoder.java:960)
>      at org.geotools.xml.Encoder.encode(Encoder.java:609)
>      at org.geoserver.wfs.xml.GML32OutputFormat.encode(GML32OutputFormat.java:124)
>      at org.geoserver.wfs.xml.GML3OutputFormat.complexFeatureStreamIntercept(GML3OutputFormat.java:325)
>      at org.geoserver.wfs.xml.GML3OutputFormat.write(GML3OutputFormat.java:277)
>      at org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:196)
>      at org.geoserver.ows.Dispatcher.response(Dispatcher.java:992)
>      at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:279)
>      at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
>      at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
>      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
>      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
>      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
>      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
>      at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>      at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
>      at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
>      at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
>      at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>      at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
>      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
>      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
>      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>      at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>      at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
>      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>      at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>      at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
>      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>      at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
>      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>      at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>      at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:83)
>      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>      at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
>      at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
>      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>      at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
>      at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:135)
>      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
>      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>      at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:83)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>      at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>      at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>      at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
>      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>      at org.mortbay.jetty.Server.handle(Server.java:324)
>      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
>      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
>      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>      at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
>      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> Caused by: java.lang.RuntimeException: Could not find type for {http://inspire.ec.europa.eu/schemas/ge-core/3.0}NaturalGeomorphologicFeatureType in schema
>      at org.geotools.gml2.bindings.GMLEncodingUtils.AbstractFeatureType_getProperties(GMLEncodingUtils.java:140)
>      at org.geotools.gml3.bindings.GML3EncodingUtils.AbstractFeatureTypeGetProperties(GML3EncodingUtils.java:312)
>      at org.geotools.gml3.bindings.AbstractFeatureTypeBinding.getProperties(AbstractFeatureTypeBinding.java:145)
>      at org.geotools.xml.impl.GetPropertiesExecutor.visit(GetPropertiesExecutor.java:65)
>      ... 88 more
>
>  From the error message of the exception's root cause, marked in red, it looks like NaturalGeomorphologicFeatureType was not properly parsed and added to the schema index, not sure why. Also the message "Failed to get properties. Binding for {http://www.opengis.net/gml}AbstractFeatureType" sounds wrong to me: shouldn't have been "{http://www.opengis.net/gml/3.2}AbstractFeatureType", since the geology schema links to GML 3.2?
> I tried to change output format to "gml3" and the exception disappears, although the output is not perfect (e.g. "shape" geometry element is not properly encoded):
>
> <wfs:FeatureCollection numberOfFeatures="50"
>    timeStamp="2015-07-13T12:38:29.217Z"
>    xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://inspire.ec.europa.eu/schemas/ge-core/3.0 http://inspire.ec.europa.eu/schemas/ge-core/3.0/GeologyCore.xsd">
>    <gml:featureMember>
>      <ge:MappedFeature gml:id="pilota.1">
>        <ge:shape></ge:shape>
>        <ge:mappingFrame
>          xlink:href="http://inspire.ec.europa.eu/codelist/MappingFrameValue/surfaceGeology"
>          xlink:type="simple" />
>        <ge:specification>
>          <ge:NaturalGeomorphologicFeature>
>            <ge:activity
>              xlink:href="http://inspire.ec.europa.eu/codelist/GeomorphologicActivityValue/dormant"
>              xlink:type="simple" />
>          </ge:NaturalGeomorphologicFeature>
>        </ge:specification>
>      </ge:MappedFeature>
>    </gml:featureMember>
>
> I tested with GeoServer 2.7.1 and master, obtaining similar results.
>
> Does anybody have an idea of what might be going wrong?
>
> 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.
>
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
>
>
>
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

--
Ben Caradoc-Davies <[hidden email]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

lucvanlinden
Hi

I am not sure if this is related but the namespace prefix "ge" seems not used in the xsd.

It seems to be ge-core. unless that is tackled in the namespace defintion required by geoserver app-schema. (although I understand this would mean the xsd is not correct, right?)

I know there is/was an issue with app-schema if the namespace prefix uses a dash. I am equaly not 100% sure this relates only to gml321 outputs.

I hope this helps in some direction.

Luc

PS: I could not see your mapping file





Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Stefano Costa-4
In reply to this post by Ben Caradoc-Davies-2
Hi Ben,
thanks for your answer, please see my comments below.

Da: "Ben Caradoc-Davies" [hidden email]
A: "stefano.costa" [hidden email]
Data: Tue, 14 Jul 2015 10:44:54 +1200
Oggetto: Re: App-schema issue mapping GeologyCore INSPIRE schema
> I could not see anything obvious in your mapping file. Do you have a
> secondary namespace configured for gml?
> http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html#secondary-namespace-for-gml-3-2-1-required

Yes, I do, namespace.xml:

<namespace>
<id>NamespaceInfoImpl--5e80c53:14e0c255a07:-6795</id>
<prefix>gml</prefix>
<uri>http://www.opengis.net/gml/3.2</uri>
</namespace>

...and workspace.xml:

<workspace>
<id>WorkspaceInfoImpl--5e80c53:14e0c255a07:-6794</id>
<name>gml</name>
</workspace>


> I did not see anything obviously wrong with the schemas, either.
> GeoServer app-schema guesses GML version based on whether a GML 3.1 or
> 3.2 feature base type is present. I did not see anything that could
> import GML 3.1.1.
>
> In the past I have seen GML 3.2.1 application schemas that mistakenly
> import GML 3.1.1 and cause GeoServer app-schema to load the wrong Java
> bindings. If GeoServer finds both, it will pick GML 3.1.1; see
> SUPPORTED_GML_KNOWN_TYPE_TO_CONFIGURATION_MAP and findGmlConfiguration
> in GmlFeatureTypeRegistryConfiguration. This is a schema problem as a
> GML application schema should use only one version of GML.


I created a test case proving that the right GML version is picked:

/**
 * Test we can find that Geology Core 3.0 depends on GML 3.2.
 */
@Test
public void findGeologyConfiguration() {
    AppSchemaConfiguration configuration = new AppSchemaConfiguration(
            "http://inspire.ec.europa.eu/schemas/ge-core/3.0",
            "http://inspire.ec.europa.eu/schemas/ge-core/3.0/GeologyCore.xsd",
            new SchemaResolver(new SchemaCache(new File("/tmp/app-schema-cache"), true)));
    Configuration gmlConfiguration = GmlFeatureTypeRegistryConfiguration.findGmlConfiguration(configuration);
    Assert.assertNotNull(gmlConfiguration);
    Assert.assertEquals(new org.geotools.gml3.v3_2.GMLConfiguration(), gmlConfiguration);
}

The test passes, as expected.


>
> Try removing your app-schema-cache and restarting (with only this one
> feature type mapped) to see if any GML 3.1.1 schemas are downloaded into
> the cache.

I cleared the cache, restarted and checked the version of the downloaded gml.xsd: 3.2.1.2, which is correct.

I made further experiments and noticed that if I define a FeatureTypeMapping for ge:NaturalGeomorphologicFeatureType, everything works as expected; if I just define a FeatureTypeMapping for ge:MappedFeature and use element ge:NaturalGeomorphologicFeature in its attribute mappings, the "Could not find type..." exception occurs. 

Inspecting the code, I found out that for mapped feature types an attribute descriptor is created and the element declaration is stored in the userData map of the descriptor:
https://github.com/geotools/geotools/blob/aa0d0346e4bb4a5a2055559c22d2b12ded7cbd20/modules/extension/complex/src/main/java/org/geotools/data/complex/config/FeatureTypeRegistry.java#L355

Then, when a request comes in and the properties of the feature type must be extracted, the XSD type definition is retrieved from the userData map:
https://github.com/geotools/geotools/blob/aa0d0346e4bb4a5a2055559c22d2b12ded7cbd20/modules/extension/xsd/xsd-gml2/src/main/java/org/geotools/gml2/bindings/GMLEncodingUtils.java#L135

On the contrary, if a feature type is not mapped, the descriptor's userData map is empty and the XSD type definition cannot be found: thus, a "Could not find type ..." exception is raised.

I created a patch to fix this, by taking the type definition from the element declaration that is passed as an argument to the AbstractFeatureType_getProperties method: in my case, this solves the problem, but I'm not at all sure this approach is correct (I'll frankly admit I don't fully understand what the code is doing here).
I'm attaching an updated version of the mapping file and the patch in diff format: if you think it's useful, I can make a PR.

>
> Kind regards,
> Ben.


Thanks,
Stefano


>
> On 14/07/15 00:43, stefano.costa wrote:
> > Hi all,
> > I'm facing an issue with a simple app-schema mapping targeting the Geology Core INSPIRE schema, which can be found here:
> > file:///home/stefano/Lavoro/GeoSolutions/projects/hale/geoserver-2.6.2/data_dir/app-schema-cache/eu/europa/ec/inspire/schemas/ge-core/3.0/GeologyCore.xsd
> >
> > I'm attaching a simplified version of the mapping file.
> >
> > Example request:
> > http://localhost:8080/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=ge:MappedFeature&maxFeatures=50&outputFormat=application%2Fgml%2Bxml%3B+version%3D3.2
> >
> > Stack trace of the error:
> > java.lang.RuntimeException: Failed to get properties. Binding for {http://www.opengis.net/gml}AbstractFeatureType
> > at org.geotools.xml.impl.GetPropertiesExecutor.visit(GetPropertiesExecutor.java:72)
> > at org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:220)
> > at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:186)
> > at org.geotools.xml.impl.BindingVisitorDispatch.walk(BindingVisitorDispatch.java:47)
> > at org.geotools.xml.impl.BindingVisitorDispatch.walk(BindingVisitorDispatch.java:32)
> > at org.geotools.xml.impl.BindingPropertyExtractor.properties(BindingPropertyExtractor.java:96)
> > at org.geotools.xml.Encoder.encode(Encoder.java:960)
> > at org.geotools.xml.Encoder.encode(Encoder.java:609)
> > at org.geoserver.wfs.xml.GML32OutputFormat.encode(GML32OutputFormat.java:124)
> > at org.geoserver.wfs.xml.GML3OutputFormat.complexFeatureStreamIntercept(GML3OutputFormat.java:325)
> > at org.geoserver.wfs.xml.GML3OutputFormat.write(GML3OutputFormat.java:277)
> > at org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:196)
> > at org.geoserver.ows.Dispatcher.response(Dispatcher.java:992)
> > at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:279)
> > at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
> > at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
> > at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
> > at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
> > at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
> > at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
> > at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> > at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
> > at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
> > at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
> > at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> > at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
> > at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
> > at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
> > at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
> > at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
> > at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
> > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> > at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
> > at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
> > at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
> > at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
> > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> > at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
> > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> > at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
> > at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
> > at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
> > at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
> > at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:83)
> > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> > at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
> > at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
> > at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
> > at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
> > at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
> > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> > at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
> > at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:135)
> > at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
> > at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> > at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:83)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> > at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> > at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> > at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> > at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
> > at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
> > at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> > at org.mortbay.jetty.Server.handle(Server.java:324)
> > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> > at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
> > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> > at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> > Caused by: java.lang.RuntimeException: Could not find type for {http://inspire.ec.europa.eu/schemas/ge-core/3.0}NaturalGeomorphologicFeatureType in schema
> > at org.geotools.gml2.bindings.GMLEncodingUtils.AbstractFeatureType_getProperties(GMLEncodingUtils.java:140)
> > at org.geotools.gml3.bindings.GML3EncodingUtils.AbstractFeatureTypeGetProperties(GML3EncodingUtils.java:312)
> > at org.geotools.gml3.bindings.AbstractFeatureTypeBinding.getProperties(AbstractFeatureTypeBinding.java:145)
> > at org.geotools.xml.impl.GetPropertiesExecutor.visit(GetPropertiesExecutor.java:65)
> > ... 88 more
> >
> > From the error message of the exception's root cause, marked in red, it looks like NaturalGeomorphologicFeatureType was not properly parsed and added to the schema index, not sure why. Also the message "Failed to get properties. Binding for {http://www.opengis.net/gml}AbstractFeatureType" sounds wrong to me: shouldn't have been "{http://www.opengis.net/gml/3.2}AbstractFeatureType", since the geology schema links to GML 3.2?
> > I tried to change output format to "gml3" and the exception disappears, although the output is not perfect (e.g. "shape" geometry element is not properly encoded):
> >
> > timeStamp="2015-07-13T12:38:29.217Z"
> > xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://inspire.ec.europa.eu/schemas/ge-core/3.0 http://inspire.ec.europa.eu/schemas/ge-core/3.0/GeologyCore.xsd">
> >
> >
> >
> > xlink:href="http://inspire.ec.europa.eu/codelist/MappingFrameValue/surfaceGeology"
> > xlink:type="simple" />
> >
> >
> > xlink:href="http://inspire.ec.europa.eu/codelist/GeomorphologicActivityValue/dormant"
> > xlink:type="simple" />
> >
> >
> >
> >
> >
> > I tested with GeoServer 2.7.1 and master, obtaining similar results.
> >
> > Does anybody have an idea of what might be going wrong?
> >
> > 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.
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Don't Limit Your Business. Reach for the Cloud.
> > GigeNET's Cloud Solutions provide you with the tools and support that
> > you need to offload your IT needs and focus on growing your business.
> > Configured For All Businesses. Start Your Cloud Today.
> > https://www.gigenetcloud.com/
> >
> >
> >
> > _______________________________________________
> > GeoTools-GT2-Users mailing list
> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> >
>
> --
> Ben Caradoc-Davies
> Director
> Transient Software Limited
> New Zealand


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.


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

=?utf-8?Q?patch.diff?= (2K) Download Attachment
=?utf-8?Q?GeologyCore.appschema?= (12K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Stefano Costa-4
In reply to this post by lucvanlinden
Hi Luc,
thanks for taking the time to answer my question.

However, from furhter investigations, the issue doesn't seem to be related to namespace naming (see my second e-mail).


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.


Da: "lucvanlinden" [hidden email]
Cc:
Data: Tue, 14 Jul 2015 02:25:36 -0700 (PDT)
Oggetto: Re: [Geoserver-users] App-schema issue mapping GeologyCore INSPIRE schema

> Hi
>
> I am not sure if this is related but the namespace prefix "ge" seems not
> used in the xsd.
>
> It seems to be ge-core. unless that is tackled in the namespace defintion
> required by geoserver app-schema. (although I understand this would mean the
> xsd is not correct, right?)
>
> I know there is/was an issue with app-schema if the namespace prefix uses a
> dash. I am equaly not 100% sure this relates only to gml321 outputs.
>
> I hope this helps in some direction.
>
> Luc
>
> PS: I could not see your mapping file
>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-App-schema-issue-mapping-GeologyCore-INSPIRE-schema-tp5215499p5215532.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Geoserver-users mailing list
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Ben Caradoc-Davies-2
In reply to this post by lucvanlinden
Luc,

xml namespace prefixes are local to the xml document in which they are
declared. It is valid for a single namespace to have prefix ge-core in
one document, ge in another, and ns1 in a third. I checked Stefano's ge
namespace declaration and it appeared correct. Thanks for noting the
difference!

Kind regards,
Ben.

On 14/07/15 21:25, lucvanlinden wrote:

> Hi
>
> I am not sure if this is related but the namespace prefix "ge" seems not
> used in the xsd.
>
> It seems to be ge-core. unless that is tackled in the namespace defintion
> required by geoserver app-schema. (although I understand this would mean the
> xsd is not correct, right?)
>
> I know there is/was an issue with app-schema if the namespace prefix uses a
> dash. I am equaly not 100% sure this relates only to gml321 outputs.
>
> I hope this helps in some direction.
>
> Luc
>
> PS: I could not see your mapping file
>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-App-schema-issue-mapping-GeologyCore-INSPIRE-schema-tp5215499p5215532.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Geoserver-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

--
Ben Caradoc-Davies <[hidden email]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Ben Caradoc-Davies-2
In reply to this post by Stefano Costa-4
Great analysis, Stefano. I am not sure that your fix is in the right
place. I think that the underlying problem is in FeatureTypeRegistry and
that somehow this feature type is being built without the user data
being set on its descriptor. I would like to know why.

A feature type is a complex type and it should be perfectly valid to use
it in a mapping as a complex property. I have confirmed that this works
with the app-schema tutorial by removing the mapping file for
gsml:MappedFeature and adding a mapping for
gsml:occurrence/gsml:MappedFeature/gml:name in the gsml:GeologicUnit
mapping file.

Kind regards,

--
Ben Caradoc-Davies <[hidden email]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Ben Caradoc-Davies-2
Correction: features have descriptors (not feature types). Perhaps the
problem is where the mapping is applied
(DataAccessMappingFeatureIterator.computeNext)?

On 15/07/15 10:14, Ben Caradoc-Davies wrote:
> I think that the underlying problem is in FeatureTypeRegistry and
> that somehow this feature type is being built without the user data
> being set on its descriptor. I would like to know why.

--
Ben Caradoc-Davies <[hidden email]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Ben Caradoc-Davies-2
In reply to this post by Stefano Costa-4
Stefano,

I have applied your patch to GeoTools master.
https://github.com/geotools/geotools/commit/e87ff09fd970dcda3d1aa0cea0497d1ef62b0316

I have not been able to identify the difference that allows a nested
feature to work properly in GeoSciML 2 and yet fail for GeologyCore.
Top-level features have special treatment, but the situation is quite
similar for the nested feature. Perhaps some subtle difference in
cardinality or substitution group handling? The code base is very
complicated.

Your fix certainly works for this case (tested manually against a
property file configuration based on your mapping file), and only
changes the behaviour of the method when all else fails, so I am quite
happy with it.

Kind regards,
Ben.

On 15/07/15 01:38, stefano.costa wrote:
> I created a patch to fix this, by taking the type definition from the element declaration that is passed as an argument to the AbstractFeatureType_getProperties method: in my case, this solves the problem, but I'm not at all sure this approach is correct (I'll frankly admit I don't fully understand what the code is doing here).
> I'm attaching an updated version of the mapping file and the patch in diff format: if you think it's useful, I can make a PR.

--
Ben Caradoc-Davies <[hidden email]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Stefano Costa-4
Hi Ben,
my comments inline.

Da: "Ben Caradoc-Davies" [hidden email]
A: "stefano.costa" [hidden email]
Data: Wed, 15 Jul 2015 14:22:47 +1200
Oggetto: Re: App-schema issue mapping GeologyCore INSPIRE schema

> Stefano,
>
> I have applied your patch to GeoTools master.
> https://github.com/geotools/geotools/commit/e87ff09fd970dcda3d1aa0cea0497d1ef62b0316


That's great news! :-)
Perhaps next time I should submit a PR to ease your work, even if I'm not fully confident about the fix?


The code base is very complicated.


I'm glad to hear you say that, now I know I'm not the only one feeling that way :-)
If I ever discover the root cause of the issue, I'll report back to the ML.


> Your fix certainly works for this case (tested manually against a
> property file configuration based on your mapping file), and only
> changes the behaviour of the method when all else fails, so I am quite
> happy with it.


Thanks again for confirming that the patch works and for merging it!


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.


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Ben Caradoc-Davies-2
On 15/07/15 21:27, stefano.costa wrote:
> Perhaps next time I should submit a PR to ease your work, even if I'm not fully confident about the fix?

Yes, please. Pull requests ease workflow and facilitate discussion. Any
doubts as to correctness can be mentioned in the comments.

>> The code base is very complicated.
> I'm glad to hear you say that, now I know I'm not the only one feeling that way :-)
> If I ever discover the root cause of the issue, I'll report back to the ML.

Please do!

> Thanks again for confirming that the patch works and for merging it!

You are welcome. I am pleased to see more use of app-schema.

By the way do you know if INSPIRE GeologyCore is meant to replace
GeoSciML? I do not know anything about it; GeologyCore seems to have
some commonality, but be more oriented towards environmental sciences
(no surprise here as that is the mandate for INSPIRE), whereas GeoSciML
seems focussed on hard rock geology. Any opinions?

Kind regards,

--
Ben Caradoc-Davies <[hidden email]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: App-schema issue mapping GeologyCore INSPIRE schema

Stefano Costa-4
Hi Ben,

> By the way do you know if INSPIRE GeologyCore is meant to replace
> GeoSciML? I do not know anything about it; GeologyCore seems to have
> some commonality, but be more oriented towards environmental sciences
> (no surprise here as that is the mandate for INSPIRE), whereas GeoSciML
> seems focussed on hard rock geology. Any opinions?

By all means I'm no domain expert, so I have no answer to your questions. I just heard some rumors that there are plans to make INSPIRE Geology's data model as comprehensive as GeoSciML's.

>
> Kind regards,
>
> --
> Ben Caradoc-Davies
> Director
> Transient Software Limited
> New Zealand

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.


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users