Migliora layer e persistenza nomi 0.4.1
This commit is contained in:
1 parent
205a520708
commit
eb5f51795b
6 files changed
+480
-118
No files matched your search
@@ -85,7 +85,7 @@ public sealed class MapExportService
|
||||
{
|
||||
var root = new XElement("gpx",
|
||||
new XAttribute("version", "1.1"),
|
||||
new XAttribute("creator", "LME Mappe Catastali 0.3.0"),
|
||||
new XAttribute("creator", "LME Mappe Catastali 0.4.1"),
|
||||
new XAttribute(XNamespace.Xmlns + "xsi", "http://www.w3.org/2001/XMLSchema-instance"),
|
||||
new XElement("metadata", new XElement("name", name)));
|
||||
foreach (var feature in features.EnumerateArray())
|
||||
@@ -428,7 +428,8 @@ public sealed class MapExportService
|
||||
}
|
||||
|
||||
private static string FeatureName(JsonElement properties, string category) =>
|
||||
GetString(properties, "name")
|
||||
GetString(properties, "_lmeDisplayName")
|
||||
?? GetString(properties, "name")
|
||||
?? GetString(properties, "Name")
|
||||
?? GetString(properties, "LABEL")
|
||||
?? GetString(properties, "NATIONALCADASTRALREFERENCE")
|
||||
|
||||
Reference in new issue
Block a user