-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cheerfun
committed
Oct 14, 2019
1 parent
50717a0
commit 270e54e
Showing
5 changed files
with
183 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
package generator | ||
|
||
import "testing" | ||
import ( | ||
"log" | ||
"testing" | ||
) | ||
|
||
func TestGenerateTile(t *testing.T) { | ||
// generateTile(8, 208, 100, `water`, `geom`) // 0.5s | ||
generateTile(7, 106, 46, `water`, `geom`) // 1.8s | ||
// generateTile(7, 106, 46, `railways_3857`, `geom`) // 1.8s | ||
// generateTile(6, 52, 24, `water`, `geom`) // 58s | ||
// generateTile(4, 4, 1, `railways_3857`, `geom`) // s | ||
} | ||
|
||
func TestBoxToArray(t *testing.T) { | ||
boxToArray(`BOX(8155154.57602443 1865495.57173284,15038985.6866807 7087842.63996618)`) | ||
// boxToArray(`BOX(8155154.57602443 1865495.57173284,15038985.6866807 7087842.63996618)`) | ||
} | ||
|
||
func TestGetDataExtent(t *testing.T) { | ||
|
||
} | ||
|
||
func TestMain(t *testing.T) { | ||
err := Generate(`railways_3857`, `geom`) | ||
if err != nil { | ||
log.Fatal(`生成出错`) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
|
||
"pg-vt-tiler/generator" | ||
"pg-vt-tiler/cmd/generator" | ||
) | ||
|
||
// accept table name and geometry column name | ||
func main() { | ||
fmt.Println("test") | ||
generator.Execute() | ||
} |