Aller au contenu principal

[Possible Bug] Intersect Geometries activity not working for multiple geometries

Terminée

Commentaires

2 commentaires

  • Ken Lyon

    Robin Lin Thanks for reporting this. I can see where the behaviour of Intersect Geometries has changed.

    Workflow 5.47 included an upgrade to a new version of the ArcGIS Maps SDK for JavaScript, and one of the things we changed was to move from using the deprecated intersect method of geometryEngineAsync to the new execute method of intersectionOperator in the Intersect Geometries activity.

    The old method allowed you to intersect an array with a single geometry, but the new one only allows intersecting two geometries. It seems the way we adapted the code didn't quite retain the same behaviour as before.

    Consider using the Intersect Geometries activity with these inputs:

    geometry1 = [a, b, c];
    geometry2 = [d, e, f];

    The old code would have produced this output:

    [
      (intersection of a with d),
      (intersection of b with d),
      (intersection of c with d),
      (intersection of a with e),
      (intersection of b with e),
      (intersection of c with e),
      (intersection of a with f),
      (intersection of b with f),
      (intersection of c with f),
    ]

    The new code produces this output:

    [
      (intersection of a with d),
      (intersection of b with e),
      (intersection of c with f),
    ]

    Unfortunately our unit tests for this activity still passed and we failed to catch this as a regression. I will log a bug to address this and restore the previous behaviour.

     

     

    0
  • Ken Lyon

    Robin Lin This has been fixed in Workflow 5.48.1, which was released today. This should hopefully be included in the next release of VertiGIS Studio Web.

    1

Vous devez vous connecter pour laisser un commentaire.