Last active
July 16, 2024 08:47
-
-
Save marklit/39b3ea4f1c3177f5f48ef2a995bafc3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COPY ( | |
SELECT * EXCLUDE (geometry, | |
bbox, | |
names, | |
sources), | |
ST_GEOMFROMWKB(geometry) geom, | |
JSON(bbox) AS bbox, | |
JSON(names) AS names, | |
JSON(sources) AS sources | |
FROM read_parquet('s3://overturemaps-us-west-2/release/2024-06-13-beta.0/theme=buildings/type=building/*00208*', | |
filename=true, | |
hive_partitioning=1) | |
WHERE bbox.xmin BETWEEN 116.28749 AND 116.52790 AND | |
bbox.ymin BETWEEN 39.83297 AND 40.01533 | |
) | |
TO 'beijing.overture.gpkg' | |
WITH (FORMAT GDAL, | |
DRIVER 'GPKG', | |
LAYER_CREATION_OPTIONS 'WRITE_BBOX=YES'); |
Author
marklit
commented
Jul 13, 2024
•
for RELEASE in 2024-06-13-beta.1 \
2024-06-13-beta.0 \
2024-05-16-beta.0 \
2024-04-16-beta.0; do
echo $RELEASE
WORKING_DB="working.`uuidgen`.duckdb"
echo "COPY (
SELECT * EXCLUDE (geometry,
bbox,
names,
sources),
ST_GEOMFROMWKB(geometry) geom,
JSON(bbox) AS bbox,
JSON(names) AS names,
JSON(sources) AS sources
FROM read_parquet('s3://overturemaps-us-west-2/release/$RELEASE/theme=buildings/type=building/*',
filename=true,
hive_partitioning=1)
WHERE bbox.xmin BETWEEN 54.31391 AND 54.71493
AND bbox.ymin BETWEEN 24.33754 AND 24.53911
)
TO 'abu.dhabi.$RELEASE.gpkg'
WITH (FORMAT GDAL,
DRIVER 'GPKG',
LAYER_CREATION_OPTIONS 'WRITE_BBOX=YES');" \
| ~/duckdb -unsigned $WORKING_DB
rm $WORKING_DB $WORKING_DB.wal || true
done
The footprints largely haven't changed since at least April. It looks like orthofication has taken place. The tall buildings were photographed at an angle so it's only with linestring outlines that it is clear the footprints are probably very accurate. This data looks fine and doesn't seem to suffer the offset issue the Beijing data is having.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment