slice retains tags, lookup function

This commit is contained in:
randogoth 2025-02-26 14:01:09 +00:00
parent 7d24fb338a
commit f2931af8dd
4 changed files with 89 additions and 6 deletions

View file

@ -97,7 +97,7 @@ def slice_and_split_geoparquet(input_file: str, output_dir: str):
# Clip geometries inside this geohash box
filtered_data = con.execute(f"""
SELECT feature_id, rowid,
SELECT feature_id, tags,
ST_AsWKB(ST_Intersection(geometry,
ST_MakeEnvelope({geohash_bbox["w"]}, {geohash_bbox["s"]},
{geohash_bbox["e"]}, {geohash_bbox["n"]})))