I have a method that I want to trigger only if a drawn line touches/crosses 2 points on a polygon.
I've tried the following using my geometry service
var params:RelationParameters = new RelationParameters();
params.geometries1 = [reshapeLine];
params.geometries2 = [feature.geometry];
params.spatialRelationship = RelationParameters.SPATIAL_REL_RELATION;
params.comparisonString = "g1 CROSS g2";
this.geometryService.relation(params);
But the returned results are not showing me whether the line cross/touches the polygon at 2 points or one.
How can I deduce whether the line crosses the polygon at two points?