GeoCzech logo GeoCzech Docs

GeoCzech API

Geodata

Find out what is inside any geodata file — layers, number of features, geometry, coordinate system, extent and attributes. Free.

What it does

analyze opens your files the way a GIS would and writes a clear report of what it found. It works with single files, whole folders packed in a ZIP, and archives with dozens of datasets inside.

Typical uses

  • "Someone sent me a file — what is it?" Format, layers, what kind of data.
  • Check the coordinate system before converting or importing data.
  • Count features and list attribute names and types — for example to build a form or a database import automatically.
  • Get the extent (bounding box) to zoom a map to the data.
  • Validate uploads in your own application — reject empty, damaged or unreferenced files before they cause trouble.
  • Check rasters: size in pixels, number of bands, data type, resolution.

At a glance

  • Endpoint: POST /v2/tool/geodata
  • Method: analyze
  • Inputs: upload (files) or link (file_urls); archives are unpacked
  • Result: the report in json_data (also result.json)
  • Price: free

Analyze files

Send one or more files and {"method": "analyze"}. Nothing else is needed — the optional parameters below help with tables and files without a coordinate system.

params

method string required

The method to run.

Allowed values: analyze

country_code string

Two-letter country code (GB, FR, DE …) — a hint for guessing coordinate columns and the coordinate system of tables and files without a .prj.

x_possible_names string or array

Names of the column(s) with X / longitude in a table, e.g. "lon" or ["Longitude", "X"]. Only needed when automatic detection fails (see Questions back).

y_possible_names string or array

The same for Y / latitude.

Advanced parameters (3)
z_possible_names string or array

The same for height (Z).

source_crs string

Force a coordinate system for all datasets, e.g. EPSG:32730. The original value stays in the report as crs.overriddenFrom. Use only when you know the file's CRS is missing or wrong.

dataset_options object

Settings for individual files, keyed by file name, e.g. {"points.xlsx": {"gdal": {"openOptions": {"X_POSSIBLE_NAMES": "Lon"}}}}.

Analyze a file from a URL
curl -X POST "https://api.geoczech.dev/v2/tool/geodata" \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file_urls=https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson" \
  --form-string 'params={"method": "analyze"}' \
  -F "wait=true"
Response
{
  "status": "SUCCESS",
  "output_files": ["https://…/result.json?…"],
  "json_data": {
    "schemaVersion": "2.4",
    "status": "ok",
    "summary": {
      "datasetCount": 1,
      "fileCount": 1,
      "totalSizeBytes": 11811,
      "drivers": ["GeoJSON"],
      "crs": [{"code": "EPSG:4326", "name": "WGS 84", "type": "geographic"}],
      "extentWgs84": [-5.7721743, -16.008899, -5.638883, -15.906601]
    },
    "vector": {
      "datasetCount": 1,
      "layerCount": 1,
      "featureCount": 58,
      "datasets": [{
        "name": "st-helena-places.geojson",
        "driver": {"code": "GeoJSON", "formatKey": "geojson", "formatLabel": "GeoJSON"},
        "layers": [{
          "name": "st-helena-places",
          "featureCount": 58,
          "geometry": {"declared": "POINT", "actual": ["POINT"]},
          "crs": {"code": "EPSG:4326", "name": "WGS 84", "units": "degree", "native": true},
          "extentOrig": [-5.7721743, -16.008899, -5.638883, -15.906601],
          "extentWgs84": [-5.7721743, -16.008899, -5.638883, -15.906601],
          "attributes": [
            {"name": "id", "type": "Integer"},
            {"name": "name", "type": "String"},
            {"name": "category", "type": "String"},
            {"name": "kind", "type": "String"},
            {"name": "elevation", "type": "Integer"}
          ]
        }]
      }]
    },
    "raster": {"datasetCount": 0}
  }
}

More examples

The same call works for every kind of data. A zipped Shapefile is unpacked and its parts are recognised as one dataset; a GeoTIFF reports its raster properties.

A zipped Shapefile
curl -X POST "https://api.geoczech.dev/v2/tool/geodata" \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file_urls=https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip" \
  --form-string 'params={"method": "analyze"}' \
  -F "wait=true"
