I have a polygon on my map and I want to resize it in that way I add X km to all of the vertexes. Any idea?
Asked
Active
Viewed 282 times
2 Answers
3
The spatial operation you need is called BUFFER and is implemented in most geographical database managers
Jose Paredes
- 31
- 1
-
+1 for this answer... although a general question is, why don't you just redraw the polygon to the specifications that you want? – Andy TIce Jan 31 '13 at 05:03
obj.geometry.resize(2, obj.geometry.getCentroid() );
instead of 2 there will be x-km. I'm sorry for the misunderstanding...
– user14734 Jan 30 '13 at 22:17