Now we are digitizing some buildings in specified area. The obligatory rule for this work - in most cases buildings should have right angles. We are using QGIS with CAD tools for this work. But sometimes we make mistakes and create polygons with an irregular shape. Does anybody know how can we find such polygons without right angles using open GIS or ArcGIS?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
I don't know of an existing tool to do this but you can write one in ArcPy or using GDAL/OGR along the following lines:
|
|||||
|
|
Below is one possible approach. The function returns true or false depending if the polygon has any angles below a certain size or is within a range around a target angle. Just keep in mind this is a very simple approach and assumes straight line digitizing. I do test for a circle, but do not test for curves or other possibilities that could trip up the function. angleTarget = desired angle (ex. 90). edgeVariance = allowable waffle of straight line (ex. 0.5 degree direction change allowed). angleVariance = allowable deviation of desired angle (ex. 1 if 91 degrees is OK). Brian
|
|||
|
|

