Hi list,
I've been looking at paging through features from a WFS server using the
gt-wfs-ng plugin (v0.19.2) as well as geoserver 2.13.1. I've hit some
issues, so I guess I'm looking for some kind of "Yeah, we know, patches
welcome" or "You're doing it wrong" or some other kind of statement
before I start patching things all over the shop.
I set up a test to page through some features, adding the feature ids to
both a set and a list, to check whether it was paging through properly
(a mismatch in collection size would mean the ids aren't unique and
something is fishy).
The first issue I came across, after skimming through the specs, blog
posts, and eventually the source, was that there's no support for
startIndex in the WFS 2.0 strategy and surrounding code. This was
easily fixed, and seemed to sort things on the client side - I can see
the startIndex and count going through in the GetFeatures request over
the wire.
Once that was sorted, I had issues with trying to page through a large
shapefile (2 million rows), so I imported this in to postgis, as I
assumed this would be more suited to this kind of operation. This
seemed seemed to fix things, although I was initially getting a mismatch
in size between collections, possibly down to the haphazard way I added
the layer in to geoserver - My initial import didn't add a primary key,
I added one after publishing the layer. A geoserver restart stopped
this from happening again, so I've put this down to a possible bug in
the feature type reloading code. Moving on, but a little but worrying.
I might try and turn on some logging somewhere to validate the SQL
that's being generated (or try and get a breakpoint in there).
So if this all sounds plausible, I'll prepare a patch for the startIndex
support on the WFS client code, and I'd also like to submit some docs on
'how to' and touch on some of the issues I came across, to ease the path
of other weary travellers - I just need to know where to put it!
Cheers,
Nick
PS Sorry if this is rambling, it's getting late...
--
Nick Griffiths
Catalyst IT - Open Source Technologists
+64 4 897 7457 | ni...@catalyst.net.nz | www.catalyst.net.nz
--
Nick Griffiths
Catalyst IT - Open Source Technologists
+64 4 897 7457 | ni...@catalyst.net.nz | www.catalyst.net.nz
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users