Gabriel Roldan wrote:
> Hi,
> 
> I just went quickly over the topic so I guess I understand the problem 
> but may not be that insightful about a proposal for a solution. Yet, let 
> me just chip in before I forget.
> 
> I guess you said we may want to leverage other sorts of styles 
> definitions than ogc's ones, which seems clever to me.
> To do that my first reaction would be to use some way the IAdaptable 
> pattern in StyleInfo. Something on the lines of
> StyleInfo.canAdapt(Class styleClass) and StyleInfo.getStyle(Class<T> 
> styleClass):T
> 
> Implementation wise we can allow the factory that creates a styleinfo 
> receive a String and held it internally. It may well be the SLD contents 
> or any other thing and we can store it in the database verbatim if 
> needed or as a file. So no matter if we store an SLD or a single SE 
> style or some other sort of style definition, it could evolve to support 
> other formats easily?
> 
> ok, it may be an off topic or simple stupid idea but wanted to tell what 
> my though was when reading through the topic.
> 
> Gabriel
> 
Interesting thought Gabriel. I agree that this would be a good 
application of IAdaptable. I know there has been push back to this 
"eclipsism" because of the complexity but I think this circumstance it 
does indeed make sense.

With a bit of variation I think it would also solve another issue. One 
of the problems we have with how we store stuff is afaik we only just 
read the first style in an SLD. Which means if someone is using an SLD 
as a "library", they are kind of stuck. One thing that would be cool 
would be:

FeatureTypeInfo ftinfo = ...;
StyleInfo style = ...;

//load the style for the feature type
Style se = style.adapt( Style.class, ftinfo );

Basically parameterizing Iadapable so that in this case only styles 
which will apply to the feature type would be loaded.

2c.

-Justin

-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to