Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSpreaders ¶
func MakeSpreaders(fc *geojson.FeatureCollection, prop string, qt *quadtree.Quadtree) <-chan *Spreader
MakeSpreaders returns a chan of Spreader structs to efficiently process all features
Types ¶
type Spreader ¶
type Spreader struct { Feature *geojson.Feature AggregateValue float64 SpreadFeatures []*geojson.Feature }
Spreader manages spreading a Feature into SpreadFeatures based on the AggregateValue
func NewSpreader ¶
func NewSpreader(feat *geojson.Feature, features []*geojson.Feature, prop string) (*Spreader, error)
NewSpreader creates a Spreader, returning nil if the property value cannot be parsed
func (*Spreader) TotalSpreadValue ¶
TotalSpreadValue returns the amount to use for spreading points inside a feature (currently area)
Click to show internal directories.
Click to hide internal directories.