DEM Service

a) DEM Post Request to Prepare TIFF



The Ag-Analytics® DEM Service API allows for clipping boundaries to the 10 meter USGS DEM map of the United States. The service consists of a POST request where the user can pass a GeoJSON boundary, desired output projection as an EPSG code, and a resolution in degrees lat/lon. The result of the post request is a file name that is the result of the clip, reproject, and resample.

The file name can be used as the parameter in a GET request to the same endpoint. Doing so will download the file to the specified local path.




Sample DEM raster output.



Click the Jupyter Notebook Static Sample to view a static rendition of this APIs Jupyter Notebook.
Click the Jupyter Notebook Github Repo to access the Jupyter Notebook .ipynb files and
instructions needed in order to run this APIs Jupyter Notebook.



Call API

Request

Request URL

Request headers

  • (optional)
    application/x-www-form-urlencoded
  • (optional)
    string

Request body

aoi=%7B%22type%22%3A%22Feature%22%2C%22geometry%22%3A%7B%22type%22%3A%22Polygon%22%2C%22coordinates
%22%3A%5B%5B%5B-76.5907145%2C+42.443918%5D%2C+%5B-76.5898132%2C+42.4224745%5D%2C+
%5B-76.5699863%2C+42.4230447%5D%2C+%5B-76.5710592%2C+42.4443296%5D%2C+%5B-76.5907145%2C+42.443918%5D%5D%5D%7D%2C%22properties%22%3A%7B%22OBJECTID%22%3A4944402%2C%22
CALCACRES%22%3A46.15999985%2C%22CALCACRES2%22%3Anull%7D%2C%22id%22%3A4944402%7D&
Elevation_Index=False&Legend_Ranges=20

aoi=%7B%22type%22%3A%22Feature%22%2C%22geometry%22%3A%7B%22type%22%3A%22Polygon%22%2C%22coordinates%22%3A%5B%5B%5B-76.5907145%2C+42.443918%5D%2C+%5B-76.5898132%2C+42.4224745%5D%2C+%5B-76.5699863%2C+42.4230447%5D%2C+%5B-76.5710592%2C+42.4443296%5D%2C+%5B-76.5907145%2C+42.443918%5D%5D%5D%7D%2C%22properties%22%3A%7B%22OBJECTID%22%3A4944402%2C%22CALCACRES%22%3A46.15999985%2C%22CALCACRES2%22%3Anull%7D%2C%22id%22%3A4944402%7D&Elevation_Index=False&Legend_Ranges=20

Responses

200 OK

Success

Representations

