• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..13-Apr-2018-

LICENSE.mdH A D13-Apr-20181.1 KiB2116

README.mdH A D13-Apr-2018465 2619

grect.goH A D13-Apr-20186.3 KiB338315

grect_test.goH A D13-Apr-20183.3 KiB10292

README.md

1GRECT
2====
3
4Quickly get the outer rectangle for GeoJSON, WKT, WKB.
5
6```go
7	r := grect.Get(`{
8      "type": "Polygon",
9      "coordinates": [
10        [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0],
11          [100.0, 1.0], [100.0, 0.0] ]
12        ]
13    }`)
14	fmt.Printf("%v %v\n", r.Min, r.Max)
15	// Output:
16	// [100 0] [101 1]
17```
18
19## Contact
20Josh Baker [@tidwall](http://twitter.com/tidwall)
21
22## License
23
24GRECT source code is available under the MIT [License](/LICENSE).
25
26