Hello Geoserver developers,
There seems to be a problem in the SLD Label renderer of Geoserver-1.5.4a.
If I have a TextSymbolizer that specifies:
<Label>blah <ogc:PropertyName>featureName</ogc:PropertyName> blah</Label>
only the value of the featureName property is shown in the label (no
blah's). If I have:
<Label>
<ogc:PropertyName>featureName</ogc:PropertyName>
<ogc:PropertyName>featureText</ogc:PropertyName>
</Label>
only the value of the featureName property is shown in the label (not
the featureText property).
At the top of p. 34 of
http://portal.opengeospatial.org/files/?artifact_id=1188
it says:
<Label>This is city "<ogc:PropertyName>NAME</ogc:PropertyName>"
of state <ogc:PropertyName>STATE</ogc:PropertyName></Label>
So this should be possible, no?
Kind regards,
--
-- Gertjan van Oosten, gertjan@anonymised.com, West Consulting B.V., +31 15 2191 600
Gertjan van Oosten ha scritto:
Hello Geoserver developers,
There seems to be a problem in the SLD Label renderer of Geoserver-1.5.4a.
If I have a TextSymbolizer that specifies:
<Label>blah <ogc:PropertyName>featureName</ogc:PropertyName> blah</Label>
only the value of the featureName property is shown in the label (no
blah's). If I have:
<Label>
<ogc:PropertyName>featureName</ogc:PropertyName>
<ogc:PropertyName>featureText</ogc:PropertyName>
</Label>
only the value of the featureName property is shown in the label (not
the featureText property).
At the top of p. 34 of
http://portal.opengeospatial.org/files/?artifact_id=1188
it says:
<Label>This is city "<ogc:PropertyName>NAME</ogc:PropertyName>"
of state <ogc:PropertyName>STATE</ogc:PropertyName></Label>
So this should be possible, no?
It should, but we never had the support for mixed content expressions
in SLD.
The good news is that Mauro Bartolomeoli contributed a patch to support
it lately, so it should be working ok in GeoServer 1.6.0rc2 (and in
1.5.x branch too, but there won't be a 1.5.5 release leveraging it).
http://jira.codehaus.org/browse/GEOT-1547
Cheers
Andrea
Gertjan van Oosten wrote:
Hello Geoserver developers,
There seems to be a problem in the SLD Label renderer of Geoserver-1.5.4a.
If I have a TextSymbolizer that specifies:
<Label>blah <ogc:PropertyName>featureName</ogc:PropertyName> blah</Label>
only the value of the featureName property is shown in the label (no
blah's). If I have:
<Label>
<ogc:PropertyName>featureName</ogc:PropertyName>
<ogc:PropertyName>featureText</ogc:PropertyName>
</Label>
The syntax you are using to express labels (called mixed syntax, because you have free text mixed with OGC expressions) is not supported on GeoServer 1.5.x. This should be fixed on GeoServer 1.6.x (as you can see here. http://jira.codehaus.org/browse/GEOS-1442).
Mauro Bartolomeoli
Hi Andrea, Gabriel,
As quoted from Andrea Aime <aaime@anonymised.com>:
> <Label>This is city "<ogc:PropertyName>NAME</ogc:PropertyName>"
> of state <ogc:PropertyName>STATE</ogc:PropertyName></Label>
>
>So this should be possible, no?
It should, but we never had the support for mixed content expressions
in SLD.
The good news is that Mauro Bartolomeoli contributed a patch to support
it lately, so it should be working ok in GeoServer 1.6.0rc2 (and in
1.5.x branch too, but there won't be a 1.5.5 release leveraging it).
http://jira.codehaus.org/browse/GEOT-1547
Is there a 1.5.x snapshot available for download somewhere?
[I tried http://geo.openplans.org/nightly/1.5.x but nothing's there.]
Kind regards,
--
-- Gertjan van Oosten, gertjan@anonymised.com, West Consulting B.V., +31 15 2191 600
Gertjan van Oosten ha scritto:
Hi Andrea, Gabriel,
As quoted from Andrea Aime <aaime@anonymised.com>:
<Label>This is city "<ogc:PropertyName>NAME</ogc:PropertyName>"
of state <ogc:PropertyName>STATE</ogc:PropertyName></Label>
So this should be possible, no?
It should, but we never had the support for mixed content expressions
in SLD.
The good news is that Mauro Bartolomeoli contributed a patch to support
it lately, so it should be working ok in GeoServer 1.6.0rc2 (and in
1.5.x branch too, but there won't be a 1.5.5 release leveraging it).
http://jira.codehaus.org/browse/GEOT-1547
Is there a 1.5.x snapshot available for download somewhere?
[I tried http://geo.openplans.org/nightly/1.5.x but nothing's there.]
No, nightly builds are no more available as far as I know. We had a problem with the build servers, and they have been completely redone.
Justin, do you know if nightly builds are available anywhere today?
Anyways, 1.5.x nightlies are not supposed to be there anymore,
since the 1.5.x branch is dead.
Cheers
Andrea
No, nightly builds are no more available as far as I know. We had a
problem with the build servers, and they have been completely redone.
Justin, do you know if nightly builds are available anywhere today?
Anyways, 1.5.x nightlies are not supposed to be there anymore,
since the 1.5.x branch is dead.
You can grab nightly builds from traffic:
http://traffic.openplans.org/geoserver
But as Andrea states, 1.5.x nightlies are not being generated anymore.
-Justin
Cheers
Andrea
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
!DSPAM:4007,477e1f25314772090977483!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
If you wish, here (http://jira.codehaus.org/browse/GEOT-1547) you can find patches for GeoTools (2.3.4, 2.4.x and trunk) to implement mixed syntax. You can, if you like, apply the patches to GeoTools sources, build and substitute the generated jar (gt2-main) to your Geoserver WEB-INF/lib folder.
Gertjan van Oosten wrote:
Hello Geoserver developers,
There seems to be a problem in the SLD Label renderer of Geoserver-1.5.4a.
If I have a TextSymbolizer that specifies:
<Label>blah <ogc:PropertyName>featureName</ogc:PropertyName> blah</Label>
only the value of the featureName property is shown in the label (no
blah's). If I have:
<Label>
<ogc:PropertyName>featureName</ogc:PropertyName>
<ogc:PropertyName>featureText</ogc:PropertyName>
</Label>
only the value of the featureName property is shown in the label (not
the featureText property).
At the top of p. 34 of
http://portal.opengeospatial.org/files/?artifact_id=1188
it says:
<Label>This is city "<ogc:PropertyName>NAME</ogc:PropertyName>"
of state <ogc:PropertyName>STATE</ogc:PropertyName></Label>
So this should be possible, no?
Kind regards,