Always retain KML lines and points
This commit is contained in:
1 parent
0b5017739c
commit
83ea1696cd
3 files changed
+10
-5
No files matched your search
@@ -28,8 +28,8 @@
|
||||
<ApplicationId>it.liviomerola.lmemappecatastali.pro</ApplicationId>
|
||||
|
||||
<!-- Versions -->
|
||||
<ApplicationDisplayVersion>1.0.1</ApplicationDisplayVersion>
|
||||
<ApplicationVersion>101</ApplicationVersion>
|
||||
<ApplicationDisplayVersion>1.0.2</ApplicationDisplayVersion>
|
||||
<ApplicationVersion>102</ApplicationVersion>
|
||||
<Version>$(ApplicationDisplayVersion)</Version>
|
||||
|
||||
<!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
App .NET MAUI Blazor Hybrid per Android, iOS, Mac Catalyst e Windows, pensata per consultare mappe catastali e lavorare sul campo con GPS.
|
||||
|
||||
## Versione Pro 1.0.2 test
|
||||
|
||||
- Linee e punti KML/KMZ vengono sempre importati, anche quando il documento viene riconosciuto come catastale; il filtro particelle separa soltanto i poligoni di foglio o cornice.
|
||||
|
||||
## Versione Pro 1.0.1 test
|
||||
|
||||
- Il controllo aggiornamenti Pro ignora le release e gli APK della versione Base e segue esclusivamente il canale Pro.
|
||||
|
||||
@@ -1063,12 +1063,13 @@ function normalizeKmlFiles(files) {
|
||||
const parcelSet = new Set(parcels);
|
||||
const sheetParts = polygonParts.filter(feature => !parcelSet.has(feature));
|
||||
const nonPolygonFeatures = features.filter(feature => geometryPolygons(feature.geometry).length === 0);
|
||||
const optionalFeatures = [...sheetParts, ...nonPolygonFeatures];
|
||||
if (!parcels.length && !(lmeState.includeKmlSheetLayer && optionalFeatures.length)) {
|
||||
const importedFeatures = [...parcels, ...nonPolygonFeatures];
|
||||
const optionalFeatures = sheetParts;
|
||||
if (!importedFeatures.length && !(lmeState.includeKmlSheetLayer && optionalFeatures.length)) {
|
||||
throw new Error("nessuna particella trovata; attiva 'includi layer del foglio' per importare gli altri elementi");
|
||||
}
|
||||
return {
|
||||
geojson: { type: "FeatureCollection", features: parcels },
|
||||
geojson: { type: "FeatureCollection", features: importedFeatures },
|
||||
sheetGeojson: {
|
||||
type: "FeatureCollection",
|
||||
features: lmeState.includeKmlSheetLayer ? optionalFeatures : []
|
||||
|
||||
Reference in new issue
Block a user