add prints
This commit is contained in:
parent
4b47483a70
commit
8d5f386349
@ -8,11 +8,11 @@
|
|||||||
: ${1?"Usage: $0 ./path/to/boundary"}
|
: ${1?"Usage: $0 ./path/to/boundary"}
|
||||||
boundary_file=$1
|
boundary_file=$1
|
||||||
|
|
||||||
# Load boundary
|
echo "Load boundary..."
|
||||||
psql -c "DROP TABLE IF EXISTS boundary"
|
psql -c "DROP TABLE IF EXISTS boundary"
|
||||||
shp2pgsql -s 3857 $boundary_file boundary | psql
|
shp2pgsql -s 3857 $boundary_file boundary | psql
|
||||||
|
|
||||||
# Delete geometries (hence buildings, building_properties)
|
echo "Delete geometries (hence buildings, building_properties)..."
|
||||||
psql -c "DELETE FROM geometries as g
|
psql -c "DELETE FROM geometries as g
|
||||||
USING boundary as b
|
USING boundary as b
|
||||||
WHERE b.gid = 1 AND NOT ST_ContainsProperly(b.geom, g.geometry_geom);"
|
WHERE b.gid = 1 AND NOT ST_ContainsProperly(b.geom, g.geometry_geom);"
|
||||||
|
Loading…
Reference in New Issue
Block a user