Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a polyline, and i want to add point (vertex) on a specific distance, like two meters for example.

How can i do that?

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

You should use the IPolyCurve:SplitAtDistance Method. This

Adds a new vertex point to the curve at a specified distance from the From point of the curve. For a split to happen, the split distance must be between the From and To points of the polycurve.

Just remember to set the CreatePart to false. This way the polyline will not be split, but just a new vertex added.

share|improve this answer
add comment

There are existing tools to densify polylines. For example this link for ArcMap 10 however you indicate Arcobjects in your tag line, so this may not be appropriate for your situation.

share|improve this answer
    
Thanks, but this not what i am looking for. i need to add one point like when i using lnk.AddPoint(); but for a specific distance. :) –  RASHOMON Nov 18 '12 at 13:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.