Skip to content

Commit

Permalink
move all the http stuff in to go-whosonfirst-spatial-http
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Apr 4, 2020
1 parent 9af2765 commit f85d833
Show file tree
Hide file tree
Showing 145 changed files with 11 additions and 10,810 deletions.
26 changes: 0 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +0,0 @@
CWD=$(shell pwd)

go-bindata:
mkdir -p cmd/go-bindata
mkdir -p cmd/go-bindata-assetfs
curl -s -o cmd/go-bindata/main.go https://raw.githubusercontent.com/whosonfirst/go-bindata/master/cmd/go-bindata/main.go
curl -s -o cmd/go-bindata-assetfs/main.go https://raw.githubusercontent.com/whosonfirst/go-bindata-assetfs/master/cmd/go-bindata-assetfs/main.go

bake:
@make bake-static
@make bake-templates

bake-static:
go build -mod vendor -o bin/go-bindata cmd/go-bindata/main.go
go build -mod vendor -o bin/go-bindata-assetfs cmd/go-bindata-assetfs/main.go
rm -f static/*~ static/css/*~ static/javascript/*~
@PATH=$(PATH):$(CWD)/bin bin/go-bindata-assetfs -pkg www -o http/www/staticfs.go static static/javascript/ static/css/

bake-templates:
rm -rf templates/html/*~
bin/go-bindata -pkg templates -o assets/templates/html.go templates/html

debug:
@make bake
go run -mod vendor cmd/spatial-server/main.go -enable-www -enable-properties -spatial-database-uri 'rtree:///?strict=false' -properties-reader-uri 'whosonfirst:///?reader=fs://$(REPO)/data&cache=gocache://' -data-endpoint $(DATA_ENDPOINT) -nextzen-apikey $(APIKEY) -mode directory:// $(REPO)/data

21 changes: 0 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,4 @@ type PropertiesReader interface {
}
```

## Tools

### spatial-server

```
go run -mod vendor cmd/spatial-server/main.go \
-enable-www \
-spatial-database-uri 'rtree:///?strict=false' \
-properties-reader-uri 'whosonfirst:///?reader=fs:///usr/local/data/sfomuseum-data-maps/data&cache=gocache://' \
-data-endpoint https://millsfield.sfomuseum.org/data \
-nextzen-apikey {APIKEY}
-mode directory:// /usr/local/data/sfomuseum-data-maps/data
2020/04/03 09:40:26 -enable-www flag is true causing the following flags to also be true: -enable-geojson -enable-candidates -enable-properties
2020/04/03 09:40:26 Feature ID 1360391313 triggered the following warning: Invalid wof:placetype
2020/04/03 09:40:26 Feature ID 1360391317 triggered the following warning: Invalid wof:placetype
2020/04/03 09:40:26 Feature ID 1360391321 triggered the following warning: Invalid wof:placetype
...
09:40:26.241237 [main] STATUS finished indexing in 27.925694ms
```

## See also
308 changes: 0 additions & 308 deletions assets/templates/html.go

This file was deleted.

Loading

0 comments on commit f85d833

Please sign in to comment.