Using gt 2.5.2 ..
I assume that the method org.geotools.styling.Style.setDefault(true)
should result in the tag <IsDefault>true</IsDefault> but it does not
show up in a serialized SLD.
I've also deserialized a SLD XML document that has the
<IsDefault>true</IsDefault>, output again through serializing and the
tag is gone.
Am I missing something here or is this a bug?
Regards,
Björn Harrtell
Björn Harrtell ha scritto:
Using gt 2.5.2 ..
I assume that the method org.geotools.styling.Style.setDefault(true)
should result in the tag <IsDefault>true</IsDefault> but it does not
show up in a serialized SLD.
I've also deserialized a SLD XML document that has the
<IsDefault>true</IsDefault>, output again through serializing and the
tag is gone.
Am I missing something here or is this a bug?
Most probably a bug, afaik nothing in GeoTools is using that
flag, so an oversight is quite likely.
Please open a bug report in jira
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Hi, I created GEOT-2297 for this issue.
I also found a similar issue description and supposed fix at GEOT-1528
- which makes me wonder what has happend since then.
I generate SLD that is used in dynamic WMS+SLD requests, where I need
this tag (I guess?).
Regards,
Björn Harrtell
On Wed, Jan 21, 2009 at 19:32, Andrea Aime <aaime@anonymised.com> wrote:
Björn Harrtell ha scritto:
Using gt 2.5.2 ..
I assume that the method org.geotools.styling.Style.setDefault(true)
should result in the tag <IsDefault>true</IsDefault> but it does not
show up in a serialized SLD.
I've also deserialized a SLD XML document that has the
<IsDefault>true</IsDefault>, output again through serializing and the
tag is gone.
Am I missing something here or is this a bug?
Most probably a bug, afaik nothing in GeoTools is using that
flag, so an oversight is quite likely.
Please open a bug report in jira
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Björn Harrtell ha scritto:
Hi, I created GEOT-2297 for this issue.
Do you also happen to have a patch and a test case? 
I also found a similar issue description and supposed fix at GEOT-1528
- which makes me wonder what has happend since then.
That is parser side, not the SLD generation side. GeoServer does
not generate SLD so I did not check the generator.
I generate SLD that is used in dynamic WMS+SLD requests, where I need
this tag (I guess?).
Not really, it depends. That tag is used in library mode only you
specify multiple styles that can be used against a certain layer, in
that case the default one is used. But if you specify just
one, that's the one which is going to be used.
At least, that's what I remember, haven't checked.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.