Get the outer rectangle from GeoJSON, WKT, WKB
Go to file
re ce69b9e46c fix repos 2022-12-12 18:20:31 +03: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 fix repos 2022-12-12 18:20:31 +03:00
go.sum fix repos 2022-12-12 18:20:31 +03:00
grect.go fix repos 2022-12-12 18:20:31 +03: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.