I am looking for some examples/tutorials on how to apply a topology rule to only a selected portion of a shp file using a script in ArcGIS/GRASS.
Using ArcGIS seems to always require an interactive approach - with the topology editor able to highlight exeption and the user can mark them as exeptions. GRASS seems to have much less detailed topology editing capabilities compared to ArcGIS.
I would like to have a script that automatically fixes exceptions or not depending on something like an sql statement or the proximity of exceptions to another vector file. For example, I want to fix dangles in roads everywhere but downtown, because downtown they are purposeful but out of downtown they are mistakes.