mirror of https://github.com/tidwall/grect.git
f6c7ae3113 | ||
---|---|---|
LICENSE.md | ||
README.md | ||
go.mod | ||
go.sum | ||
grect.go | ||
grect_test.go |
README.md
GRECT
Quickly get the outer rectangle for GeoJSON, WKT, WKB.
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
License
GRECT source code is available under the MIT License.