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(alsoresult.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
-
methodstring required -
The method to run.
Allowed values:
analyze -
country_codestring -
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_namesstring 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_namesstring or array -
The same for Y / latitude.
Advanced parameters (3)
-
z_possible_namesstring or array -
The same for height (Z).
-
source_crsstring -
Force a coordinate system for all datasets, e.g.
EPSG:32730. The original value stays in the report ascrs.overriddenFrom. Use only when you know the file's CRS is missing or wrong. -
dataset_optionsobject -
Settings for individual files, keyed by file name, e.g.
{"points.xlsx": {"gdal": {"openOptions": {"X_POSSIBLE_NAMES": "Lon"}}}}.
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/geodata",
headers={"X-API-Key": API_KEY},
files={
"file_urls": (None, "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson"),
"params": (None, json.dumps({"method": "analyze"})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("file_urls", "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson");
form.append("params", JSON.stringify({"method": "analyze"}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/geodata", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/geodata");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"file_urls" => "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson",
"params" => json_encode(["method" => "analyze"]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson"), "file_urls");
form.Add(new StringContent("""{"method": "analyze"}"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/geodata", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"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.
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/geodata",
headers={"X-API-Key": API_KEY},
files={
"file_urls": (None, "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip"),
"params": (None, json.dumps({"method": "analyze"})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("file_urls", "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip");
form.append("params", JSON.stringify({"method": "analyze"}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/geodata", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/geodata");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"file_urls" => "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip",
"params" => json_encode(["method" => "analyze"]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip"), "file_urls");
form.Add(new StringContent("""{"method": "analyze"}"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/geodata", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"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}
]
}]
}]
}
}
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/geodata",
headers={"X-API-Key": API_KEY},
files={
"file_urls": (None, "https://cdn.geoczech.dev/docs-samples/v1/st-helena-dem.tif"),
"params": (None, json.dumps({"method": "analyze"})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("file_urls", "https://cdn.geoczech.dev/docs-samples/v1/st-helena-dem.tif");
form.append("params", JSON.stringify({"method": "analyze"}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/geodata", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/geodata");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"file_urls" => "https://cdn.geoczech.dev/docs-samples/v1/st-helena-dem.tif",
"params" => json_encode(["method" => "analyze"]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("https://cdn.geoczech.dev/docs-samples/v1/st-helena-dem.tif"), "file_urls");
form.Add(new StringContent("""{"method": "analyze"}"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/geodata", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"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 callinganalyzeagain with the same file plusx_possible_namesandy_possible_names.CRS_UNKNOWN— the data has no coordinate system. The data is usable, but cannot be placed on a map correctly. Answer withsource_crs(orcountry_codeto get candidates).
Pass the same answers to the Converter when you
convert the file (source.open_options, source.source_crs).
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/geodata",
headers={"X-API-Key": API_KEY},
files={
"file_urls": (None, "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv"),
"params": (None, json.dumps({
"method": "analyze",
"x_possible_names": "lon",
"y_possible_names": "lat",
"country_code": "SH",
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("file_urls", "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv");
form.append("params", JSON.stringify({
"method": "analyze",
"x_possible_names": "lon",
"y_possible_names": "lat",
"country_code": "SH"
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/geodata", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/geodata");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"file_urls" => "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv",
"params" => json_encode([
"method" => "analyze",
"x_possible_names" => "lon",
"y_possible_names" => "lat",
"country_code" => "SH",
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.csv"), "file_urls");
form.Add(new StringContent("""
{
"method": "analyze",
"x_possible_names": "lon",
"y_possible_names": "lat",
"country_code": "SH"
}
"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/geodata", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
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