I want to get the perimeter of each polygon (building) I have. Some polygons are adjacent, thus sharing a side. Shared sides should be excluded from the calculation for each polygon. In simpler words: I need to get the exposition perimeter (and then the surface) of each building. One workaround I came up with is:
- get the lines from the polygon and assign to these line features the polygon ID. No matter which ID gets assigned to the shared sides.
- create a dissolved layer of these polygons so that adjacent polygons are merged into one, then get a negative buffer. The buffering should be as tight as possible (smaller than the smallest polygon).
- use this negative buffer to exclude the intersected lines, which should only be the shared sides.
Is there a more straightforward and possibly safer approach to get perimeters without shared sides?

