tile38/vendor/github.com/tidwall/grect
tidwall bac9cebc51 Upgrade go.mod 2021-03-30 08:09:03 -07:00
..
LICENSE.md Refactor repository and build scripts 2019-11-18 10:33:15 -07:00
README.md Refactor repository and build scripts 2019-11-18 10:33:15 -07:00
go.mod Upgrade go.mod 2021-03-30 08:09:03 -07:00
go.sum Upgrade go.mod 2021-03-30 08:09:03 -07:00
grect.go Refactor repository and build scripts 2019-11-18 10:33: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.