Finding NearestPoint based on direction

340
1
06-26-2020 10:32 AM
BrianBulla
Occasional Contributor III

Hi,

So I'm working on a bit of code to visualize sewer service connection from field CCTV data.  In the example below, there should be 5 connection on the selected sewer line.  I can add those to the map (red squares...see below) as a MapOverlay without any issues.  

I am now stuck at how to determine the nearest point on the Parcel fabric (polygon layer) because I need to now draw a line (see the hand drawn blue lines below) that goes from the connection point (red square) to the nearest point of the parcel fabric, but using the 'Clock' value as a guide for knowing which direction the sewer connection line is going.

Does that make any sense??  I see there is a NearestPoint in the GeometryEngine, but I'm not sure how to select the nearest parcel in a given direction.

0 Kudos
1 Reply
BrianBulla
Occasional Contributor III

Hi there.  Just getting back to this issue after moving on to other things.  Just wondering if there might be some new tools in the current SDK that might help with this.

Just looking to find the nearest point on the parcel fabric for each of the red points, so I can draw a line from the red point to the parcel fabric.

0 Kudos