3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 20:09:41 +01:00
ergo/vendor/github.com/tidwall/grect
Shivaram Lingamneni fd3cbab6ee bump buntdb to v1.2.3
Potentially fixes the database corruption seen on #1603
2021-04-01 20:45:15 -04:00
..
go.mod bump buntdb to v1.2.3 2021-04-01 20:45:15 -04:00
go.sum bump buntdb to v1.2.3 2021-04-01 20:45:15 -04:00
grect.go fix #782 (bring vendor into the main tree) 2020-02-12 13:19:23 -05:00
LICENSE.md fix #782 (bring vendor into the main tree) 2020-02-12 13:19:23 -05:00
README.md fix #782 (bring vendor into the main tree) 2020-02-12 13:19:23 -05:00

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.