peterstace / simplefeatures

Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification
MIT License
127 stars 19 forks source link

Export `AsBox` method on `Envelope` #518

Closed peterstace closed 1 year ago

peterstace commented 1 year ago

Description

This is a helper method that converts a geom.Envelope to an rtree.Box. Without this helper, users have to call MinMaxXYs() to get the two extreme points from the Envelope, and then construct the rtree.Box manually.

Check List

Have you:

Related Issue

Benchmark Results

N/A

peterstace commented 1 year ago

Thanks for reviewing!