This is the second article in our “Satellite Imagery API” series. You can read about our product, its capabilities and why we recommend you use it, in the previous article: “Why the Satellite imagery API?”
The Satellite Imagery API includes the following features:
- an image of a polygon in PNG format
- a tile in PNG format
- zonal statistics for NDVI & EVI indices of a polygon
- an image in GeoTIFF format.
In this article we will tell you how to get an image of your polygon in PNG format.
The Satellite Imagery API allows you to get a processed image of your polygon from the satellite (read this article and our documentation to find out how to create the polygon). You can get the image of your polygon for the available products:
- True colour
- False colour
- NDVI and EVI indices (providing you with information about the level of vegetation on your polygon).
To get an image of your polygon in PNG format, you need to follow two simple steps:
- In your request to our system, specify the ID of your polygon, a period of searching and your API key. In the Sattelite Imagery API response, you will obtain an array of JSON structures related to your polygon, sorted by date range and containing an “image” field with URL links for products (True and False colour, NDVI and EVI indices), which you can receive in PNG format.
- Copy the URL obtained in the “image” block and make the API call. In the result from the API, your polygon in the selected product will open in a new tab.
You can find descriptions of the parameters and some examples in our documentation!
Example of API request
Get NDVI satellite image in PNG format:
http://api.agromonitoring.com/image/1.0/02059768a00/5ac22f004b1ae4000b5b97cf?appid=bb0664ed43c153aa072c760594d775a7
Example of response:
Please also see the other articles in this series: