Skip to content
/ grect Public

Get the outer rectangle from GeoJSON, WKT, WKB

License

Notifications You must be signed in to change notification settings

tidwall/grect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Get the outer rectangle from GeoJSON, WKT, WKB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages