On Mon, Jul 14, 2014 at 5:45 PM, Jody Garnett <jody.garnett@anonymised.com>
wrote:
Quick feedback:
WMS and GetMapRequest: The STYLE_URL, STYLE_BODY, STYLE_FORMAT are all
clear ... do you need a STYLE_VERSION as par of this?
SLD_VERSION is part of the WMS 1.3 spec, so it's needed afaik, and because
of that STYLE_VERSION made sense given we are giving the rest of the
parameters generic version.
Feedback / Questions on implementation:
- Would it be more clear to have SLD 1.0 and SE 1.1 each with their
own StyleHandler?
I tried this originally and it came out much cleaner to have a single
handler, especially for the user interface.
- Recommend chaining:
void encode( StyleLayerDescriptor sld, Version version, boolean pretty,
OutputStream output)
StyledLayerDescriptor parse(Object input, Version version, ResourceLocator
resourceLocator, EntityResolver entityResolver)
To use GeoTools Style.
void encode( Style style, Version version, boolean pretty, OutputStream
output)
Style parse(Object input, Version version, ResourceLocator
resourceLocator, EntityResolver entityResolver)
Not sure I agree here. It seems safer to pass the root object around rather
than start stripping it off everywhere. I feel it is safer for client code
to make the decision whether they want to strip off the root object or not.
Also keep in mind here my goal is not to fix our style model and how it is
used, it is simply to make parsing and encoding styles pluggable. The code
that was there before worked in terms of StyledLayerDescriptor and I
followed suite.
As far as I know we often wrap a single Style in an SLD document for
output and then throw the wrapper away when we parse it back in. This
wrap/unwrap could take place inside the encode and parse methods. Allowing
SE 1.1 to output SE documents, and better matching our internal use of
Style.
Jody Garnett
On Mon, Jul 14, 2014 at 4:30 PM, Justin Deoliveira <
jdeolive@anonymised.com> wrote:
Hi all,
I updated the code based on feedback from last week and wrote up the
proposal.
https://github.com/geoserver/geoserver/wiki/GSIP-117-Pluggable-Styles
It would be great to get this in by feature freeze but I realize I am not
leaving all that much time for folks to review.
-Justin
--
Justin Deoliveira
VP Engineering | Boundless <http://boundlessgeo.com/>
jdeolive@anonymised.com
@boundlessgeo <http://twitter.com/boundlessgeo/>
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--
Justin Deoliveira
VP Engineering | Boundless <http://boundlessgeo.com/>
jdeolive@anonymised.com
@boundlessgeo <http://twitter.com/boundlessgeo/>