Hi,
in GeoServer land we use extensively DataUtilities.mixQueries() to merge
queries that
are coming from two different places.
Tipical scenario is having a layer definition query and a user provided
query, or a
user provided query and one coming from the security subsystem.

Now, the issue here is, that mixQueries() loses too much information while
mixing:
sorting, forced/reprojected crs, hints and the like.
The javadoc says so, but I guess we never paid attention to that.

What I need is a mixQueries in which there is a notion of primary and
secondary
query, and everything that cannot be mixed should be taken from the primary
query
(the stuff listed above).
This new method would then replace almost all usages of mixQueries in
GeoServer,
since we almost always have this primary/secondary setup

Thus, I'm wondering, should I:
a) roll a new method in DataUtilities?
b) Make one in GeoServer?
c) Modify the existing one so that firstQuery is taken as the primary?

I'm a bit in a hurry on this one unfortunately, I guess worst case I can
choose
b) and switch back on either a) or c) during a weekend.

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to