Documentation ¶
Index ¶
- Constants
- type Level
- type PointIndex
- func (ix *PointIndex) GetHitMultiple(l Level) map[intgeom.Point][]int
- func (ix *PointIndex) InsertCoord(deepestX int, deepestY int)
- func (ix *PointIndex) InsertPoint(point geom.Point)
- func (ix *PointIndex) InsertPolygon(polygon geom.Polygon)
- func (ix *PointIndex) SnapClosestPoints(line geom.Line, levelMap map[Level]any, ringID int) map[Level][][2]float64
- type Q
- type Quadrant
Constants ¶
View Source
const (
VectorTileInternalPixelResolution = 16
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PointIndex ¶
type PointIndex struct { Quadrant // contains filtered or unexported fields }
PointIndex is a pointcloud annex quadtree to enable snapping lines to a grid accounting for those points. Quadrants:
|-------| | 2 | 3 | |-------| | 0 | 1 | |-------|
Edges:
exc maxX 2 maxY |-------| | 3 | 2 | inc 3 |-------| 1 exc | 0 | 1 | |-------| minX 0 maxX inc
func FromTileMatrixSet ¶
func FromTileMatrixSet(tileMatrixSet tms20.TileMatrixSet, deepestTMID tms20.TMID) *PointIndex
func (*PointIndex) GetHitMultiple ¶
func (ix *PointIndex) GetHitMultiple(l Level) map[intgeom.Point][]int
func (*PointIndex) InsertCoord ¶
func (ix *PointIndex) InsertCoord(deepestX int, deepestY int)
InsertCoord inserts a Point by its x/y coord on the deepest level
func (*PointIndex) InsertPoint ¶
func (ix *PointIndex) InsertPoint(point geom.Point)
InsertPoint inserts a Point by its absolute coord
func (*PointIndex) InsertPolygon ¶
func (ix *PointIndex) InsertPolygon(polygon geom.Polygon)
InsertPolygon inserts all points from a Polygon
func (*PointIndex) SnapClosestPoints ¶
func (ix *PointIndex) SnapClosestPoints(line geom.Line, levelMap map[Level]any, ringID int) map[Level][][2]float64
SnapClosestPoints returns the points (centroids) in the index that are intersected by a line on multiple levels
Click to show internal directories.
Click to hide internal directories.