Get the outer rectangle from GeoJSON, WKT, WKB
Go to file
dependabot[bot] eaadfcb89c
Bump github.com/tidwall/gjson from 1.8.0 to 1.9.3
Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.8.0 to 1.9.3.
- [Release notes](https://github.com/tidwall/gjson/releases)
- [Commits](https://github.com/tidwall/gjson/compare/v1.8.0...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/tidwall/gjson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 19:45:07 +00:00
LICENSE.md first commit 2016-10-06 07:11:15 -07:00
README.md first commit 2016-10-06 07:11:15 -07:00
go.mod Bump github.com/tidwall/gjson from 1.8.0 to 1.9.3 2021-10-25 19:45:07 +00:00
go.sum Bump github.com/tidwall/gjson from 1.8.0 to 1.9.3 2021-10-25 19:45:07 +00:00
grect.go first commit 2016-10-06 07:11:15 -07:00
grect_test.go first commit 2016-10-06 07:11:15 -07:00

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.