0
0
mirror of https://github.com/rls-moe/nyx synced 2024-09-28 16:03:47 +02:00
nyx/vendor/github.com/tidwall/grect
2017-03-12 20:37:53 +01:00
..
grect.go MVP, no mod tools or anything but it works 2017-03-12 20:37:53 +01:00
LICENSE.md MVP, no mod tools or anything but it works 2017-03-12 20:37:53 +01:00
README.md MVP, no mod tools or anything but it works 2017-03-12 20:37:53 +01: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.