EricKIm 260399f16d 230327-1334-Kim | há 1 ano atrás | |
---|---|---|
.. | ||
LICENSE.md | há 1 ano atrás | |
README.md | há 1 ano atrás | |
grect.go | há 1 ano atrás |
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]
Josh Baker @tidwall
GRECT source code is available under the MIT License.