json_data
{
  "status": "ok",
  "summary": {
    "datasetCount": 1,
    "fileCount": 5,
    "drivers": ["ESRI Shapefile"],
    "crs": [{"code": "EPSG:32730", "name": "WGS 84 / UTM zone 30S", "type": "projected"}],
    "extentWgs84": [-5.7723, -16.0101, -5.6383, -15.9057]
  },
  "vector": {
    "datasets": [{
      "name": "st-helena-places-utm.shp",
      "origin": {"archive": "st-helena-places-utm.zip"},
      "encoding": "UTF-8",
      "layers": [{
        "name": "st-helena-places-utm",
        "featureCount": 58,
        "geometry": {"declared": "POINT"},
        "crs": {"code": "EPSG:32730", "units": "metre", "native": true},
        "extentOrig": [203303.39, 8228156.02, 217506.79, 8239527.13],
        "attributes": [
          {"name": "id", "type": "Integer", "width": 4},
          {"name": "name", "type": "String", "width": 40},
          {"name": "category", "type": "String", "width": 16},
          {"name": "kind", "type": "String", "width": 12},
          {"name": "elevation", "type": "Integer", "width": 5}
        ]
      }]
    }]
  }
}
A raster (GeoTIFF)
curl -X POST "https://api.geoczech.dev/v2/tool/geodata" \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file_urls=https://cdn.geoczech.dev/docs-samples/v1/st-helena-dem.tif" \
  --form-string 'params={"method": "analyze"}' \
  -F "wait=true"
json_data → raster
{
  "datasetCount": 1,
  "bandCount": 1,
  "datasets": [{
    "name": "st-helena-dem.tif",
    "driver": {"code": "GTiff", "formatLabel": "TIFF with georeferencing (GeoTIFF)"},
    "size": {"width": 600, "height": 504},
    "bands": [{
      "index": 1,
      "dataType": "Int16",
      "nodata": -9999,
      "stats": {"min": -3, "max": 808, "mean": 165.03}
    }],
    "geotransform": {"originX": 200700, "originY": 8240520, "pixelSizeX": 30, "pixelSizeY": -30},
    "crs": {"code": "EPSG:32730", "units": "metre", "native": true},
    "georeferenced": true,
    "compression": "DEFLATE",
    "extentWgs84": [-5.7969, -16.0351, -5.6271, -15.8964]
  }]
}

Reading the report

The report is organised from general to detailed:

Field Meaning
status ok; partial = some files could not be read (see errors); error.
summary.datasetCount, fileCount How many datasets and files were found.
summary.crs[] All coordinate systems used, with EPSG code and name.
summary.extentWgs84 Bounding box of all data in WGS 84: [west, south, east, north].
summary.drivers Formats found (driver names).
vector.datasets[] One entry per vector dataset: name, driver (format), encoding, origin (the archive it came from).
vector.datasets[].layers[] Each layer: name, featureCount, geometry, crs, extentOrig (in the layer's own CRS), extentWgs84 and attributes (name, type).
raster.datasets[] One entry per raster: size (width/height in pixels), bands[] (data type, no-data value, statistics), geotransform (pixel size), crs, extents.
warnings[] E.g. EMPTY_DATASET, RASTER_NOT_GEOREFERENCED.
errors[] Files that could not be read, e.g. UNPACK_FAILED for a broken archive.
nonGeoFiles[] Files that are not geodata (PDFs, images without location …).
needsInput The tool needs an answer from you — see below.

crs.native: true means the coordinate system is written in the file itself; false means it was estimated.

Questions back (needsInput)

Sometimes a file cannot be understood without your help. Then the report contains needsInput with what is missing:

  • COORDINATE_COLUMNS_UNDETECTED — a table where no X/Y columns could be found. Answer by calling analyze again with the same file plus x_possible_names and y_possible_names.
  • CRS_UNKNOWN — the data has no coordinate system. The data is usable, but cannot be placed on a map correctly. Answer with source_crs (or country_code to get candidates).

Pass the same answers to the Converter when you convert the file (source.open_options, source.source_crs).

Tell analyze which columns hold the coordinates
curl -X POST "https://api.geoczech.dev/v2/tool/geodata" \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file_urls=https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv" \
  --form-string 'params={
    "method": "analyze",
    "x_possible_names": "lon",
    "y_possible_names": "lat",
    "country_code": "SH"
  }' \
  -F "wait=true"

Supported data

Group Examples
Vector GIS Shapefile, GeoPackage, GeoJSON, KML/KMZ, GML, File Geodatabase, FlatGeobuf, CSV/Excel with coordinates
Raster GeoTIFF, PNG/JPEG with world files, and many others
CAD DXF, DGN (DWG depending on availability)
GPS GPX, Garmin, NMEA, IGC and other GPS formats
Archives ZIP, 7z, RAR, TAR, GZ — also nested

Files that are not geodata are listed in nonGeoFiles instead of causing an error.

Last updated 2026-11-17