whosonfirst / go-whosonfirst-index

Go package for indexing Who's On First documents
BSD 3-Clause "New" or "Revised" License
1 stars 4 forks source link

Ignore Emacs-style temporary files #14

Open thisisaaronland opened 3 years ago

thisisaaronland commented 3 years ago

Things like:

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:

> git grep 1729802937 | grep wof:id
data/172/980/293/7/#1729802937.geojson#:    "wof:id": 1729802937,
data/172/980/293/7/1729802937.geojson:    "wof:id": 1729802937,