0

I have a set of polygons and they can overlap with each other, like this: enter image description here

I want to modify them in such a way that they don't overlap and the resulting surface area stays the same. Something like this:

enter image description here

It is okay if the shape or the position changes. The main thing is that they should not overlap with each other and the area should not change much (I know the area changed a little in the second image but I drew it manually thus let's just assume that the areas did not change).

I am trying to do it programmatically with the help of Python. Basically I stored polygons in a PostGIS database and with the help of a script I want to retrieve them and modify them.

I am very new to GIS and thus this seems like a difficult task.

What is the correct way of doing it? Is there an algorithm that solves this kind of problems?

  • 1
    You need to clarify a few things: when you say "the resulting surface area stays the same" do you mean the total surface area of the three circles ignoring their overlap, or do you want to create three polygons that have the same area as a circle shown but not overlapping? Are your polygons always circles? Can you draw a diagram with a possible solution for the example given? – Spacedman Jul 07 '18 at 17:15
  • 1
    @Spacedman Polygons don't have to be circles. When creating every single polygon I want to modify it if it overlaps with the existing ones so that it does not and its initial area does not change. Not all of them combined. Just the one I am creating. I will try to draw a possible solution. Thank you. – Jahongir Rahmonov Jul 07 '18 at 17:22
  • @Spacedman some general direction would also help a lot. A newbie I am, I feel clueless now :) – Jahongir Rahmonov Jul 07 '18 at 17:23
  • 1
    Yes, if you can draw what you want it would help a lot. Also, you don't mention what software you are using or have available. – Mark Ireland Jul 07 '18 at 19:07
  • 1
    Something between these lines https://gis.stackexchange.com/questions/215813/increase-each-polygon-area-to-the-same-area/215919#215919 – FelixIP Jul 07 '18 at 20:23
  • @MarkIreland I edited my question to add more details. Can you please take a look once again? Thank you. – Jahongir Rahmonov Jul 07 '18 at 22:13
  • @Spacedman I edited my question to add more details. Can you please take a look once again? Thank you – Jahongir Rahmonov Jul 07 '18 at 22:13
  • I doubt you'll find a generalised solution or algorithm to this problem. However, what would be really useful (and get you closer to a solution at GIS.se) would be to describe exactly how the reshaping of the new polygons would work. For example, is the area allowed to change at all? Would a strange shape with odd tendrils that preserve area be OK, or does it have to be 'regular'? This may well lead to more specific, and better, questions. – Simbamangu Jul 08 '18 at 08:15
  • @Simbamangu strange shapes that preserve area are OK – Jahongir Rahmonov Jul 08 '18 at 08:29

0 Answers0