MCPcopy Create free account

hub / github.com/MadAppGang/gocluster / functions

Functions37 in github.com/MadAppGang/gocluster

↓ 8 callersFunctionimportData
(filename string)
cluster_test.go:250
↓ 7 callersMethodClusterPoints
ClusterPoint get points and create multilevel clustered indexes All points should implement GeoPoint interface they are not copied, so you could not w
cluster.go:83
↓ 7 callersFunctionNewCluster
Create new Cluster instance with default parameters: MinZoom = 0 MaxZoom = 16 PointSize = 40 TileSize = 512 (GMaps and OSM default) NodeSize is size o
cluster.go:68
↓ 5 callersFunctionMercatorProjection
longitude/latitude to spherical mercator in [0..1] range
cluster.go:341
↓ 3 callersMethodGetClusters
Returns the array of clusters for zoom level. The northWest and southEast points are boundary points of square, that should be returned. nothWest is l
cluster.go:122
↓ 3 callersMethodGetCoordinates
()
cluster.go:22
↓ 3 callersMethodGetTile
return points for Tile with coordinates x and y and for zoom z return objects with pixel coordinates
cluster.go:162
↓ 3 callersFunctionReverseMercatorProjection
(x, y float64)
cluster.go:349
↓ 3 callersMethodlimitZoom
(zoom int)
cluster.go:313
↓ 3 callersMethodpointIDToLatLonPoint
(ids []int, points []kdbush.Point)
cluster.go:244
↓ 3 callersMethodpointIDToMerkatorPoint
calc Point mercator projection regarding tile
cluster.go:231
↓ 2 callersFunctionclustersToPoints
(points []*ClusterPoint)
cluster.go:369
↓ 2 callersFunctionfloatEquals
(a, b float64)
cluster_test.go:292
↓ 2 callersMethodgetTile
(x,y,z int, latlon bool)
cluster.go:172
↓ 2 callersFunctionround
(val float64)
cluster.go:375
↓ 1 callersMethodAllClusters
AllClusters returns all cluster points, array of ClusterPoint, for zoom on the map. X coordinate of returned object is Longitude and. Y coordinate of
cluster.go:143
↓ 1 callersMethodclusterize
clusterize points for zoom level
cluster.go:260
↓ 1 callersFunctiondigitsCount
count number of digits, for example 123356 will return 6
cluster.go:359
↓ 1 callersFunctionimportData
type MercatorPoint struct { Cluster cluster.ClusterPoint MercatorX int MercatorY int } func mercator(p cluster.ClusterPoint) MercatorPoint { mp :
play/main.go:42
↓ 1 callersFunctionimportGeoJSONResultFeature
(filename string)
cluster_test.go:277
↓ 1 callersFunctionimportPoints
(filename string)
cluster_test.go:265
↓ 1 callersFunctiontranslateGeoPointsToClusterPoints
End of Cluster implementation private stuff translate geopoints to ClusterPoints witrh projection coordinates
cluster.go:326
MethodCoordinates
()
cluster.go:36
FunctionExampleCluster_GetClusters
()
cluster_test.go:196
FunctionExampleCluster_GetTile
()
cluster_test.go:175
MethodGetCoordinates
()
cluster_test.go:220
MethodGetCoordinates
()
cluster_test.go:243
MethodGetCoordinates
()
play/main.go:21
MethodGetCoordinates
()
play/main.go:59
MethodGetTileWithLatLon
return points for Tile with coordinates x and y and for zoom z return objects with LatLon coordinates
cluster.go:168
FunctionTestCluster_AllClusters
(t *testing.T)
cluster_test.go:128
FunctionTestCluster_GetClusters
(t *testing.T)
cluster_test.go:85
FunctionTestCluster_GetTile00
(t *testing.T)
cluster_test.go:28
FunctionTestCluster_GetTileDefault
validate original result from JS library
cluster_test.go:54
FunctionTestNewCluster
(t *testing.T)
cluster_test.go:12
FunctionTest_MercatorProjection
(t *testing.T)
cluster_test.go:157
Functionmain
()
play/main.go:66