Andrea,
Thanks for helping the PR through.
I haven't tested out the first case completely. I've definitely run
into the issue that Alvaro is trying to address with WFS 2.0.
In the short term, is allowing the FC to delegate reasonable?
Cheers,
Jim
On 06/08/2018 12:07 PM, Andrea Aime wrote:
Ah,
that change was controversial and the pull request sat there for ages
before being merged:
https://github.com/geoserver/geoserver/pull/2664
(shows me as the author, but it's not really me, I'm just unwillingly
involved because nobody else would take action)
Please discuss.
Cheers
Andrea
On Fri, Jun 8, 2018 at 5:57 PM, Jim Hughes <jhug...@ccri.com
<mailto:jhug...@ccri.com>> wrote:
Hi all,
While testing out GeoMesa with GeoServer 2.13.x, we ran into some
issues with the FeatureSizeFeatureCollection. I think there are
two issues:
First, for a layers backed by a large volume of data, getCount
returning -1 is partially a way of saying that you don't want to
count all the features;). Given this pattern, I'd suggest that
the FeatureSizeFeatureCollection might be taken off the usual path
completely. It looks like it might be an optimization when
working with a bunch of little shapefiles.
Second, WPSes can be implemented with a visitor pattern. For
instance, the gs:Unique process leverages the GeoTools
UniqueVisitor(1) which is recognized by the JDBC DataStores. (In
GeoMesa, we do a bunch of similar things.)
The fact that the current FeatureSizeFeatureCollection doesn't
delegate prevents the UniqueProcess (and the GeoMesa ones) from
working properly...
In the short term, any objection to a PR which enables delegation
for that FeatureCollection?
Cheers,
Jim
1. UniqueVisitor:
https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/feature/visitor/UniqueVisitor.java
<https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/feature/visitor/UniqueVisitor.java>
https://github.com/geotools/geotools/blob/master/modules/library/jdbc/src/main/java/org/geotools/jdbc/SQLDialect.java#L375
<https://github.com/geotools/geotools/blob/master/modules/library/jdbc/src/main/java/org/geotools/jdbc/SQLDialect.java#L375>
p.s. I debugged this using PostGIS and the gs:Unique process.
When the FeatureSizeFC was 'on', the queries did not have the
'distinct' keyword. When the FC was off, GeoServer did make a
'distinct' query.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
<mailto:Geoserver-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
<https://lists.sourceforge.net/lists/listinfo/geoserver-devel>
--
Regards, Andrea Aime == GeoServer Professional Services from the
experts! Visit http://goo.gl/it488V for more information. == Ing.
Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di
Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39
0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it
http://twitter.com/geosolutions_it
------------------------------------------------------- /Con
riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene
notizia. This email is intended only for the person or entity to which
it is addressed and may contain information that is privileged,
confidential or otherwise protected from disclosure. We remind that -
as provided by European Regulation 2016/679 “GDPR” - copying,
dissemination or use of this e-mail or the information herein by
anyone other than the intended recipient is prohibited. If you have
received this email by mistake, please notify us immediately by
telephone or e-mail./
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel