User Tools

Site Tools


thinkgeo_cloud_.net_sdk

This is an old revision of the document!


ThinkGeo Cloud .NET SDK

Services

ThinkGeo Cloud includes the following Services.

More Services are on the way.

The full API list can be found here:

ThinkGeo Cloud APIs

Vector Tile
Consume XYZ vector map tiles

Raster Tile
Consume XYZ raster map tiles

WMS
WMS service

Elevation
Get elevation information of specified geometries

Geocoding
Get the location from a US address

Reverse Geocoding
Get the real world information of specified geometries

Reprojection
Reproject the specified geometries

Color
Get related colors of specified color

Sample Code

ThinkgeoMaps

ThinkGeoCloudMapsOverlay transparentBackgroundMap = new ThinkGeoCloudMapsOverlay();
transparentBackgroundMap.Name = "Transparent Background";
transparentBackgroundMap.WrapDateline = WrapDatelineMode.WrapDateline;
transparentBackgroundMap.MapType = ThinkGeoCloudMapsMapType.TransparentBackground;
MapsClient client = new MapsClient("clientId", "clientSecret");
Stream imageStream = client.GetRasterTile(z, x, y, projection, mapType, tileSize, tileResolution);
Task<Stream> task = client.GetRasterTileAsync(z, x, y, projection, mapType, tileSize, tileResolution);

Elevation

elevationClient = new ElevationClient(clientId, clientSecret);
elevationClient.BaseUris.Add(new Uri(GisServerUri));
var response = elevationClient.GetElevationOfLineAsync(line, 3857, numberOfSegments: pointNumber, elevationUnit: DistanceUnit.Meter);

Geocoding

GeocodingClient geocodingClient = new GeocodingClient(clientId, clientSecret);
geocodingClient.BaseUris.Add(new Uri(GisServerUri));
result = geocodingClient.SearchAsync(searchText, options);

Reverse Geocoding

ReverseGeocodingClient reverseGeocodingClient = new ReverseGeocodingClient(clientId, clientSecret);
reverseGeocodingClient.BaseUris.Add(new Uri(GisServerUri));
ReverseGeocodingResult searchResult = await reverseGeocodingClient.SearchPointAsync(searchPoint.X, searchPoint.Y, 3857, searchRadius, DistanceUnit.Meter, reverseGeocodingOption);

Color

ColorClient colorClient = new ColorClient(clientId, clientSecret);
colorClient.BaseUris.Add(new Uri(GisServerUri));
var hueColors = colorClient.GetColorsInHueFamily(specifiedColor, numberOfColors);

Projection

ProjectionClient projectionClient = new ProjectionClient(apiKey, apiSecret);
projectionClient.BaseUris.Add(new Uri(GisServerUri));
var projectedFeature = projectionClient.Project(feature, fromSrid, toSrid);

Screenshots

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

thinkgeo_cloud_.net_sdk.1548754643.txt.gz · Last modified: 2019/01/29 09:37 by tgwikiupdate