New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose option to set split type #181

Closed
MikeMillerGIS opened this Issue Jan 27, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@MikeMillerGIS
Member

MikeMillerGIS commented Jan 27, 2017

Expose option to control how the split is performed. By default, the split first trys to split a feature by shorting the existing segment and add a new feature for the shorter piece and if fails, does the following.

Setting the following tag to true, which is the default in the config file, will attempt the split and update,
Setting the follwong tag to false deletes the existing feature and adds two new features.

Note: Make sure to turn off Suspend AA on Split if you want to fire the AA on the new/changed features


<MergeSplitGeoNetFeatures>
    <!--Option to control how the split is performed.  True trys to split a feature by shorting the existing segment
      and add a new feature for the shorter piece.  False deletes the existing feature and adds two new features.  Make sure to 
      turn off Suspend AA on Split if you want to fire the AA on the new/changed features
    -->
    <SplitUpdateAndAdd>true</SplitUpdateAndAdd>

@MikeMillerGIS MikeMillerGIS self-assigned this Jan 27, 2017

@MikeMillerGIS MikeMillerGIS added this to the Feb 2017 Release milestone Jan 27, 2017

MikeMillerGIS added a commit that referenced this issue Feb 13, 2017

@MikeMillerGIS

This comment has been minimized.

Member

MikeMillerGIS commented Feb 15, 2017

Option to control how the split is performed when using the Add Point and Split Intersecting Line construction tool or the Split Line at Points tool on the Water/Gas Editing Toolbar. True first attempts to reshape the existing feature and add a new one. There are scenarios where this is not valid and it falls back on a delete and two adds. Specifing False performs the delete and adds first.

You can use this in conjunctions with the Generate ID AA rule.

If suspend AA is off, the Generate ID or any rule will not trigger

Scenario 1: When I split a feature, I want two new IDs
The value method for the Generate ID should only be set to On_Create. The value info will look like this, WATERMAIN|0|[seq]-main|False. The key is the last option to not preserve the ID as a split operations copies the existing features information to the new features. You will want to use
<SplitUpdateAndAdd>false</SplitUpdateAndAdd>

Scenario 2: When I split a feature, I want to maintain the existing IDs, but want two new records
The value method for the Generate ID should only be set to On_Create. The value info will look like this, WATERMAIN|0|[seq]-main|True. The key is the last option to not preserve the ID as a split operations copies the existing features information to the new features.
<SplitUpdateAndAdd>false</SplitUpdateAndAdd>

Scenario 3: When I split a feature. I want one new record and the largest part of the old to be the existing record. this will maintain the ID on the existing feature and add a new one for the new segment
WATERMAIN|0|[seq]-main|False.
<SplitUpdateAndAdd>True</SplitUpdateAndAdd>

Scenario 4: When I split a feature. I want one new record and the largest part of the old to be the existing record. this will maintain the ID on the existing feature and new feature
WATERMAIN|0|[seq]-main|True.
<SplitUpdateAndAdd>True</SplitUpdateAndAdd>

@pLeBlanc93

This comment has been minimized.

Contributor

pLeBlanc93 commented Feb 16, 2017

added a workflow page to AA explaining the 4 scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment