4

I am doing a project for an organization using OL. I was successful in creating buffers around a point for a given radius, but I was just shocked from their response,they just asked me is there a chance to create a amoeba shaped(no definite shape) object(just like circle,polygon) and project it on the map. I was stunned and couldn't even reply them 'NO'; As far as I know its impossible to create a amoeba shape.

If at all if there is a chance to create a shape like that then what are the requirements to be known?? like radius for a circle, number of sides with angle for a polygon etc........

Is it possible to create such a shape???

Vikash Talanki
  • 993
  • 1
  • 11
  • 23

3 Answers3

10

Maybe generate random points within an envelope, generate an alpha shaped polygon from the points, then remove the interior rings.

From Edelsbrunner's paper.

enter image description here

With the interior islands removed, these would look like amoebas to me.

Kirk Kuykendall
  • 25,787
  • 8
  • 65
  • 153
2

If you have a steady hand you can draw amoeba shapes on the map with the Path Handler: http://dev.openlayers.org/docs/files/OpenLayers/Handler/Path-js.html

If you want to use code to generate "amoeba shapes" programatically, then the Path handler is not what you want.

mwalker
  • 5,752
  • 25
  • 32
2

I'm with whuber. Georeference an image to the approximate scale of your buffer and digitze the outline off of the image. This really shouldn't take very long. Is this purely for graphic reasons?

Dano
  • 2,368
  • 1
  • 26
  • 33