Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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. :) – IBRA Nov 18 '12 at 13:32

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.