### Makefile ---
N=Hildale, Utah address / road name grid
DESC1=Using PLSS data.
## Author: Dan Jacobson https://www.jidanni.org/
## Copyright: https://www.gnu.org/licenses/gpl.html
## Created: 2024-04-03T10:48:47+0000
## Last-Updated: 2024-04-04T10:27:09+0000
##     Update #: 166

# https://gis.utah.gov/data/cadastre/plss/
# https://gis.utah.gov/data/address/address-grids/
# https://opendata.gis.utah.gov/datasets/utah-plss-point-gcdb/explore
D=~/Downloads
c=$D/UtahPLSSGCDBPoints_6962410382001284573.csv
W=hildale_ut
U = ../../../../utilities
export PERLLIB = $U
include $U/m1.makefile
C= > $@.t && test -s $@.t && mv $@.t $@
$W.vik:
$W.csv:$c pid2addr; ./pid2addr $< $C
# I also had a look at
# https://gis.utah.gov/products/sgid/location/address-system-quadrants/
k.vik:
k.kmz:$D/AddressSystemQuadrants_5*.geojson
#	ogrinfo $< -al -ro -q -where "GRID_NAME = 'HILDALE'"
	ogr2ogr $@ $< -where "GRID_NAME = 'HILDALE'"

clean:; rm *.csv