Skip to content

Commit

Permalink
add check for empty orig gemo
Browse files Browse the repository at this point in the history
first comparison
  • Loading branch information
MikeMillerGIS committed Oct 28, 2022
1 parent b4af1b4 commit 1b08cfa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions attribute_rule_calculation/SplitIntersectingLine.md
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ function get_first_new_vertex(new_geom, orig_geom) {

var new_vertex = null;
// Length of paths must be the same
if (Count(orig_geom.paths) != Count(orig_geom.paths)) {
if (Count(orig_geom.paths) != Count(new_geom.paths)) {
return null;
}
for (var i in new_geom.paths) {
Expand Down Expand Up @@ -734,7 +734,10 @@ function get_first_new_vertex(new_geom, orig_geom) {
}

var current_geom = Geometry($feature);
var orig_geom = Geometry($OriginalFeature);
var orig_geom = Geometry($originalFeature);
if (orig_gemo == null){
return;
}
if (Equals(orig_geom, current_geom))
{
return
Expand Down

0 comments on commit 1b08cfa

Please sign in to comment.