Skip to content
getgeolens.com

Export Dataset Endpoint

GET
/datasets/{dataset_id}/export
curl --request GET \
--url 'https://example.com/api/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/export?format=gpkg' \
--header 'Authorization: Bearer <token>'

Export a dataset as a downloadable file.

Supports GeoPackage, GeoJSON, Shapefile (zipped), and CSV formats. Optional CRS reprojection, spatial filtering, and attribute filtering.

dataset_id
required
Dataset Id
string format: uuid
format
ExportFormat

Export format

string
default: gpkg
Allowed values: gpkg geojson shp csv

Export format

target_crs
Any of:
string

Target CRS, e.g. EPSG:3857

bbox
Any of:
string

Bounding box: minx,miny,maxx,maxy (WGS84)

where
Any of:
string

Attribute filter expression, e.g. pop > 1000

Successful Response

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}