POST
|
Thank you for the response Morten Nielsen, As per your suggestion we would like to use the GeometryEngine.LengthGeodetic method to find the length of a polyline between two points. Please note that GeometryEngine.LengthGeodetic expects poly line as a parameter. Could you please explain how do we split the above long poly line into parts at each points as small poly lines or links so that we can calculate the distance for each small poly line or link. Thanks in advance.
... View more
02-28-2019
04:49 AM
|
0
|
0
|
1475
|
POST
|
Thank you for the response Morten Nielsen. Following are my requirements, I'm developing a WPF application using ARCGis SDK for .Net and c# programming. Requirement 1 : need to find the distance between two points by following a poly line. Here i'm having a Poly line p and point1 and point2 are the points on the polyline p, now want to calculate the distance between Point1 and Point2 by following the polyline which is 3 kms, but GeometryEngine.DistanceGeodetic methods returns the shortest and linear distance between the points which is 2 kms. So please suggest a way to achieve this. Requirement 2 : need to sort all the points on a polyline by distance(from starting point) in ascending. Here i'm having a poly line with 7 points as p1,p2,p3,p4,p5,p6,p7. Distance between the points on the polyline as follows P1 to P2 = 1 kms P2 to P3 = 1 kms P3 to P4 = 1 kms P4 to P5 = 1.5 kms P5 to P6 = 1.5 kms P6 to P7 = 4 kms ---------------------------------- Total polyline Distance = 10 kms So, i want to arrange these points in ascending order based on their distance from start point of the poly line,i.e,. Point Distance(from start point) P1 0 kms P2 1 kms P3 2 kms P4 3 kms P5 4.5 kms P6 6 kms P7 10 kms Thanking you in advance.
... View more
02-25-2019
11:41 PM
|
0
|
2
|
1475
|
POST
|
Good day team We are trying to calculate the distance between two co-ordinates on a polyline by passing point 1 and point 2 as a parameter by using the following code: GeometryEngine.DistanceGeodetic(startPoint, endPoint, LinearUnits.Meters, AngularUnits.Degrees, GeodeticCurveType.Geodesic).Distance The result of the above method is only returning the straight line distance instead of considering curves etc. This really pushing our distance calculation off. Could you please advise the best suitable method for the above purpose. Thanking you in advance.
... View more
02-24-2019
11:16 PM
|
0
|
4
|
1821
|
POST
|
Thank you very much Thad Tilton. Finally you solved my problem. May God Bless You.
... View more
02-22-2019
05:23 AM
|
0
|
0
|
1787
|
POST
|
Thank you for the response Ted Kowal, Yes I'm just displaying the poly lines as they are from Shape file to the map and then i'm trying to process them. I didn't find any method named with generatepointsalonglines in ArcGIS Runtime SDK for .NET - Toolkit. Regards, Naresh Kumar K.
... View more
02-20-2019
09:17 PM
|
0
|
0
|
1293
|
POST
|
Thank you for your response Thad Tilton, I tried using your above implementation. I have a poly line with 7 kms(approx) of length which i'm extracting from a shape file by creating a feature layer, now by following your code i want to create points along poly line at every 1km distance. below is the code private void UsingCreatePointAlongMethod(Polyline polyline, double distance)
{
double lineLength = GeometryEngine.LengthGeodetic(polyline);
List<MapPoint> pointsOnLine = new List<MapPoint>();
SimpleMarkerSymbol sym = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle.X, Color.Yellow, 16);
GraphicsOverlay go = MyMapView.GraphicsOverlays.First();
while (true)
{
distance += 1000.0;
if (distance > lineLength) { break; }
MapPoint pt = GeometryEngine.CreatePointAlong(polyline, distance);
pointsOnLine.Add(pt);
Graphic g = new Graphic(pt, sym);
go.Graphics.Add(g);
}
} but the code returns the same point every time and it's always pointing at the starting of the poly line. here i'm also attaching the screenshots. Thanks in advance.
... View more
02-20-2019
12:26 AM
|
0
|
2
|
1787
|
POST
|
Thanks for the response Ted Kowal, My application environment is .net using C# programming.Can we achieve the same above in c# programming? For your information I'm extracting the poly lines from a shape file by creating a feature layer. is there any problem with my code? please help
... View more
02-19-2019
11:16 PM
|
0
|
2
|
1293
|
POST
|
Hi Team, My requirement is to add points at specific distance on a polyline. In Order to achieve this I have a poly line of 26 Kms length, So i used CreatePointAlong method to add points on poly line for each 2 Kms distance, but it's adding the point always at the starting point. Here i'm attaching the screen shots. Is there any way to achieve my requirement? please suggest. Thanks in advance
... View more
02-18-2019
10:59 PM
|
0
|
7
|
1539
|
POST
|
Hi team, how to get the points only which were located for every 2 kms on a poly line? I tried Densify method to create new points along the poly line, but after densify, it returns the whole points list(newly created + old points). I can't figure out which was plotted at exactly 2 kms and which was not. So please suggest me a way to achieve this. Thanks in advance.
... View more
02-18-2019
03:38 AM
|
0
|
4
|
2590
|
POST
|
Thanks for the quick response Thad Tilton, I tried Densify => new points are created along the poly line after densify, but it returns the output was not as expected. I have one poly line with distance of over 26 kms with 17 points. after densify it with 100 m distance nothing happens still it's having 17 points. I'm attaching the screenshot here. how to get the points only which were located for every 2 kms on a poly line? Thanks in advance.
... View more
02-16-2019
05:39 AM
|
0
|
1
|
1002
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|