I am developing this application where I receive a polyline (which are really routes) as graphic features from a query task. Once this is received, I create a buffer around it and then do a spatial query for stuff that fall inside that buffer.
So far it works fine, but I also need to be able to split the route into segments of 1 mile length, so that when the user specifies that (s)he only needs stuff from say mile-point 3 to mile-point 5, I query only along that sub-section of the entire polyline.
Essentially, I need to be able to split the polyline into smaller segments based on distance along the ground.
I've tried searching for similar stuff that has been done before, but I'm still pretty confused.
Is there any simple way to do this from clientside?
Or should I use arcobjects as some people seem to have done? (If so how do i go about doing that?)
I'm pretty much new to using Arcgis, so please pardon if i've overlooked something blindingly obvious.
I just added a sample with a class extension allowing to get a linear position along a line and to split up a polyline into a line between 2 linear positions.
I just added a sample with a class extension allowing to get a linear position along a line and to split up a polyline into a line between 2 linear positions.
I just added a sample with a class extension allowing to get a linear position along a line and to split up a polyline into a line between 2 linear positions.
Dominique, thank you very much for replying! At that time I had eventually abandoned this task and had moved on to other things that I could get done immediately. Now I'm back to doing this. I tried the demo you had linked to and it is just wonderful. I'll try doing it that way right away!