validate_geodata
Check whether a dataset's DECLARED coordinate reference system actually describes its own coordinates, before you draw it on a map. Catches the failures that are otherwise silent: swapped lat/lon axes, degrees labelled as metres, and Web Mercator or another projection mislabelled with a UTM or national-grid code. Pass the declared CRS (e.g. "EPSG:4326") and a sample of the raw coordinates as {x, y} in the dataset's OWN units — deliberately not named lon/lat, because whether they are degrees is the question. Returns a verdict (consistent / suspect / impossible), what is wrong in plain language, and where the numbers actually point when read another way. This is a sanity check, not a reprojection: it never transforms coordinates. Local computation: no network call, no quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coordinates | Yes | A sample of the dataset's coordinates. A few dozen is plenty; the check is about ranges and spans, not volume. | |
| declared_crs | Yes | The CRS the dataset claims, e.g. `"EPSG:4326"`, `"EPSG:32610"`, `"EPSG:3857"`, `"EPSG:27700"`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extent | Yes | Observed extent of the sample, in the dataset's own units. | |
| verdict | Yes | ||
| problems | Yes | Plain-language findings, most important first. Empty when consistent. | |
| suggestions | Yes | What the numbers look like, when they do not match the declaration. | |
| interpreted_as | Yes | The CRS family the declaration was understood as. |