Consuming Leaf datasets in ArcGIS Pro

Consuming Leaf datasets in ArcGIS Pro

About

This tutorial provides steps to consume Leaf geospatial data through the ArcGIS Pro toolboxes. Field boundaries, satellite images, and field operations point data can be handled directly in ArcGIS Pro.

Summary

  • Step 1: Register for a Leaf account
  • Step 2: Open the toolbox
  • Step 3: Working with the tools
        · Step 3.1: Authentication
        · Step 3.2: Crop Monitoring tools
        · Step 3.3: Magic Link
        · Step 3.4: Field Boundary
        · Step 3.5: Field Operations

1. Register for a Leaf account

First, you’ll need to register for a Leaf account. If you don’t yet have an account you can register below. Make sure to activate your account via the activation email.

Register with Leaf https://withleaf.io/account/quickstart

2. Open the toolbox

To use our samples, you can download the files from our repository on GitHub here, and open them in ArcGIS Pro from the Catalog.

Leaf, data infrastructure for agriculture

This is a sample code, so feel free to make edits as needed. Following, you will find the sample tools we have created.

3. Working with the tools

3.1. Authentication

Communication with the Leaf API requires authentication using your Leaf account, so you need to think about this when developing your toolbox.

The sample tool uses the authentication with Leaf endpoint https://docs.withleaf.io/docs/authentication.

In our sample, we add a tool that manages the authentication and stores the token in a temporary table.