aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-25 21:53:08 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-25 21:53:08 +1000
commit87e5b3eecc2f7b51f3f57baef866d9dd6c4a4c71 (patch)
tree5c2ee299e7b3ffc3cb4943cc2c00e233961bacf1 /Makefile
parentb10c8ea6800afa310cad1c9371c6af392473d2d9 (diff)
blocks only needs NUMPOINTS attribute
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1c2ec91..bdebbf8 100644
--- a/Makefile
+++ b/Makefile
@@ -162,7 +162,7 @@ dist/blocksByOSMAddr.fgb: data/victoria-addr.osm.centroids.fgb data/blocksWithCo
qgis_process run native:countpointsinpolygon -- POINTS=$< POLYGONS='data/blocksWithCoastalStripSplit.fgb' FIELD=NUMPOINTS OUTPUT=$@
dist/blocksByOSMAddr.geojson: dist/blocksByOSMAddr.fgb
- ogr2ogr -f GeoJSONSeq $@ $<
+ ogr2ogr -f GeoJSONSeq -select 'NUMPOINTS' $@ $<
summariseBlocksByOSMAddr: dist/blocksByOSMAddr.geojson
ogrinfo -dialect sqlite -sql 'select count(*), NUMPOINTS = 0 from blocksByOSMAddr group by (NUMPOINTS = 0)' $<