Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I try to programmatically measure the length of several lines that are not in the same layer at the same time. After that I want to write the individual distances in the form (there is no problem with that ...). Unfortunately, I don't know how to write a method that would measure individual lines for me.

What I have tried:

namespace ProAppModule1
{


internal class Delka: Button
{
   
    protected override void OnClick()
    {
        Form1 form = new Form1();       
        double length = new double();
        lenght = GeometryEngine.Instance.Length(Polyline);//here line measurement
        form.richTextBox1.Text = length.ToString();
        form.Show();
    }
}
}


I will be happy for any advice or help.

Thank you.
Posted
Updated 21-Jul-21 19:59pm
v2

1 solution

Don't ask a question that way: make a list of your actual questions, describe what your problem is with each, and explain what you have tired to fix it.
Then post that as your question.
Quick Answers isn't a "discussion forum", it's here for "I got this problem" - "here's how to fix it" question / answer sessions.
We do have forums for discussions - loads of 'em - but you'd probably be better asking such question of the people who created it: GIS Mapping Software, Location Intelligence & Spatial Analytics | Esri[^] - they have a dedicated community forum which is probably a better fit for "general" questions about the basics than a "generic" software development website like this would be: Esri Community | GIS Professional Community[^]
 
Share this answer
 
Comments
Member 15170612 22-Jul-21 1:58am    
Thank you, I will write specifically.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900