Hello,
I want to draw a 2000 meter (=2 km) line in Arcgis Java. I looked tutorials and other sources but can not find a sample code anywhere about creating a line with specific length. What do you advise me?
Thanks
Given a starting point (lat, lon), distance, and angle to a destination point, you could calculate the destination (lat,lon) using a formula like the one mentioned here http://stackoverflow.com/questions/7222382/get-lat-long-given-current-point-distance-and-bearing .
Once you know the lat,lon of the starting and destination points, you could create a Polyline.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.