{
    "version": "0.2.0",
    "id": "histoire_culturale",
    "title": "Histoire culturale",
    "description": "",
    "keywords": [
        "RPG, culture, statistique spatiale"
    ],
    "links": [
        {
            "type": "text/html",
            "rel": "about",
            "title": "Source des RPG",
            "href": "https://geoservices.ign.fr/rpg",
            "hreflang": "fr-FR"
        },
        {
            "type": "application/json",
            "rel": "self",
            "href": "https://api.geosas.fr/rpg/processes/histoire_culturale?f=json",
            "title": "Process description as JSON",
            "hreflang": "en-US"
        },
        {
            "type": "text/html",
            "rel": "alternate",
            "href": "https://api.geosas.fr/rpg/processes/histoire_culturale?f=html",
            "title": "Process description as HTML",
            "hreflang": "en-US"
        },
        {
            "type": "text/html",
            "rel": "http://www.opengis.net/def/rel/ogc/1.0/job-list",
            "href": "https://api.geosas.fr/rpg/jobs?f=html",
            "title": "jobs for this process as HTML",
            "hreflang": "en-US"
        },
        {
            "type": "application/json",
            "rel": "http://www.opengis.net/def/rel/ogc/1.0/job-list",
            "href": "https://api.geosas.fr/rpg/jobs?f=json",
            "title": "jobs for this process as JSON",
            "hreflang": "en-US"
        },
        {
            "type": "application/json",
            "rel": "http://www.opengis.net/def/rel/ogc/1.0/execute",
            "href": "https://api.geosas.fr/rpg/processes/histoire_culturale/execution?f=json",
            "title": "Execution for this process as JSON",
            "hreflang": "en-US"
        }
    ],
    "inputs": {
        "choix": {
            "title": "choix",
            "description": "choix du niveau de finesse \"code_cultu\" = RPG 3 lettre ou \"code_group\" = Groupe RPG 1-28. Par d\u00e9faut \"code_group\"",
            "schema": {
                "type": "string"
            },
            "minOccurs": 0,
            "maxOccurs": 1,
            "metadata": null,
            "keywords": [
                "message"
            ]
        },
        "conditions": {
            "title": "conditions",
            "description": "Optionel : filtre des cultures par groupe ou cultu, separateur : ',' exemple PPH,PRL,PTR,RGA,MIE",
            "schema": {
                "type": "string"
            },
            "minOccurs": 0,
            "maxOccurs": 1,
            "metadata": null,
            "keywords": [
                "message"
            ]
        },
        "mode_output": {
            "title": "mode_output",
            "description": "Optionel : format de Sortie en 'Sensorthing' ou  'simple' (Sensorthing simplifi\u00e9)",
            "schema": {
                "type": "string"
            },
            "minOccurs": 0,
            "maxOccurs": 1,
            "metadata": null,
            "keywords": [
                "message"
            ]
        },
        "seuil": {
            "title": "seuil",
            "description": "Optionel : groupe les cultures minoritaires par pourcentage de surface minimal, par d\u00e9faut 5 %",
            "schema": {
                "type": "integer"
            },
            "minOccurs": 0,
            "maxOccurs": 1,
            "metadata": null,
            "keywords": [
                "message"
            ]
        },
        "polygone": {
            "title": "polygone",
            "description": "Vecteur de la zone d'etude (geojson), (il peut y avoir plusieurs sous zones). EPSG : 2154",
            "schema": {
                "type": "application/json"
            },
            "minOccurs": 1,
            "maxOccurs": 1,
            "metadata": null,
            "keywords": [
                "message"
            ]
        }
    },
    "outputs": {
        "response": {
            "statistique": {
                "description": "R\u00e9sum\u00e9 des cultures de la zone de 2006-2021",
                "schema": {
                    "type": "object",
                    "contentMediaType": "application/json"
                }
            },
            "succession": {
                "description": "Succession des cultures de 2015 \u00e0 2021",
                "schema": {
                    "type": "object",
                    "contentMediaType": "application/json"
                }
            }
        }
    },
    "example": {
        "inputs": {
            "choix": "code_group",
            "mode_output": "SensorThing",
            "polygone": {
                "type": "FeatureCollection",
                "name": "polygone",
                "crs": {
                    "type": "name",
                    "properties": {
                        "name": "urn:ogc:def:crs:EPSG::2154"
                    }
                },
                "features": [
                    {
                        "type": "Feature",
                        "properties": {},
                        "geometry": {
                            "type": "Polygon",
                            "coordinates": [
                                [
                                    [
                                        160500.74478697858,
                                        6804322.816743294
                                    ],
                                    [
                                        163285.3135798918,
                                        6804175.945510758
                                    ],
                                    [
                                        163172.81189335033,
                                        6801972.03455109
                                    ],
                                    [
                                        160231.76646840328,
                                        6802053.794787827
                                    ],
                                    [
                                        160500.74478697858,
                                        6804322.816743294
                                    ]
                                ]
                            ]
                        }
                    }
                ]
            }
        }
    },
    "jobControlOptions": [
        "sync-execute",
        "async-execute"
    ],
    "outputTransmission": [
        "value"
    ]
}