{
    "Features": [{
        "attributes": {
            "CellSize": [
                9.259259269220297e-05,
                -9.259259269220297e-05
            ],
            "CoordinateSystem": "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433],AUTHORITY[\"EPSG\",\"4326\"]]",
            "Extent": "-76.5907145, 42.42238515553195, -76.57006635182964, 42.4443296",
            "Legend": [{
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 387.494482421875,
                    "Mean": 377.98350830078124,
                    "Min": 368.4725341796875,
                    "color": "#6bd54d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 393.60186767578125,
                    "Mean": 390.5481750488281,
                    "Min": 387.494482421875,
                    "color": "#76d14d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 398.3304763793945,
                    "Mean": 395.96617202758785,
                    "Min": 393.60186767578125,
                    "color": "#82ce4d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 402.33484497070316,
                    "Mean": 400.3326606750488,
                    "Min": 398.3304763793945,
                    "color": "#8eca4d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 406.1711120605469,
                    "Mean": 404.25297851562505,
                    "Min": 402.33484497070316,
                    "color": "#9ac74d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 410.0652740478516,
                    "Mean": 408.1181930541992,
                    "Min": 406.1711120605469,
                    "color": "#a5c34d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 413.4850250244141,
                    "Mean": 411.77514953613286,
                    "Min": 410.0652740478516,
                    "color": "#b1c04d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 416.96576538085935,
                    "Mean": 415.2253952026367,
                    "Min": 413.4850250244141,
                    "color": "#bdbc4d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 420.6257369995117,
                    "Mean": 418.7957511901855,
                    "Min": 416.96576538085935,
                    "color": "#c9b94d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 424.2486267089844,
                    "Mean": 422.437181854248,
                    "Min": 420.6257369995117,
                    "color": "#d5b64d"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 428.3586776733398,
                    "Mean": 426.3036521911621,
                    "Min": 424.2486267089844,
                    "color": "#d7bb5c"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 431.8903991699219,
                    "Mean": 430.12453842163086,
                    "Min": 428.3586776733398,
                    "color": "#d9c06c"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 434.07612762451174,
                    "Mean": 432.98326339721683,
                    "Min": 431.8903991699219,
                    "color": "#dbc57b"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 436.8888519287109,
                    "Mean": 435.4824897766113,
                    "Min": 434.07612762451174,
                    "color": "#ddca8b"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 439.70599365234375,
                    "Mean": 438.2974227905273,
                    "Min": 436.8888519287109,
                    "color": "#dfcf9b"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 442.4939880371094,
                    "Mean": 441.09999084472656,
                    "Min": 439.70599365234375,
                    "color": "#e1d4aa"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 444.9431686401367,
                    "Mean": 443.71857833862305,
                    "Min": 442.4939880371094,
                    "color": "#e3d9ba"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 447.1944549560547,
                    "Mean": 446.0688117980957,
                    "Min": 444.9431686401367,
                    "color": "#e5dec9"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 449.3597045898438,
                    "Mean": 448.27707977294926,
                    "Min": 447.1944549560547,
                    "color": "#e7e3d9"
                },
                {
                    "Area": "5.0 %",
                    "Count": 2453,
                    "CountAllPixels": 49060,
                    "Max": 452.1280822753906,
                    "Mean": 450.7438934326172,
                    "Min": 449.3597045898438,
                    "color": "#e9e9e9"
                }
            ],
            "Matrix": [
                237,
                223
            ],
            "Max": 452.1280822753906,
            "Mean": 422.1139831542969,
            "Min": 368.4725341796875,
            "OID": 0,
            "Percentile5": 387.494482421875,
            "Percentile95": 449.3597045898438,
            "Std": 20.075919225078817,
            "Variety": "NoVariety",
            "pngb64": "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAN8AAADtCAYAAAA/S6CKAAAgrElEQVR4nO1dPY9ly1Wt6ekhmZamk4mQA0he4MCCxCKzBDKRxa/AiYkJ+QEOHOEExySkIyEh2RISAcKJhcQLiCxikvukmeS9nhFBU92n6+69a+2vqjr3niW1NHNPnaq699Q6e9f+qlflwIErwi9++5P/rf/+eEu3+fja1vfPf/Dhvab9K9swB64Vv/n18+JtwS3mp+vMov4k3GclAgoNAT/dlvL2Qe5PQ8DOz3UgA//9r3/DLmANvnx3MtzzTbcNt+B7RLh76BOQwtsHnoB3n8G5be6/6xDEgjo/hIAodkm+3//uV9MWr6efduHfvHknXs/AzZt35nHuPvsIKN3PEdAi+er4CAm5+SLf1Yvb//mvf3It5Js39+p74ha9b7HevLkPmws+5rvuNfR7WeffI2CVNtTik649tTESsAXcjlMdFSTUIE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NJH0qNVVg0uXfhJmuV/2+FLs1nDxgHsA7edbMm1rxFA1W+r1bR93D89/XBsOH1/nPLiVF8Mov1vWb0uNZcHsg3umDS9JwPY6V+eTUj2ttUSuWVplwxOa1ttj7pV4pSRLPi1adbL9saV4QErS3T3oCBX9pvb0lSk5NH1mL9Lt9+T8uej/UaxAvFImHwtNGTAkCVhKv9o12afSUMIaZRjXSNZBmtT/R0nntqYnhYxshd5z8ryMViFdxWLTwSGRsHVTRLgoWsx6kNrF5025khCdrZCF1UhXMVXtRBeE9LbvqaKlnBt0vFj1YVKwqq5WEmWdba8d31pMeCRSyRf5tu0RsLdYogg4Yg90CZix8FcmGoWpko91RRizqbMJyD1caf+pwaUQbwsvCVEJtjfilZK858uICOn12dYRldpz16jaoJaHq3FfXCLxtrDUW21/8z0STII6sFqbduKxXnWrnoEGETIjQgiatjzkFQ0NEche8MiJU5cKt9rZI1ePnK4oedAQQ7WTfIqXSqQVsScDSTSWcrK3QDINNAQknfAMSbUEvKZFcyAGKvJZ9yUe6YcSEJWgHAmRufRwEPCABhD5RgXIcoDLPxDE4dwQXHD2th/rMVsHDiAYpnZ6ndseApbCE4mTgl4CrkrCa95jrQY3+aJiDZF+2j2a1BcnBZGxIwhYyvzFjRJt9jyvFUsbXDh4Sj5YCejBXqI9DhKOxVLk0yx0jyVUK8nuPse4H/ayuA+VdAyGkS/DYJN9qEhrBUViSBEcC/tAKYNSijItpdbjx0xjfaaLPFmxt/PvrhG//P6H91l9Q+FlpZTyH/9C1+5E66SgsBJVW0YOPUgRKWEfJcWiSbhn6Zq56FdB6uMZ6RvkJOCI4O42mNuK2ZLwGhb8SnAvGbTkAoq91MbUlrfgcCz460WY5NsDYbb46Z8di/7AXAzdFfzwL48Ff+DAgQMHJuP/AIIb3uW1o4ziAAAAAElFTkSuQmCC"
        }
    }],
    "FileName": "result_raster_dem_20200228191959463691.tif"
}

