Add units for coordinate components in CRS response
kbevers opened this issue · comments
When querying a specific CRS we are told which components a coordinate is made up of but not their units. E.g.
$curl http://127.0.0.1:5000/v1.0/crs/EPSG:25832
{
country: "DK",
title: "ETRS89 / UTM Zone 32 Nord",
title_short: "ETRS89/UTM32N",
v1: "Easting",
v1_short: "x",
v2: "Northing",
v2_short: "y",
v3: "kote",
v3_short: "h",
v4: null,
v4_short: null
}
This makes it problematic for consuming apps to display the correct unit of a specific coordinate. The CRS response should be expanded to also include the units, e.g.:
$curl http://127.0.0.1:5000/v1.0/crs/EPSG:25832
{
country: "DK",
title: "ETRS89 / UTM Zone 32 Nord",
title_short: "ETRS89/UTM32N",
v1: "Easting",
v1_short: "x",
v1_unit: "m",
v2: "Northing",
v2_short: "y",
v2_unit: "m",
v3: "kote",
v3_short: "h",
v3_unit: "m",
v4: null,
v4_short: null,
v4_unit: null,
}
The change is fairly simple and should mostly be a matter of expanding the contents of webproj\data.json
.