AGRI endpoints

Get Field Cover Duration In Days From Epsg:4326 Geojson Input

Get cover duration (number of days per year) for each feature (boundaries) in the EPSG:4326 Geojson request body (could be a collection of points, polygons, etc.)

If weighted_mean is true, add in the response the weighted_mean propertie

Returns the input Geojson in which each feature embeds cover information, as follows :

"properties": {
    "data": [
         {
            "year": 2020,
            "method": "original",
            "stats": {
                "count": 490,
                "sum": 103892,
                "mean": 212.02448979591836,
                "stddev": 15.118424097394243,
                "min": 194,
                "max": 291,
                "majority": 205,
                "majority_count": 48,
                "p_area": 0.000006334409353705055
            },
            "pra_stats": {
                "name": "praREGION_CENTRALE_comSAINT_GILLES",
                "ddc_meanp_pra_all": 325,
                "ddc_70qp_pra_all": 344,
                "ddc_meanp_pra_grd_culture": 307,
                "ddc_70qp_pra_grd_culture": 326,
                "ddc_q3_pra_grd_culture": 341,
                "ddc_meanp_pra_div": 317,
                "ddc_70qp_pra_div": 336,
                "ddc_q3_pra_div": 363,
                "area": 0.000006334409353705055
            },
            "weighted_mean": 212 
        }
    ]
},

The majority property gives the most frequent cover duration (in days) present in the feature

In the purepixel calculation, majority corresponds to the mean value (no actual majority is computed)

post/agri/field/cover

Query parameters

year_frominteger

YEAR of the dataset to query - defaults to last year of available dataset

YEAR of the dataset to query - defaults to last year of available dataset

year_tointeger

YEAR of the dataset to query - defaults to last year of available dataset

YEAR of the dataset to query - defaults to last year of available dataset

purepixelsboolean

If true, activate purepixels calculation (only pixels fully inside input geometry are considered, False by default)

If true, activate purepixels calculation (only pixels fully inside input geometry are considered, False by default)

weighted_meanboolean

If true, consider the geoJSON has an exploitation geometry and, so, compute the weighted average of the field cover, False by default

If true, consider the geoJSON has an exploitation geometry and, so, compute the weighted average of the field cover, False by default

Request body

object required

EPSG:4326 Geojson FeatureCollection request body

Response

Successful Response

{"stackTrail":"paths:/agri/field/cover:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.