Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToFeatureCollection ¶
func ToFeatureCollection(indexes []h3.H3Index) (*geojson.FeatureCollection, error)
ToFeatureCollection converts a set of hexagons to a GeoJSON `FeatureCollection` with the set outline(s). The feature's geometry type will be `Polygon`.
func ToH3 ¶
ToH3 converts a GeoJSON objects to a list of hexagons with specified resolution.
Known list of objects:
- Point, MultiPoint
- Line, MultiLine
- Polygon, MultiPolygon
- GeometryCollection
- Feature, FeatureCollection
Extended GeoJSON library:
- Rect, Circle, SimplePoint
Note that conversion from GeoJSON * is lossy; the resulting hexagon set only approximately describes the original * shape, at a level of precision determined by the hexagon resolution.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.