azgs-geomapmaker / azgs-toolbar

ArcMap Toolbar developed at the AZGS for generating geologic maps in NCGMP09 format
5 stars 2 forks source link

Cannot apply values to selected features after planarizing lines #18

Open JosephCook opened 10 years ago

JosephCook commented 10 years ago

Planarizing lines is a handy method of splitting a bunch of lines where they intersect. We end up using this a bunch while drawing maps because we make corrections in previously digitized areas based on new imagery or data. It's nice to be able to draw the new line and just split off the old incorrect line segments and delete them. Unfortunately, Once you use the planarizer you can no longer apply values to the planarized (split) lines. This is the error you get when you try

applyvalueserror_072214

I think this error results from the planarizing tool creating duplicate values in the ContactsAndFaults_ID field. Planarized lines result in multiple lines with the same ID. Whatever the root cause, no values can be applied individually or en masse once the lines have been planarized.

smrgeoinfo commented 10 years ago

because we're defaulting to duplicating values on splitting geometry, the 'indentifier' field value is probably getting duplicated when the planarizer splits lines. Is there some event we can catch to update the identifiers when lines are split?

jessicagood commented 10 years ago

This issue is caused by the duplication of the ID field. The code is already in place, written by Ryan or Genhan I think, to grab the next ID value and write that in as the ID for each new line segment (see L149). It does look like it's working as it's supposed to when stepping through the code but the new ID value isn't stored.

According to the Esri docs planarizing normally would bypass the OnCreateFeature and Store mechanisms but code is in place (see L116), also written by Ryan or Genhan, to force these to be run. OnCreateFeature does run but Store must not be working correctly. See these Esri docs:

Unable to figure what's wrong with it so far ...

jessicagood commented 10 years ago

Posted issue in the ESRI forums on 8/3/2014 here. No answers yet.