I want to interpolate a polygon between two polygons (one contained inside of the other). Right now I am using a very cumbersome way to do this, and I wanted to ask if anybody had any other idea or suggestion I could investigate to achieve this.
Right now what I do is:
- project polygons into a raster (matrix) and assign a value of 0 to the raster cells where the inner perimeter lays, and a a value of 1 where the outer perimeter lays.
- Interpolate values at every cell in the raster (I use an inverse distance algorithm)
- Use a Polygonizer function over the raster to obtain the perimeter at a given value between 0 and 1
Right now I do not use any library to do theses steps but I could work with things like Nettopologysuite, GDAL, Arcgis-runtime if it was necesary. Thanks.
The polygons are 2D and represent isolines of the terrain (contour lines with same height). So I basically have a mountain isoline at 100m and 1000m, and I want to compute the isoline at 300m interpolating the other two.