mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-21 10:12:53 +01:00
fd3cbab6ee
Potentially fixes the database corruption seen on #1603 |
||
---|---|---|
.. | ||
go.mod | ||
go.sum | ||
grect.go | ||
LICENSE.md | ||
README.md |
GRECT
Quickly get the outer rectangle for GeoJSON, WKT, WKB.
:= grect.Get(`{
r "type": "Polygon",
"coordinates": [
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0],
[100.0, 1.0], [100.0, 0.0] ]
]
}`)
.Printf("%v %v\n", r.Min, r.Max)
fmt// Output:
// [100 0] [101 1]
Contact
Josh Baker @tidwall
License
GRECT source code is available under the MIT License.