Clip OSMM to GLA on extraction
This commit is contained in:
parent
381a378870
commit
73aa3df290
@ -4,9 +4,11 @@
|
||||
# Extract MasterMap
|
||||
#
|
||||
|
||||
: ${1?"Usage: $0 ./path/to/mastermap/dir"}
|
||||
: ${1?"Usage: $0 ./path/to/mastermap/dir ./path/to/boundary"}
|
||||
: ${2?"Usage: $0 ./path/to/mastermap/dir ./path/to/boundary"}
|
||||
|
||||
data_dir=$1
|
||||
boundary_file=$2
|
||||
|
||||
#
|
||||
# Extract buildings from *.gz to CSV
|
||||
@ -28,6 +30,7 @@ parallel \
|
||||
ogr2ogr \
|
||||
-select fid,descriptiveGroup \
|
||||
-f CSV $data_dir/{}.csv \
|
||||
-clipsrc $boundary_file \
|
||||
$data_dir/{} \
|
||||
TopographicArea \
|
||||
-lco GEOMETRY=AS_WKT
|
||||
|
Loading…
Reference in New Issue
Block a user