PSU-CSAR / vb-bagis

Source code for BAGIS V3 ESRI Add-In
0 stars 1 forks source link

Site Scenario fails if > 1 feature in aoi_v feature class #71

Closed lbross closed 5 years ago

lbross commented 5 years ago

This occurs if the aoi feature class because polygons that touch by a corner (without sharing edges) are considered as connected. This is not uncommon in watershed analysis. To work around this, we will buffer the aoi_v feature class 0.5 meters and use that to clip the actual and pseudo represented area. This requires a new BA_ClipFeatureClass method because all of our existing methods have the location of the clip feature class built into them. This new method takes the feature class as an argument. Also I noticed that the flag that controls whether or not scenario 2 calculates was not set correctly for the initial form load.

lbross commented 5 years ago

Removed BA_ClipFeatureClass method. Updated existing BA_ClipAOIVector and BA_ClipAOIRaster to check for multiple polygons if using the unbuffered AOI vector. If there are multiples, create a temporary buffer file at 0.5 meters for the clipping.