forked from External/ergo
fix #782 (bring vendor into the main tree)
This commit is contained in:
parent
702c7b1e7c
commit
d0aa7cc860
616 changed files with 359667 additions and 31 deletions
25
vendor/github.com/tidwall/grect/README.md
generated
vendored
Normal file
25
vendor/github.com/tidwall/grect/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
GRECT
|
||||
====
|
||||
|
||||
Quickly get the outer rectangle for GeoJSON, WKT, WKB.
|
||||
|
||||
```go
|
||||
r := grect.Get(`{
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0],
|
||||
[100.0, 1.0], [100.0, 0.0] ]
|
||||
]
|
||||
}`)
|
||||
fmt.Printf("%v %v\n", r.Min, r.Max)
|
||||
// Output:
|
||||
// [100 0] [101 1]
|
||||
```
|
||||
|
||||
## Contact
|
||||
Josh Baker [@tidwall](http://twitter.com/tidwall)
|
||||
|
||||
## License
|
||||
|
||||
GRECT source code is available under the MIT [License](/LICENSE).
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue