From 4a6a408538273a6e55505bec1d48beb25f366475 Mon Sep 17 00:00:00 2001 From: Homme Zwaagstra Date: Wed, 19 Aug 2015 10:03:10 +0100 Subject: [PATCH 1/2] Specify the correct install command in the README. This fixes issue #3. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5de8ef9..2b631be 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ that Go does. Assuming that you have set the installation is a matter of running `go install`: ```sh -go install github.com/geo-data/cesium-terrain-server +go get github.com/geo-data/cesium-terrain-server/cmd/cesium-terrain-server ``` A program called `cesium-terrain-server` should then be available under your From c05f1fc048d9f8f3ec3c0aea452cc96b97353812 Mon Sep 17 00:00:00 2001 From: rumicuna Date: Fri, 4 Sep 2015 01:12:50 -0400 Subject: [PATCH 2/2] Was always returning hardcoded layer.json. Fixed so that the one in the tile root directory is returned if it exists. --- stores/fs/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/fs/fs.go b/stores/fs/fs.go index bd5a743..32a7f20 100644 --- a/stores/fs/fs.go +++ b/stores/fs/fs.go @@ -53,7 +53,7 @@ func (this *Store) Tile(tileset string, tile *stores.Terrain) (err error) { } func (this *Store) Layer(tileset string) ([]byte, error) { - filename := filepath.Join(tileset, "layer.json") + filename := filepath.Join(this.root, tileset, "layer.json") return this.readFile(filename) }