[OpenLayers-Users] offset polygon

Steve Nelson snelson at webapper.com
Fri May 4 16:32:55 EDT 2012


I found it. It works like a charm. Thanks Stephen!

Steve

On Fri, May 4, 2012 at 3:48 PM, Steve Nelson <snelson at webapper.com> wrote:

> I see what you mean. For this project, true offset isn't important.
> Resizing is perfect. Is there a built in function for resizing?
>
> Steve
>
>
> On Fri, May 4, 2012 at 2:10 PM, Stephen Woodbridge <
> woodbri at swoodbridge.com> wrote:
>
>> On 5/4/2012 11:26 AM, Steve Nelson wrote:
>>
>>> Does anyone have a function that can create an offset polygon?
>>>
>>> In other words, if I have a polygon made up of 5 points have the same
>>> polygon shape, just a larger size?
>>>
>>
>> Hi Steve,
>>
>> These are not the same thing.
>>
>> If you want the same shape only larger then you are looking a scale.
>> If you want and offset, this is MUCH more complicated because you have to
>> deal with changes in topology, like if you have a small V shape then you
>> offset might cause these to be removed like:
>>
>> ----------------- offset
>>
>> ------\  /------- curve
>>       \/
>>
>> or if your polygon has a hole then an offset could result in a smaller
>> hole or with the hole getting filled in and removed. There are many cases
>> like this. These are just a couple of examples to give you the idea.
>>
>> So what DO you need? Resizing via scale is easy, True offset is hard!
>>
>> -Steve W
>> ______________________________**_________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/**mailman/listinfo/openlayers-**users<http://lists.osgeo.org/mailman/listinfo/openlayers-users>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120504/8b8be9eb/attachment-0001.html


More information about the Users mailing list