For example this uses go-whosonfirst-index to build an in-memory PIP spatial database:
> go run -mod vendor cmd/point-in-polygon/main.go -query 'properties.sfomuseum:placetype=gallery' -query 'properties.mz:is_current=1' -spatial-database-uri 'sqlite://?dsn=:memory:' \
-spatial-source /usr/local/data/sfomuseum-data-architecture /usr/local/data/sfomuseum-data-architecture/
2021/02/16 11:26:49 PATHS [/usr/local/data/sfomuseum-data-architecture]
2021/02/16 11:26:50 INDEX 1729802937
2021/02/16 11:26:50 INDEX 1729802937
2021/02/16 11:26:51 -122.38771606591274 37.6143874695422 1
2021/02/16 11:26:51 Update /usr/local/data/sfomuseum-data-architecture/data/172/980/301/9/1729803019.geojson
2021/02/16 11:26:51 -122.38769587933967 37.61435000323429 1
2021/02/16 11:26:51 -122.38796986270393 37.61431349822708 2
2021/02/16 11:26:51 San Francisco Airport Commission Aviation Library and Louis A. Turpen Aviation Museum 1729802937
2021/02/16 11:26:51 San Francisco Airport Commission Aviation Library and Louis A. Turpen Aviation Museum 1729802937
2021/02/16 11:26:51 Failed crawl callback for /usr/local/data/sfomuseum-data-architecture/data/147/785/595/5/1477855955.geojson: Multiple results (2), after filtering
exit status 1
And fails because there is a #{WOFID}.geojson file:
Things like:
#
~
For example this uses
go-whosonfirst-index
to build an in-memory PIP spatial database:And fails because there is a
#{WOFID}.geojson
file: