Hello List,
I would like to display my polygon features with a “hatching label” style. I guess there is already support for line hatching, but what I’m looking for a way to display labels with the same orientation (e.g. 45 degree) instead of the lines.
Is there a way to extend the SLD style behavior in geoserver? Maybe there is a vendor option for TextSymbolizers I cound find.
Do you have any sugesstions?
Frank
On Wed, Oct 13, 2010 at 10:13 PM, Frank Gasdorf
<fgdrf@anonymised.com> wrote:
Hello List,
I would like to display my polygon features with a "hatching label" style. I
guess there is already support for line hatching, but what I'm looking for a
way to display labels with the same orientation (e.g. 45 degree) instead of
the lines.
Is there a way to extend the SLD style behavior in geoserver? Maybe there is
a vendor option for TextSymbolizers I cound find.
Do you have any sugesstions?
This is a question for the users list.
In any case, you may try with a mark made out of TTF symbols... not sure
if that will work, never tried it out that way.
See the extra slides at the very end of the document in my FOSS4G 2010
presentation:
http://presentations.opengeo.org/2010_FOSS4G/GeoServerCartographic.pdf
Oh, I suggest to use GeoSever 2.1 beta for these experiments, graphic
marks rendering has improved visibly in 2.1 beta.
Cheers
Andrea
-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584962313
fax: +39 0584962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-----------------------------------------------------
Oh, there is a geoserver user list out there? Where can I subscribe it?
I think the TTF would not work if the label should be a Property of the Feature, does it?
I started working with the 2.1 beta and the first experience is quite good.
Is there an other way to extend geoserver rendering behavior pragmatically? Like a Pre and Post Feature renderer that could be registrated. Any interfaces for this?
Thanks, Frank
2010/10/14 Andrea Aime <andrea.aime@anonymised.com>
On Wed, Oct 13, 2010 at 10:13 PM, Frank Gasdorf
<fgdrf@anonymised.com> wrote:
Hello List,
I would like to display my polygon features with a “hatching label” style. I
guess there is already support for line hatching, but what I’m looking for a
way to display labels with the same orientation (e.g. 45 degree) instead of
the lines.
Is there a way to extend the SLD style behavior in geoserver? Maybe there is
a vendor option for TextSymbolizers I cound find.
Do you have any sugesstions?
This is a question for the users list.
In any case, you may try with a mark made out of TTF symbols… not sure
if that will work, never tried it out that way.
See the extra slides at the very end of the document in my FOSS4G 2010
presentation:
http://presentations.opengeo.org/2010_FOSS4G/GeoServerCartographic.pdf
Oh, I suggest to use GeoSever 2.1 beta for these experiments, graphic
marks rendering has improved visibly in 2.1 beta.
Cheers
Andrea
Ing. Andrea Aime
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584962313
fax: +39 0584962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
On Thu, Oct 14, 2010 at 9:30 AM, Frank Gasdorf
<fgdrf@anonymised.com> wrote:
Oh, there is a geoserver user list out there? Where can I subscribe it?
http://geoserver.org/display/GEOS/Mailing+Lists
I think the TTF would not work if the label should be a Property of the
Feature, does it?
Well, yes and no. If it's a label, nope, if it's just a single char,
yes, it's possible
but you might have to store the char code in the db instead of the char.
See:
http://blog.geoserver.org/2008/12/08/dynamic-symbolizers-part-1/
http://blog.geoserver.org/2008/12/16/dynamic-symbolizers-part-2/
I started working with the 2.1 beta and the first experience is quite good.
Is there an other way to extend geoserver rendering behavior pragmatically?
Like a Pre and Post Feature renderer that could be registrated. Any
interfaces for this?
None like the ones you list. But you can make a custom mark factory that
allows to use a custom label to generate the marks.... with some potential
difficulties. You have to come up with something that can be repeated,
a square or rectangular tile, since that's how the graphic fills are
made in the renderer.
Cheers
Andrea
-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584962313
fax: +39 0584962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-----------------------------------------------------