Re: [Geotools-devel] WFS ComplexFeature and object representation

2021-08-31 Thread Roar Brænden
Hi, That was the one documentation I was missing. I do want to make a function that extracts this information, rather than a xpath accessor. It would've been nice if that function wasn't too verbose. I will look more into your examples and see how it can be done. I'm pretty sure there is some b

Re: [Geotools-devel] WFS ComplexFeature and object representation

2021-08-31 Thread Jody Garnett
Sorry I do not have more time for this, there are a couple spots which seem really odd to me in your example. (Collection) nextFeature.getProperty("kommunenavn").getValue() I was trying to sort out why this was a collection - it does not match any of the examples in the javadocs here ( https://do

Re: [Geotools-devel] WFS ComplexFeature and object representation

2021-08-31 Thread Roar Brænden
Hi, Thanks for the response Jody. In my original example there was only one kommunenavn, but here I've found one with two kommunenavn's: Hattfjelldal nor Aarborte sma The main goal of my query, is to extract the -element of the where there is an nor

Re: [Geotools-devel] WFS ComplexFeature and object representation

2021-08-31 Thread Jody Garnett
The use of complex features is mostly confined to the app-schema module, and that is a good source of test cases and examples. I helped setup the feature model to enable the app-schema team but did not get a chance to work on it beyond that. The toString representations are just to aid with debug

[Geotools-devel] WFS ComplexFeature and object representation

2021-08-31 Thread Roar Brænden
Hi, I have a WFS source that I try to fetch features from. The response is quite complex, and I've been using org.geotools.data.wfs.impl.WFSDataAccessFactory within gt-wfs-ng. I feel there is something wrong about how this xml are represented as a object graph of Property, but there are so many