This Sample demonstrates how you can get elevation data from ThinkGeo GIS Server, and shows the elevation data of a road in the form of a line [chart][1]. Elevation SDK - support query elevation data by points, line and polygon based on [SRTM][2] and Ned13 elevation source data. For point - Create a buffer and aggregate all points within buffer …
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ThinkGeoCloudElevation
.gitignore
README.md Update README.md Dec 20, 2018
Screenshot.gif
Screenshot.png
ThinkGeoCloudElevation.sln Upload source code. Dec 18, 2018

README.md

ThinkGeo Cloud Elevation Sample for Wpf

Description

This Sample demonstrates how you can use ThinkGeo Cloud Client to get elevation data from ThinkGeo GIS Server, and shows the elevation data of a road in the form of a line chart.

There are two ways to get the elevation data of the line. First, get the points on the line by setting the interval distance. The other, is to take the points by setting the number of points to be fetched. Then query the elevation data of the point.

ThinkGeo Cloud Client support would work in all of the Map Suite controls such as Wpf, Web, MVC, WebApi, Android and iOS.

Please refer to Wiki for the details.

Screenshot

Requirements

This sample makes use of the following NuGet Packages

MapSuite 10.0.0

About the Code

private void UpdateIdSecretToClient()
{
    elevationClient?.Dispose();
    elevationClient = new ElevationClient(clientId, clientSecret);
    elevationClient.BaseUris.Add(new Uri(GisServerUri));
}

private async Task<ElevationResult> GetElevationByLineAsync(LineShape line, int pointNumber, int distance)
{
    if (comboType.SelectedIndex == 0)
    {
        var response = await elevationClient.GetElevationOfLineAsync(line, 3857, numberOfSegments: pointNumber, elevationUnit: DistanceUnit.Meter);
        return response;
    }
    else if (comboType.SelectedIndex == 1)
    {
        var response = await elevationClient.GetElevationOfLineAsync(line, 3857, intervalDistance: distance, elevationUnit: DistanceUnit.Meter, intervalDistanceUnit: DistanceUnit.Meter);
        return response;
    }
    throw new NotSupportedException("Unknown Line model");
}

Getting Help

Map Suite Desktop for Wpf Wiki Resources

Map Suite Desktop for Wpf Product Description

ThinkGeo Community Site

ThinkGeo Web Site

Key APIs

This example makes use of the following APIs:

Working...

About Map Suite

Map Suite is a set of powerful development components and services for the .Net Framework.

About ThinkGeo

ThinkGeo is a GIS (Geographic Information Systems) company founded in 2004 and located in Frisco, TX. Our clients are in more than 40 industries including agriculture, energy, transportation, government, engineering, software development, and defense.