Eu gostaria de poder clicar em um ponto inicial e em um ponto final e ter uma linha desenhada entre esses 2 pontos que seja deslocada a uma distância entre os 2 pontos (10') e angulada no ponto inicial a 45 graus.<\/P>
<\/P><\/BODY><\/HTML>
Hey James,
This does clarify things. Thank you. I would start by looking at the ArcGIS API for Python Guide. In the API reference, there is a section on geometry and then offsets. arcgis.geometry module — arcgis 1.2.4 documentation.
The angle into the starting point could be accomplished with some trig. Esri has a geonet community for the ArcGIS API for Python at Python . You will find people there who are more skilled in customization.
If I find more resources, I will let you know.
Sincerely,
Joe
Will you provide some background to the workflow this is aimed for?
Thanks,
Joe,
I work for an electric utility. In our GIS, we draw our primary (high voltage) overhead conductor by simply snapping it to each pole (the green circles in the screenshot from my original post). When we draw our secondary (low voltage) conductor, we offset that conductor by a distance of 10' from the primary conductor for visual clarity. In the screenshot from my original post there is no primary overhead conductor but we would still draw the secondary conductor with the same 10' offset. Angling into the pole of origin at 45 degrees allows us to easily see where the line begins.
I am currently using a combination of segment deflection (to create the 45 degree angle) and the "trace" tool to create the offset. This is working fine but I would like to find out how to create a custom command to make the process easier. Maybe scripting a command in python or in visual basic (I have little experience in either of these)?
I hope this helps clarify things and thanks for your interest,
James
Thanks for interest. I posted this same reply on GeoNet but I thought I’d also reply to this email for your convenience……
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.