This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
thinkgeo_cloud_.net_sdk [2019/04/01 14:27] sacha |
thinkgeo_cloud_.net_sdk [2019/08/13 17:06] (current) benbai |
||
---|---|---|---|
Line 11: | Line 11: | ||
<code csharp> | <code csharp> | ||
ElevationClient elevationClient = new ElevationClient(clientId, clientSecret); | ElevationClient elevationClient = new ElevationClient(clientId, clientSecret); | ||
- | elevationClient.BaseUris.Add(new Uri(GisServerUri)); | ||
var response = elevationClient.GetElevationOfLineAsync(line, 3857, numberOfSegments: pointNumber, elevationUnit: DistanceUnit.Meter); | var response = elevationClient.GetElevationOfLineAsync(line, 3857, numberOfSegments: pointNumber, elevationUnit: DistanceUnit.Meter); | ||
</code> | </code> | ||
Line 18: | Line 17: | ||
<code csharp> | <code csharp> | ||
GeocodingClient geocodingClient = new GeocodingClient(clientId, clientSecret); | GeocodingClient geocodingClient = new GeocodingClient(clientId, clientSecret); | ||
- | geocodingClient.BaseUris.Add(new Uri(GisServerUri)); | ||
var result = geocodingClient.SearchAsync(searchText, options); | var result = geocodingClient.SearchAsync(searchText, options); | ||
</code> | </code> | ||
Line 25: | Line 23: | ||
<code csharp> | <code csharp> | ||
ReverseGeocodingClient reverseGeocodingClient = new ReverseGeocodingClient(clientId, clientSecret); | 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); | ReverseGeocodingResult searchResult = await reverseGeocodingClient.SearchPointAsync(searchPoint.X, searchPoint.Y, 3857, searchRadius, DistanceUnit.Meter, reverseGeocodingOption); | ||
</code> | </code> | ||
Line 31: | Line 28: | ||
<code csharp> | <code csharp> | ||
ColorClient colorClient = new ColorClient(clientId, clientSecret); | ColorClient colorClient = new ColorClient(clientId, clientSecret); | ||
- | colorClient.BaseUris.Add(new Uri(GisServerUri)); | ||
var hueColors = colorClient.GetColorsInHueFamily(specifiedColor, numberOfColors); | var hueColors = colorClient.GetColorsInHueFamily(specifiedColor, numberOfColors); | ||
</code> | </code> | ||
Line 37: | Line 33: | ||
<code csharp> | <code csharp> | ||
ProjectionClient projectionClient = new ProjectionClient(clientId, clientSecret); | ProjectionClient projectionClient = new ProjectionClient(clientId, clientSecret); | ||
- | projectionClient.BaseUris.Add(new Uri(GisServerUri)); | ||
var projectedFeature = projectionClient.Project(feature, fromSrid, toSrid); | var projectedFeature = projectionClient.Project(feature, fromSrid, toSrid); | ||
</code> | </code> |