const url = ' https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/export?format=gpkg ' ;
const options = {method: ' GET ' } ;
const response = await fetch ( url , options );
const data = await response . json ();
--url ' https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/export?format=gpkg '
Export a dataset as a downloadable file.
Supports GeoPackage, GeoJSON, Shapefile (zipped), CSV, GeoParquet,
FlatGeobuf, and PMTiles formats. Optional CRS reprojection, spatial
filtering, and attribute filtering. GeoParquet is always emitted in
EPSG:4326 (OGC:CRS84). PMTiles renders zooms 0..N where N is extent-budgeted (ceiling 14).
Dataset Id string format: uuid
format
ExportFormat string
default: gpkg
Allowed values: gpkg geojson shp csv parquet fgb pmtiles
target_crs
Any of:
Target CRS, e.g. EPSG:3857
bbox
Any of:
Bounding box: minx,miny,maxx,maxy (WGS84)
where
Any of:
Attribute filter expression, e.g. pop > 1000
Select media type application/geopackage+sqlite3 application/vnd.apache.parquet application/vnd.flatgeobuf application/vnd.pmtiles application/zip text/csv
One byte range of the exported file
Select media type application/geopackage+sqlite3 application/vnd.apache.parquet application/vnd.flatgeobuf application/vnd.pmtiles application/zip text/csv
The caller already holds this version of the file
Bad request — invalid query parameters or payload
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,
Unauthenticated — a credential was supplied and could not be resolved (expired, revoked, or malformed). Sending no credential at all is not an error on these operations; they answer anonymously with the public subset.
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,
Forbidden — caller lacks access to this resource
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,
Precondition failed — the caller’s If-Match no longer matches the current representation
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,
Too many requests — retry after the advertised interval
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,
Retry-After
integer
Seconds until the request may be retried
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,
Service unavailable — the database could not serve the request
Media type application/problem+json
ProblemDetail object type
Type string
default: about:blank
Any of:
object key additional properties
any
Example
"detail" : " Dataset not found " ,