> I would like to suggest that the getDefault * methods be depricated and
> then removed?
> And and createPointSymbolizer() return a symbolizer set up according to
> the defaults (specfied in the SLD 1.0 spec).
>
> Can anyone think of a reason why I should not do this? This *is* a
> Factory its job is to create things ...
One reason for the broken code was to detect when something was set to
defalt values so that the serialization to SLD would not be too
verbose. We perhaps need null objects instead (objects to reporesent
nulls or actual nulls...).
If someone explicity sets something that happens to match a defalt
then it SHOULD get written into the SLD so a simple check to see if
values == default would not be enough.
James
>
> Q: Do you guys need the defaults to be available? Would this work ...
> public interface PointSymbolizer extends Symbolizer {
> public static final PointSymbolizer DEFAULT = new PointSymbolizer(){
> ... implemented to return the defaults ...
> ... and throw an exception when added to something ...
>
> Later,
> Jody
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel