On Wed, Mar 30, 2011 at 7:13 PM, Gis Mage <[email protected]> wrote:
> 1. White line in the middle won't do - the symbol has to be hollow in the
> middle.

Then try hollow symbol + graphic symbolizer + dash array
There are some examples using markers in my FOSS4G 2011 presentation
here:
http://2010.foss4g.org/presentations/3588.pdf
though in your case you will probably want to use a transparent png as
the symbol.

The tool to do what you want the right way is.... guess what? Perpendicular
line computation, the same you need for curved labels at a distance from
the line.
I looked at existing open source implementation and they all fail spectacularly
in some case or ther other, generating loops or very long spikes when the
curve turns sharply or there are segments shorter than the offset distance
(not hard to get either, just zoom out and almost every line will become
very badly behaved).

> 2. That's very very sad. Maybe there is a workaround with geometry
> functions?
> There is a "drop shadow" example where geometry is offset from the original.
> So can I just offset a river and put a TextSymbolizer with followline in it?

It will never be really perpendicular, it may be perpendicular on the
"main direction"
of the river but at the first turn it will stop being so.
Geometry functions just apply some geometry math: the single side buffer,
aka perpendicular line, is something we just don't have.

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to