geo-util

0.0.13 • Public • Published

geo-util

天眼的点,线,多边形的工具函数

通用

toGeoJson(collection)

isPoints(collection)

isLines(collection)

isPolygons(collection)

点(point)

selectByBoundaries(points, boundaries)

selectByCircle(points, center, radius)

selectByTime(points, time)

selectByEarlyThan(points, time)

selectByLaterThan(points, time)

selectByFunction(points, func)

toGeoHashes(points, geohashLevel)

toBboxes(points)

toLines(points)

clusterByCircle(points, center, radius, reducer)

clusterByGeohash(points, geohashLevel, reducer)

clusterByFunction(points, func, reducer)

线(line)

selectStart(lines)

selectEnd(lines)

toPoints(lines)

toLdmapTrails(lines)

toLdmapFlyline(lines)

simplify(lines, maxPoint)

多边形(polygon)

toPoints(polygons)

simplify(polygons, maxPoint)

Readme

Keywords

none

Package Sidebar

Install

npm i geo-util

Weekly Downloads

8

Version

0.0.13

License

none

Last publish

Collaborators

  • taozhi8833998
  • willkan