[mapserver-users] Border style of polygon

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Tue May 29 07:29:13 PDT 2012


The geomtransform Thomas mentions below is currently supported. It was added as part of RFC 64. Give it a try...

RFC 72 will likely be in the next release.

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort
Sent: Tuesday, May 29, 2012 4:09 AM
To: Denis Rykov
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Border style of polygon

No, this is currently not possible.
http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your issue, with that you could do:

style
  outlinecolor 255 0 0
  geomtransform (buffer([shape], -1))
end
style
  outlinecolor 255 0 0
  width 1
  geomtransform (buffer([shape], 1))
end

I have no idea of the timeframe expected for rfc72's implementation, maybe Steve can give you some info on that.

On Tue, May 29, 2012 at 10:58 AM, Denis Rykov <rykovd at gmail.com> wrote:
> Thanks for quick response!
>
> Are any ways to draw internal line (255 255 255 color in your example) 
> with transparency (-1 -1 -1 doesnt work, in this case I see red line, 
> but I would like to see underlying layer).
>
>
> On Tue, May 29, 2012 at 3:49 PM, thomas bonfort 
> <thomas.bonfort at gmail.com>
> wrote:
>>
>> something like this should work, with no "symbol"
>>
>> style
>>  outlinecolor 255 0 0
>>  width 3
>> end
>> style
>>  outlinecolor 255 255 255
>>  width 1
>> end
>>
>> --
>> thomas
>>
>> On Tue, May 29, 2012 at 10:45 AM, Denis Rykov <rykovd at gmail.com> wrote:
>> > I have WMS polygonal layer and want to draw polygon's border with 
>> > the following style:
>> >
>> > http://i.stack.imgur.com/J2A7x.png
>> >
>> > My symbol's description:
>> >
>> > SYMBOL
>> >   NAME "double_line"
>> >   TYPE vector
>> >   POINTS
>> >     0 0 1 0 -99 -99 0 1 1 1
>> >   END
>> > END
>> >
>> > CLASS section in mapfile:
>> >
>> > CLASS
>> >   STYLE
>> >     OUTLINECOLOR 255 0 0
>> >     SYMBOL 'double_line'
>> >     SIZE 3
>> >     WIDTH 1
>> >   END
>> >
>> > But in this case you can see self intersection in polygon's edge:
>> >
>> > http://i.stack.imgur.com/5Etem.png
>> >
>> > What is the righ way to get correct border style?
>> >
>> > _______________________________________________
>> > mapserver-users mailing list
>> > mapserver-users at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>
>
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the MapServer-users mailing list