Satellite Images
Before you start
- Create your Account - Don't have an account yet? Sign up for Cropwise to access Remote Sensing services.
- Authenticate with Cropwise – Learn how to authenticate your requests using your credentials.
- Set up your Organization – Create or select an organization to manage your farms.
- Create a Farm – Add or choose a farm in your organization.
- Create a Field – Add or select a field within your farm to start obtaining satellite images.
- Get started with Remote Sensing concepts – Familiarize yourself with Remote Sensing concepts to effectively use satellite imagery for your fields.
- Choose your Area of Interest (AOI) – Define the Area of Interest (AOI) for which you want to fetch satellite images related data.
- Listing Satellite Images and NDVI statistics – Retrieve a list of available satellite images and NDVI statistics for your AOI.
- (Optional) Create a temporary session – Discover how to create a temporary session for quickly rendering tiles in a map.
Displaying Satellite Images on a Map
Tile rendering is a powerful way to visualize remote sensing data on maps. The Map Tiles API allows you to render images as tiles, which can be used in various map engines.
The endpoint for the Map Tiles API is:
`https://api.cropwise.com/remote-sensing/v1/images/${imageId}/${subproduct}/${rasterType}/tiles/{z}/{x}/{y}/png?session_token=${sessionToken}`
See the Tiles API docs for more details on the parameters.
Remember: When using the endpoint in the examples below, you should only replace the placeholders with the actual values, such as image_id, subproduct, raster_type, and session_token, not the {z},{x}, and {y}. These will be automatically filled in by the map rendering library you are using.
Setting up with Mapbox
See this example for how to use the Map Tiles API with Mapbox GL JS.
When filling the tiles array, you can use the following format:
'tiles': [`https://api.cropwise.com/remote-sensing/v1/images/${imageId}/${subproduct}/${rasterType}/tiles/{z}/{x}/{y}/png?session_token=${sessionToken}`]
Setting up with Leaflet
See this example for how to use the Map Tiles API with Leaflet.
When adding a tile layer in Leaflet, you can use the following format:
L.tileLayer(`https://api.cropwise.com/remote-sensing/v1/images/${imageId}/${subproduct}/${rasterType}/tiles/{z}/{x}/{y}/png?session_token=${sessionToken}`, {
maxZoom: 18,
attribution: 'Cropwise Remote Sensing'
}).addTo(map);