Code samples

@ECHO OFF

curl -v -X POST "https://ag-analytics.azure-api.net/dem-service/"
-H "Content-Type: application/x-www-form-urlencoded"
-H "Content-Type: application/x-www-form-urlencoded"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers

            var uri = "https://ag-analytics.azure-api.net/dem-service/?" + queryString;

            HttpResponseMessage response;

            // Request body
            byte[] byteData = Encoding.UTF8.GetBytes("{body}");

            using (var content = new ByteArrayContent(byteData))
            {
               content.Headers.ContentType = new MediaTypeHeaderValue("< your content type, i.e. application/json >");
               response = await client.PostAsync(uri, content);
            }

        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://ag-analytics.azure-api.net/dem-service/");


            URI uri = builder.build();
            HttpPost request = new HttpPost(uri);
            request.setHeader("Content-Type", "application/x-www-form-urlencoded");
            request.setHeader("Content-Type", "application/x-www-form-urlencoded");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
        };
      
        $.ajax({
            url: "https://ag-analytics.azure-api.net/dem-service/?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
                xhrObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
            },
            type: "POST",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://ag-analytics.azure-api.net/dem-service/";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"POST"];
    // Request headers
    [_request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
    [_request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://ag-analytics.azure-api.net/dem-service/');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Content-Type' => 'application/x-www-form-urlencoded',
    'Content-Type' => 'application/x-www-form-urlencoded',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_POST);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Content-Type': 'application/x-www-form-urlencoded',
    'Content-Type': 'application/x-www-form-urlencoded',
}

params = urllib.urlencode({
})

try:
    conn = httplib.HTTPSConnection('ag-analytics.azure-api.net')
    conn.request("POST", "/dem-service/?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Content-Type': 'application/x-www-form-urlencoded',
    'Content-Type': 'application/x-www-form-urlencoded',
}

params = urllib.parse.urlencode({
})

try:
    conn = http.client.HTTPSConnection('ag-analytics.azure-api.net')
    conn.request("POST", "/dem-service/?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://ag-analytics.azure-api.net/dem-service/')


request = Net::HTTP::Post.new(uri.request_uri)
# Request headers
request['Content-Type'] = 'application/x-www-form-urlencoded'
# Request headers
request['Content-Type'] = 'application/x-www-form-urlencoded'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body