{"openapi":"3.1.0","info":{"title":"FastAPI","description":"The HDX Geo Data API, built on top of FastAPI and GDAL.\n\nProvides bindings from GDAL commands to API endpoints.\n\nGDAL: `gdal vector convert --input=example.shp --output=example.geojson`\n\nAPI: `/api/vector/convert?input=example.shp&output=example.geojson`\n\n---\n\n[GDAL documentation](https://gdal.org/en/stable/programs/index.html)\n\n[API documentation](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx)\n\n---\n","version":"0.1.0"},"servers":[{"url":"https://feature.data-humdata-org.ahconu.org"}],"paths":{"/geodata/api/vector/convert":{"get":{"tags":["Vector Commands"],"summary":"Vector Convert","description":"Convert a vector dataset to another format.\n\n[Original documentation](https://gdal.org/en/stable/programs/gdal_vector_convert.html)","operationId":"vector_convert_geodata_api_vector_convert_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"input","in":"query","required":true,"schema":{"type":"string","description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`.","title":"Input"},"description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`."},{"name":"output","in":"query","required":true,"schema":{"type":"string","description":"Output vector dataset (required). The output format will be inferred by the file extension (example.geojson).","title":"Output"},"description":"Output vector dataset (required). The output format will be inferred by the file extension (example.geojson)."},{"name":"config","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`.","title":"Config"},"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`."},{"name":"input_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected.","title":"Input Layer"},"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected."},{"name":"output_format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Which output vector format to use. Use a value from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name that supports creation. If not specified, infers format from output extension.","title":"Output Format"},"description":"Which output vector format to use. Use a value from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name that supports creation. If not specified, infers format from output extension."},{"name":"creation_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Many formats have one or more optional dataset creation options that can be used to control particulars about the file created. For instance, the GeoPackage driver supports creation options to control the version. May be repeated. The dataset creation options available vary by format driver, and some simple formats have no creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the creation options of each format. Note that dataset creation options are different from layer creation options. Provided as `KEY=VALUE`.","title":"Creation Option"},"description":"Many formats have one or more optional dataset creation options that can be used to control particulars about the file created. For instance, the GeoPackage driver supports creation options to control the version. May be repeated. The dataset creation options available vary by format driver, and some simple formats have no creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the creation options of each format. Note that dataset creation options are different from layer creation options. Provided as `KEY=VALUE`."},{"name":"layer_creation_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Many formats have one or more optional layer creation options that can be used to control particulars about the layer created. For instance, the GeoPackage driver supports layer creation options to control the feature identifier or geometry column name, setting the identifier or description, etc. May be repeated. The layer creation options available vary by format driver, and some simple formats have no layer creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the layer creation options of each format. Note that layer creation options are different from dataset creation options. Provided as `KEY=VALUE`.","title":"Layer Creation Option"},"description":"Many formats have one or more optional layer creation options that can be used to control particulars about the layer created. For instance, the GeoPackage driver supports layer creation options to control the feature identifier or geometry column name, setting the identifier or description, etc. May be repeated. The layer creation options available vary by format driver, and some simple formats have no layer creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the layer creation options of each format. Note that layer creation options are different from dataset creation options. Provided as `KEY=VALUE`."},{"name":"output_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Output layer name. Can only be used to rename a layer, if there is a single input layer.","title":"Output Layer"},"description":"Output layer name. Can only be used to rename a layer, if there is a single input layer."},{"name":"input_format","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name.","title":"Input Format"},"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name."},{"name":"open_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`.","title":"Open Option"},"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geodata/api/vector/filter":{"get":{"tags":["Vector Commands"],"summary":"Vector Filter","description":"Filter a vector dataset with a spatial extent (bbox) or a SQL WHERE clause.\n\n[Original documentation](https://gdal.org/en/stable/programs/gdal_vector_filter.html)","operationId":"vector_filter_geodata_api_vector_filter_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"input","in":"query","required":true,"schema":{"type":"string","description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`.","title":"Input"},"description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`."},{"name":"output","in":"query","required":true,"schema":{"type":"string","description":"Output vector dataset (required). The output format will be inferred by the file extension (example.geojson).","title":"Output"},"description":"Output vector dataset (required). The output format will be inferred by the file extension (example.geojson)."},{"name":"config","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`.","title":"Config"},"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`."},{"name":"input_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected.","title":"Input Layer"},"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected."},{"name":"output_format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Which output vector format to use. Use a value from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name that supports creation. If not specified, infers format from output extension.","title":"Output Format"},"description":"Which output vector format to use. Use a value from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name that supports creation. If not specified, infers format from output extension."},{"name":"creation_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Many formats have one or more optional dataset creation options that can be used to control particulars about the file created. For instance, the GeoPackage driver supports creation options to control the version. May be repeated. The dataset creation options available vary by format driver, and some simple formats have no creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the creation options of each format. Note that dataset creation options are different from layer creation options. Provided as `KEY=VALUE`.","title":"Creation Option"},"description":"Many formats have one or more optional dataset creation options that can be used to control particulars about the file created. For instance, the GeoPackage driver supports creation options to control the version. May be repeated. The dataset creation options available vary by format driver, and some simple formats have no creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the creation options of each format. Note that dataset creation options are different from layer creation options. Provided as `KEY=VALUE`."},{"name":"layer_creation_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Many formats have one or more optional layer creation options that can be used to control particulars about the layer created. For instance, the GeoPackage driver supports layer creation options to control the feature identifier or geometry column name, setting the identifier or description, etc. May be repeated. The layer creation options available vary by format driver, and some simple formats have no layer creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the layer creation options of each format. Note that layer creation options are different from dataset creation options. Provided as `KEY=VALUE`.","title":"Layer Creation Option"},"description":"Many formats have one or more optional layer creation options that can be used to control particulars about the layer created. For instance, the GeoPackage driver supports layer creation options to control the feature identifier or geometry column name, setting the identifier or description, etc. May be repeated. The layer creation options available vary by format driver, and some simple formats have no layer creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the layer creation options of each format. Note that layer creation options are different from dataset creation options. Provided as `KEY=VALUE`."},{"name":"output_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Output layer name. Can only be used to rename a layer, if there is a single input layer.","title":"Output Layer"},"description":"Output layer name. Can only be used to rename a layer, if there is a single input layer."},{"name":"skip_errors","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether failures to write feature(s) should be ignored. If not specified, `false`.","title":"Skip Errors"},"description":"Whether failures to write feature(s) should be ignored. If not specified, `false`."},{"name":"active_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set the active layer. When it is specified, only the layer specified by its name will be subject to the processing. Other layers will be not modified. If this option is not specified, all layers will be subject to the processing.","title":"Active Layer"},"description":"Set the active layer. When it is specified, only the layer specified by its name will be subject to the processing. Other layers will be not modified. If this option is not specified, all layers will be subject to the processing."},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bounds to which to filter the dataset. They are assumed to be in the CRS of the input dataset. The X and Y axis are the \"GIS friendly ones\", that is X is longitude or easting, and Y is latitude or northing. Note that filtering does not clip geometries to the bounding box. Provided as `xmin,ymin,xmax,ymax`.","title":"Bbox"},"description":"Bounds to which to filter the dataset. They are assumed to be in the CRS of the input dataset. The X and Y axis are the \"GIS friendly ones\", that is X is longitude or easting, and Y is latitude or northing. Note that filtering does not clip geometries to the bounding box. Provided as `xmin,ymin,xmax,ymax`."},{"name":"where","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Attribute query in a restricted form of the queries used in the [SQL WHERE statement](https://gdal.org/en/stable/user/ogr_sql_dialect.html#where).","title":"Where"},"description":"Attribute query in a restricted form of the queries used in the [SQL WHERE statement](https://gdal.org/en/stable/user/ogr_sql_dialect.html#where)."},{"name":"input_format","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name.","title":"Input Format"},"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name."},{"name":"open_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`.","title":"Open Option"},"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geodata/api/vector/info":{"get":{"tags":["Vector Commands"],"summary":"Vector Info","description":"Return various information about a GDAL supported vector dataset.\n\n[Original documentation](https://gdal.org/en/stable/programs/gdal_vector_info.html)","operationId":"vector_info_geodata_api_vector_info_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"input","in":"query","required":true,"schema":{"type":"string","description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`.","title":"Input"},"description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`."},{"name":"config","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`.","title":"Config"},"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`."},{"name":"input_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected.","title":"Input Layer"},"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected."},{"name":"features","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"List all features by default, unless limited with `limit`. Beware of RAM consumption on large layers. This option is mutually exclusive with the `summary` option.","title":"Features"},"description":"List all features by default, unless limited with `limit`. Beware of RAM consumption on large layers. This option is mutually exclusive with the `summary` option."},{"name":"summary","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Provide a summary with the list of layers and the geometry type of each layer. This option is mutually exclusive with the `features` option.","title":"Summary"},"description":"Provide a summary with the list of layers and the geometry type of each layer. This option is mutually exclusive with the `features` option."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Limit the number of features reported per layer. When set, this implies `features`.","title":"Limit"},"description":"Limit the number of features reported per layer. When set, this implies `features`."},{"name":"sql","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Execute the indicated SQL statement and return the result. Editing capabilities depend on the dialect selected with `dialect`. Mutually exclusive with `input_layer` and `where`.","title":"Sql"},"description":"Execute the indicated SQL statement and return the result. Editing capabilities depend on the dialect selected with `dialect`. Mutually exclusive with `input_layer` and `where`."},{"name":"where","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Attribute query in a restricted form of the queries used in the [SQL WHERE statement](https://gdal.org/en/stable/user/ogr_sql_dialect.html#where).","title":"Where"},"description":"Attribute query in a restricted form of the queries used in the [SQL WHERE statement](https://gdal.org/en/stable/user/ogr_sql_dialect.html#where)."},{"name":"dialect","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"By default the native SQL of an RDBMS is used. If a datasource does not support SQL natively, the default is to use the [OGRSQL dialect](https://gdal.org/en/stable/user/ogr_sql_dialect.html) (`OGRSQL`), which can also be specified with any data source. The [SQL SQLite dialect](https://gdal.org/en/stable/user/sql_sqlite_dialect.html) can be chosen with the `SQLITE` and `INDIRECT_SQLITE` dialect values, and this can be used with any data source. Overriding the default dialect may be beneficial because the capabilities of the SQL dialects vary.","title":"Dialect"},"description":"By default the native SQL of an RDBMS is used. If a datasource does not support SQL natively, the default is to use the [OGRSQL dialect](https://gdal.org/en/stable/user/ogr_sql_dialect.html) (`OGRSQL`), which can also be specified with any data source. The [SQL SQLite dialect](https://gdal.org/en/stable/user/sql_sqlite_dialect.html) can be chosen with the `SQLITE` and `INDIRECT_SQLITE` dialect values, and this can be used with any data source. Overriding the default dialect may be beneficial because the capabilities of the SQL dialects vary."},{"name":"open_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`.","title":"Open Option"},"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`."},{"name":"input_format","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name.","title":"Input Format"},"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geodata/api/vector/simplify":{"get":{"tags":["Vector Commands"],"summary":"Vector Simplify","description":"Simplify geometries of a vector dataset (for lines and polygons).\n\nEnsures that the result is a valid geometry having the same dimension and number of\ncomponents as the input.\n\nThe simplification uses a maximum distance difference algorithm similar to the one\nused in the Douglas-Peucker algorithm.\n\nThis done by a method which preserves the topology per feature, but not for a whole\nlayer. Thus gaps or overlaps between geometries that were initially contiguous may\nhappen. To perform simplification that preserves shared boundaries between\ngeometries, see [gdal vector simplify-coverage](https://gdal.org/en/stable/programs/gdal_vector_simplify_coverage.html).\n\n[Original documentation](https://gdal.org/en/stable/programs/gdal_vector_simplify.html)","operationId":"vector_simplify_geodata_api_vector_simplify_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"input","in":"query","required":true,"schema":{"type":"string","description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`.","title":"Input"},"description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`."},{"name":"output","in":"query","required":true,"schema":{"type":"string","description":"Output vector dataset (required). The output format will be inferred by the file extension (example.geojson).","title":"Output"},"description":"Output vector dataset (required). The output format will be inferred by the file extension (example.geojson)."},{"name":"tolerance","in":"query","required":true,"schema":{"type":"number","description":"Tolerance used for determining whether vertices should be removed (required). Specified in georeferenced units of the source layer.","title":"Tolerance"},"description":"Tolerance used for determining whether vertices should be removed (required). Specified in georeferenced units of the source layer."},{"name":"config","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`.","title":"Config"},"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`."},{"name":"input_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected.","title":"Input Layer"},"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected."},{"name":"output_format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Which output vector format to use. Use a value from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name that supports creation. If not specified, infers format from output extension.","title":"Output Format"},"description":"Which output vector format to use. Use a value from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name that supports creation. If not specified, infers format from output extension."},{"name":"creation_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Many formats have one or more optional dataset creation options that can be used to control particulars about the file created. For instance, the GeoPackage driver supports creation options to control the version. May be repeated. The dataset creation options available vary by format driver, and some simple formats have no creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the creation options of each format. Note that dataset creation options are different from layer creation options. Provided as `KEY=VALUE`.","title":"Creation Option"},"description":"Many formats have one or more optional dataset creation options that can be used to control particulars about the file created. For instance, the GeoPackage driver supports creation options to control the version. May be repeated. The dataset creation options available vary by format driver, and some simple formats have no creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the creation options of each format. Note that dataset creation options are different from layer creation options. Provided as `KEY=VALUE`."},{"name":"layer_creation_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Many formats have one or more optional layer creation options that can be used to control particulars about the layer created. For instance, the GeoPackage driver supports layer creation options to control the feature identifier or geometry column name, setting the identifier or description, etc. May be repeated. The layer creation options available vary by format driver, and some simple formats have no layer creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the layer creation options of each format. Note that layer creation options are different from dataset creation options. Provided as `KEY=VALUE`.","title":"Layer Creation Option"},"description":"Many formats have one or more optional layer creation options that can be used to control particulars about the layer created. For instance, the GeoPackage driver supports layer creation options to control the feature identifier or geometry column name, setting the identifier or description, etc. May be repeated. The layer creation options available vary by format driver, and some simple formats have no layer creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the layer creation options of each format. Note that layer creation options are different from dataset creation options. Provided as `KEY=VALUE`."},{"name":"output_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Output layer name. Can only be used to rename a layer, if there is a single input layer.","title":"Output Layer"},"description":"Output layer name. Can only be used to rename a layer, if there is a single input layer."},{"name":"skip_errors","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether failures to write feature(s) should be ignored. If not specified, `false`.","title":"Skip Errors"},"description":"Whether failures to write feature(s) should be ignored. If not specified, `false`."},{"name":"active_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set the active layer. When it is specified, only the layer specified by its name will be subject to the processing. Other layers will be not modified. If this option is not specified, all layers will be subject to the processing.","title":"Active Layer"},"description":"Set the active layer. When it is specified, only the layer specified by its name will be subject to the processing. Other layers will be not modified. If this option is not specified, all layers will be subject to the processing."},{"name":"active_geometry","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set the active geometry field from its name. When it is specified, only the specified geometry field will be subject to the processing. Other geometry fields will be not modified. If this option is not specified, all geometry fields will be subject to the processing. This option can be combined together with `active_layer`.","title":"Active Geometry"},"description":"Set the active geometry field from its name. When it is specified, only the specified geometry field will be subject to the processing. Other geometry fields will be not modified. If this option is not specified, all geometry fields will be subject to the processing. This option can be combined together with `active_layer`."},{"name":"input_format","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name.","title":"Input Format"},"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name."},{"name":"open_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`.","title":"Open Option"},"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geodata/api/vector/simplify-coverage":{"get":{"tags":["Vector Commands"],"summary":"Vector Simplify Coverage","description":"Simplify boundaries of a polygonal vector dataset (will give errors for lines).\n\nShared boundaries are preserved without introducing gaps or overlaps between\nfeatures. Gaps or overlaps already present in the input dataset will not be\ncorrected.\n\nThis requires loading the entire dataset into memory at once. If preservation of\nshared boundaries is not needed, [gdal vector simplify](https://gdal.org/en/stable/programs/gdal_vector_simplify.html)\nprovides an alternative that can process geometries in a streaming manner.\n\nSimplification is performed using the Visvalingam-Whyatt algorithm.\n\n[Original documentation](https://gdal.org/en/stable/programs/gdal_vector_simplify_coverage.html)","operationId":"vector_simplify_coverage_geodata_api_vector_simplify_coverage_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"input","in":"query","required":true,"schema":{"type":"string","description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`.","title":"Input"},"description":"Input vector dataset (required). Uses HDX [resource_id](https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-docs/build-with-hdx/build-with-hdx/overview/hdx-core-concepts#data-resources). Provided as UUID v4 `xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx`."},{"name":"output","in":"query","required":true,"schema":{"type":"string","description":"Output vector dataset (required). The output format will be inferred by the file extension (example.geojson).","title":"Output"},"description":"Output vector dataset (required). The output format will be inferred by the file extension (example.geojson)."},{"name":"tolerance","in":"query","required":true,"schema":{"type":"number","description":"Tolerance used for determining whether vertices should be removed (required). Specified in georeferenced units of the source layer.","title":"Tolerance"},"description":"Tolerance used for determining whether vertices should be removed (required). Specified in georeferenced units of the source layer."},{"name":"config","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`.","title":"Config"},"description":"Configuration option. May be repeated. Use values from [GDAL configuration options](https://gdal.org/en/stable/user/configoptions.html#list-of-configuration-options-and-where-they-are-documented). Provided as `KEY=VALUE`."},{"name":"input_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected.","title":"Input Layer"},"description":"Name of one or more layers to process. May be repeated. If no layer names are passed, then all layers will be selected."},{"name":"output_format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Which output vector format to use. Use a value from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name that supports creation. If not specified, infers format from output extension.","title":"Output Format"},"description":"Which output vector format to use. Use a value from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name that supports creation. If not specified, infers format from output extension."},{"name":"creation_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Many formats have one or more optional dataset creation options that can be used to control particulars about the file created. For instance, the GeoPackage driver supports creation options to control the version. May be repeated. The dataset creation options available vary by format driver, and some simple formats have no creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the creation options of each format. Note that dataset creation options are different from layer creation options. Provided as `KEY=VALUE`.","title":"Creation Option"},"description":"Many formats have one or more optional dataset creation options that can be used to control particulars about the file created. For instance, the GeoPackage driver supports creation options to control the version. May be repeated. The dataset creation options available vary by format driver, and some simple formats have no creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the creation options of each format. Note that dataset creation options are different from layer creation options. Provided as `KEY=VALUE`."},{"name":"layer_creation_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Many formats have one or more optional layer creation options that can be used to control particulars about the layer created. For instance, the GeoPackage driver supports layer creation options to control the feature identifier or geometry column name, setting the identifier or description, etc. May be repeated. The layer creation options available vary by format driver, and some simple formats have no layer creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the layer creation options of each format. Note that layer creation options are different from dataset creation options. Provided as `KEY=VALUE`.","title":"Layer Creation Option"},"description":"Many formats have one or more optional layer creation options that can be used to control particulars about the layer created. For instance, the GeoPackage driver supports layer creation options to control the feature identifier or geometry column name, setting the identifier or description, etc. May be repeated. The layer creation options available vary by format driver, and some simple formats have no layer creation options at all. See [vector drivers](https://gdal.org/en/stable/drivers/vector/index.html) format specific documentation for the layer creation options of each format. Note that layer creation options are different from dataset creation options. Provided as `KEY=VALUE`."},{"name":"output_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Output layer name. Can only be used to rename a layer, if there is a single input layer.","title":"Output Layer"},"description":"Output layer name. Can only be used to rename a layer, if there is a single input layer."},{"name":"skip_errors","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether failures to write feature(s) should be ignored. If not specified, `false`.","title":"Skip Errors"},"description":"Whether failures to write feature(s) should be ignored. If not specified, `false`."},{"name":"active_layer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set the active layer. When it is specified, only the layer specified by its name will be subject to the processing. Other layers will be not modified. If this option is not specified, all layers will be subject to the processing.","title":"Active Layer"},"description":"Set the active layer. When it is specified, only the layer specified by its name will be subject to the processing. Other layers will be not modified. If this option is not specified, all layers will be subject to the processing."},{"name":"preserve_boundary","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Flag indicating whether to preserve (avoid simplifying) external boundaries. This can be useful when simplifying a portion of a larger dataset. If not specified, `false`.","title":"Preserve Boundary"},"description":"Flag indicating whether to preserve (avoid simplifying) external boundaries. This can be useful when simplifying a portion of a larger dataset. If not specified, `false`."},{"name":"input_format","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name.","title":"Input Format"},"description":"Format to be attempted to open the input file. It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. May be repeated. Use values from [vector driver](https://gdal.org/en/stable/drivers/vector/index.html) short name."},{"name":"open_option","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`.","title":"Open Option"},"description":"Open option for the input vector dataset. Format specific, may be repeated. Available values differ for each [vector driver](https://gdal.org/en/stable/drivers/vector/index.html). Provided as `KEY=VALUE`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geodata/api/healthz":{"get":{"tags":["Health Check"],"summary":"Health Check","description":"Endpoint to check if the service is still running.","operationId":"health_check_geodata_api_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Check Geodata Api Healthz Get"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"Authorization"}}}}