Hy Chris,
If you can understand french, I found a tutorial on a blog about this
question, some weeks ago. As Edward wrote it, you cna do it with
buffers, and then display it wih different opacities.
Here is the article : http://simonmercier.net/blog/?p=1214
He creates buffers that do not overlap ("ring" buffers) on the server
side, and then applie transparency and color with MapServer.
Gabriel
On 11/01/2013 14:34, Chris Haste wrote:
Thank you, Edward.
I wouldn't want to end up with the polygon being smaller, so would
that approach still work if a positive value was used?
*From:*Edward Mac Gillavry [mailto:emacgilla...@hotmail.com]
*Sent:* 11 January 2013 13:24
*To:* geoserver-users@lists.sourceforge.net
*Subject:* Re: [Geoserver-users] Polygons with outlines using gradients
Chris,
My approach would be to use the geometric transformation "buffer"
several times on the polygon. Using a negative value, you would get
polygons smaller than the input area. with every transformation you
set a different colour to achieve a fading line effect, though
generated using polygons.
Kind regards,
Edward
------------------------------------------------------------------------
From: cha...@airdata.co.uk
To: geoserver-users@lists.sourceforge.net
Date: Fri, 11 Jan 2013 08:10:38 -0500
Subject: [Geoserver-users] Polygons with outlines using gradients
Hello all,
Is it possible to style polygons so that their outline appears as a
gradient? I'd like to define a coastline, for example, using a line
that is, say 5 pixels wide, but whose colour fades to transparent. The
gradient should be oriented with the solid colour closest to the
inside of the polygon and the lighter colour furthest away from the
polygon.
Not the best explanation, but hopefully you will understand what I mean!
Thanks
Chris
*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended
recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its
affiliates
may be monitored for quality assurance and compliance purposes.***
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much
more. Get web development skills now with LearnDevNow - 350+ hours of
step-by-step video tutorials by Microsoft MVPs and experts. SALE
$99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________ Geoserver-users
mailing list Geoserver-users@lists.sourceforge.net
<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users