feat(parcel-sync): include no-geometry rows in Magic GPKG + HAS_GEOMETRY column

- Magic GPKG (terenuri_magic.gpkg) now contains ALL records:
  rows with geometry render as polygons, rows without have null geom
  but still carry all attribute/enrichment data (QGIS shows them fine)
- Added HAS_GEOMETRY column to Magic GPKG fields (0 or 1)
- GPKG builder now supports includeNullGeometry option: splits features
  into spatial-first (creates table), then appends null-geom rows
- Base terenuri.gpkg / cladiri.gpkg unchanged (spatial only)
- CSV still has all records as before
- GeoJsonFeature type now allows null geometry
- Reproject: null geometry guard added
- UI text updated: no longer says 'Nu apar in GPKG'
This commit is contained in:
AI Assistant
2026-03-07 18:06:28 +02:00
parent 96859dde4f
commit ba579d75c1
5 changed files with 106 additions and 38 deletions
@@ -36,6 +36,8 @@ export const reprojectFeatureCollection = (
if (from === to) return collection;
const features = collection.features.map((feature) => {
if (!feature.geometry) return feature;
if (feature.geometry.type === "Polygon") {
const geometry: GeoJsonPolygon = {
type: "Polygon",