Select to view content in your preferred language

Split up a polyline into 1 mile long segments

3425
3
Jump to solution
08-08-2012 12:54 PM
SundararajanSarangan
New Contributor
Hi all,

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.

Thanks..
0 Kudos
1 Solution

Accepted Solutions
DominiqueBroux
Esri Frequent Contributor
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.

View solution in original post

0 Kudos
3 Replies
NelsonDe_Miranda
Frequent Contributor
You can use an add-in for ArcGIS called ET-Geowizards:

http://www.ian-ko.com/ET_GeoWizards/UserGuide/et_geowizards_userguide.htm

If you look under the polyline wizards toolkit theres a tool called split polyline that can do this for you.

Note: this add-in is not available for free.

Or you can try using the steps listed in this post:
http://forums.arcgis.com/threads/51921-Splitting-lines-proportionally
0 Kudos
DominiqueBroux
Esri Frequent Contributor
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.
0 Kudos
SundararajanSarangan
New Contributor
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!

Thanks a ton!

Sundar
0 Kudos