i worked in arcgis pro 2.4 , i need use attribute rule to make split feature line by feature point at intersect . how can i do that ?
Hi Aliaa Ossama ,
There is an interesting blog here that could be a good starting point: Advanced Attribute Rules – Editing features on another class with attribute rules
Dear Xander ,
thanks for your reply , this link is very useful , but i can't adopt the expression in my case
Michael Miller has a GitHub repository with numerous Arcade examples for Atrribute Rules. Please have a look. For example this one: arcade-expressions/UpdateIntersectingFeature.md at master · MikeMillerGIS/arcade-expressions · GitHub
In your case you will have to select the feature that intersects and actually do the split using Intersection of the two geometries. Then perhaps update the geometry (and attributes?) with the first part and add the second part, or just add the two parts and delete the old line geometry.
Hi Xander ,
the following expression i can not understand 100%
var all_devices = FeatureSetByName($datastore, "WaterDevice", ["globalid"], true)var devices = Intersects(all_devices, $feature)var updates = []var i=0for (var device in devices){ updates[i++] = {'globalid': device.globalid, 'attributes': {'linevalue': $feature.ValueToCopy} }}return { 'result': $feature.ValueToCopy, 'edit': [{ 'className': 'WaterDevice', 'updates': updates }]}
in my case i have feature line i need split it by feature point intersect it , in previous code ;
1- where Put this expression ( in line feature class) ?
2- all device that mean point feature class ?
3- this expression create new feature or edit and split in existing feature
sorry , i have low experience in arcade expression
Great idea for an AR. I can see us using this for placing a valve on a water main. Love a good challenge too. This works in my very limited test. Needs some more work and some polish.
arcade-expressions/SplitIntersectingLine.md at master · MikeMillerGIS/arcade-expressions · GitHub
Hi mmiller-esristaff ,
Very cool example of an expression! Thanks for sharing. Do you think that in the future there will be a standard geometry function in Arcade for this?
Not sure, but I would suggest logging the enchanvcement if you want it
I thought of a new way to do the split using the cut function. Check out the updated version in git(cut_line_at_point_cutter)
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.