gorush/vendor/github.com/tidwall/grect
Bo-Yi Wu 23bd0d0c56 feat: switch glide to govendor. (#186)
* feat: switch glide to govendor.

* fix: testing
2017-02-19 15:04:00 +08:00
..
LICENSE.md feat: switch glide to govendor. (#186) 2017-02-19 15:04:00 +08:00
README.md feat: switch glide to govendor. (#186) 2017-02-19 15:04:00 +08:00
grect.go feat: switch glide to govendor. (#186) 2017-02-19 15:04:00 +08: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.