On Fri, May 30, 2014 at 2:26 PM, Sampo Savolainen <
[email protected]> wrote:

> Hi Jody,
>
> Thanks for the tip. It does seem that model could work well in this case
> as well. However there lies a nasty problem here. The SQL View code relies
> in many places on the DataStore to be an instance of JDBCDataStore. Like we
> discussed earlier with Andrea, this is method is slightly dubious because a
> DataStore might have to be wrapped in a retyping DataStore.
>
> Retyping causes headaches with WFS-NG as that happens almost always. As
> I've understood, retyping is required when colons are used in the localPart
> of a feature name. Stored query id's will contain colons (the mandatory
> stored query in WFS 2.0.0 is "urn:ogc:def:query:OGC-WFS::GetFeatureById").
> Because of the retyping, it's difficult to detect which features are backed
> by WFS-NG. But even more troubling is the fact that I can't access the
> underlying store in any sane way.
>
> Andrea, you mentioned that you had a plan to refactor the parts affecting
> this. Is there any movement on this, or should I hack a
> "getUnderlyingDataStore()" into RetypingDataStore?
>

No movement whatsoever, sorry. Hmm.. I'd probably roll a WrappingDataStore
interface, and have it be implemented by all wrappers,
or simply a generic Wrapper interface, like the java.sql.Wrapper one, but
without the SqlExceptions...

Cheers
Andrea

-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to