From dafb3555d7423f3395f7f3691ac90398f8e65420 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Fri, 27 Mar 2026 21:59:01 +0200 Subject: [PATCH] =?UTF-8?q?fix(tippecanoe):=20fix=20empty=20terenuri/cladi?= =?UTF-8?q?ri=20export=20=E2=80=94=20remove=20ST=5FSimplify=20from=20ogr2o?= =?UTF-8?q?gr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ogr2ogr doesn't auto-detect geometry from ST_SimplifyPreserveTopology(). Export raw geometry instead, let tippecanoe handle simplification (--simplification=10). Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/rebuild-overview-tiles.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scripts/rebuild-overview-tiles.sh b/scripts/rebuild-overview-tiles.sh index 01b0659..a339837 100644 --- a/scripts/rebuild-overview-tiles.sh +++ b/scripts/rebuild-overview-tiles.sh @@ -55,20 +55,17 @@ ogr2ogr -f FlatGeobuf -s_srs EPSG:3844 -t_srs EPSG:4326 \ administrativ.fgb "$PG_CONN" \ -sql "SELECT object_id, siruta, layer_id, cadastral_ref, geom FROM gis_administrativ WHERE geom IS NOT NULL" & -# Terenuri simplified for overview (ST_SimplifyPreserveTopology 5m tolerance — good for z10-z14) -# Only essential properties for overview display +# Terenuri for overview — let tippecanoe handle simplification ogr2ogr -f FlatGeobuf -s_srs EPSG:3844 -t_srs EPSG:4326 \ terenuri_overview.fgb "$PG_CONN" \ - -sql "SELECT object_id, siruta, cadastral_ref, area_value, layer_id, - ST_SimplifyPreserveTopology(geom, 5) AS geom - FROM gis_terenuri WHERE geom IS NOT NULL" & + -sql "SELECT object_id, siruta, cadastral_ref, area_value, layer_id, geom + FROM gis_terenuri WHERE geom IS NOT NULL" & -# Cladiri simplified for overview (3m tolerance — buildings are smaller) +# Cladiri for overview — let tippecanoe handle simplification ogr2ogr -f FlatGeobuf -s_srs EPSG:3844 -t_srs EPSG:4326 \ cladiri_overview.fgb "$PG_CONN" \ - -sql "SELECT object_id, siruta, cadastral_ref, area_value, layer_id, - ST_SimplifyPreserveTopology(geom, 3) AS geom - FROM gis_cladiri WHERE geom IS NOT NULL" & + -sql "SELECT object_id, siruta, cadastral_ref, area_value, layer_id, geom + FROM gis_cladiri WHERE geom IS NOT NULL" & wait echo "[$(date -Iseconds)] Export complete." @@ -90,6 +87,7 @@ tippecanoe \ --base-zoom=14 \ --drop-densest-as-needed \ --detect-shared-borders \ + --simplification=10 \ --hilbert \ --force