kopia lustrzana https://gitlab.com/tomaszg/geostat
Try to use local region name, even though I'm not sure it is wise
rodzic
5a6c76fc6a
commit
fdd7652e52
|
@ -46,6 +46,8 @@ std::map<std::string, ContourData*> Region::parse_geojson(const std::string& jso
|
|||
for (auto& el : j["features"].items()) {
|
||||
if (el.value()["properties"]["alltags"].count("short_name") > 0)
|
||||
name = el.value()["properties"]["alltags"]["short_name"];
|
||||
else if (el.value()["properties"].count("localname") > 0)
|
||||
name = el.value()["properties"]["localname"];
|
||||
else if (el.value()["properties"].count("name") > 0)
|
||||
name = el.value()["properties"]["name"];
|
||||
else {
|
||||
|
|
Ładowanie…
Reference in New Issue