From 87e5b3eecc2f7b51f3f57baef866d9dd6c4a4c71 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Tue, 25 May 2021 21:53:08 +1000 Subject: blocks only needs NUMPOINTS attribute --- Makefile | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 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)' $< diff --git a/README.md b/README.md index 7d91a6d..0219da1 100644 --- a/README.md +++ b/README.md @@ -189,7 +189,7 @@ Generate city blocks: Sort blocks into containing some OSM addresses or containing no OSM addresses: - make data/blocksByOSMAddr.fgb + make dist/blocksByOSMAddr.fgb Conflate Vicmap addresses with OSM: -- cgit v1.2.3