JavaScript API: point for any length along a polyline?

1245
2
Jump to solution
08-11-2016 12:16 PM
FredSpataro
Occasional Contributor III


Hi All,

Is there a method anywhere that I might be missing that will return a point for any length (or percent) along a polyline?

Doesn't seem like it's in the new(ish) geometry engine or the original AGS geometry service or on the polyline class (arcpy has it there).  I could create a service to do it but my workflow will need to do it a LOT so the service isn't really efficient for this scenario. 

It's probably an easy algorithm but seems like it would already be there or maybe someone already has a demo algorithm to share?

Thanks

Fred

0 Kudos
1 Solution

Accepted Solutions
FC_Basson
MVP Regular Contributor
2 Replies
FC_Basson
MVP Regular Contributor

Have a look at the answer provided by Joel Bennett in this post: https://community.esri.com/message/525576#comment-525576

FredSpataro
Occasional Contributor III

Thanks!

That's it... not sure how my search didn't pick it up.  I started a version just before you posted and it's basically the same. Not sure why this isn't in the api to begin with...

0 Kudos