How would I test this service to find what it wants? http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/MapServer/exts/ElevationsSOE/ElevationLayers/1/GetElevations
It says geometries. But does it want a polyline or a point. I tried just putting a lat/long in the dialog box but no go.
What I have is a result from a densify service
void DensifyService_DensifyCompleted(object sender, GraphicsEventArgs e)
{
GraphicsLayer graphicsLayerVertices = MyMap.Layers["VerticesGraphicsLayer"] as GraphicsLayer;
foreach (Graphic graphic in e.Results)
{
ESRI.ArcGIS.Client.Geometry.Polyline p = graphic.Geometry as ESRI.ArcGIS.Client.Geometry.Polyline;
foreach (ESRI.ArcGIS.Client.Geometry.PointCollection pc in (graphic.Geometry as Polyline).Paths)
{
foreach (MapPoint point in pc)
{
Graphic vertice = new Graphic()
{
Symbol = LayoutRoot.Resources["DefaultMarkerSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol,
Geometry = point
};
graphicsLayerVertices.Graphics.Add(vertice);
}
}
}
DensifyButton.IsEnabled = true;
}
So what I am wanting to do is get each MapPoint geometries from the foreach (MapPoint point in pc)
And figure out how to get that into a list or whatever format is needed by the elevation service at the top of the question. Thanks.