Working with H3.
Working with H3.
(compact cells)
Given a set of H3 cells, return a compacted set of cells, at possibly coarser resolutions.
Given a set of H3 cells, return a compacted set of cells, at possibly coarser resolutions.
(geo-coords s)
Return all coordinates for a given Shapelike as GeoCoords
Return all coordinates for a given Shapelike as GeoCoords
(get-resolution-long h)
Long helper to return the resolution of a cell.
Long helper to return the resolution of a cell.
(hex-range this k)
Return a list of 'k' rings, each of which is a list of addresses, from closest to farthest.
Return a list of 'k' rings, each of which is a list of addresses, from closest to farthest.
(edge-origin this)
Given a unidirectional edge, get its origin.
Given a unidirectional edge, get its origin.
(edges this)
Get all edges originating from an index.
Get all edges originating from an index.
(edge-boundary this)
Get coordinates representing the edge.
Get coordinates representing the edge.
(to-long this)
Return index as a long.
Return index as a long.
(edge from to)
Given both 'from' and 'to' cells, get a unidirectional edge index.
Given both 'from' and 'to' cells, get a unidirectional edge index.
(neighbors? this cell)
Check if two indexes are neighbors.
Check if two indexes are neighbors.
(h3->pt this)
Return a GeoCoord of the center point of a cell.
Return a GeoCoord of the center point of a cell.
(to-string this)
Return index as a string.
Return index as a string.
(edge-destination this)
Given a unidirectional edge, get its destination.
Given a unidirectional edge, get its destination.
(to-jts this)
Given an H3 identifier, return a Polygon of that cell.
Given an H3 identifier, return a Polygon of that cell.
(pentagon? this)
Check if an index is a pentagon.
Check if an index is a pentagon.
(get-resolution this)
Return the resolution of a cell.
Return the resolution of a cell.
(hex-ring this k)
Return a list of indices with distance 'k' from a cell.
Return a list of indices with distance 'k' from a cell.
(is-valid? this)
Check if an index is valid.
Check if an index is valid.
(multi-polygon cells)
Given a contiguous set of H3 cells, return a JTS MultiPolygon.
Given a contiguous set of H3 cells, return a JTS MultiPolygon.
(polyfill this res)
Return all resolution 'res' cells that cover a given Shapelike, excluding internal holes.
Return all resolution 'res' cells that cover a given Shapelike, excluding internal holes.
(to-polygon this)
(to-polygon this srid)
Ensure that an object is 2D, with lineal boundaries.
Ensure that an object is 2D, with lineal boundaries.
(pt->h3 pt res)
(pt->h3 lat lng res)
Return the index of the resolution 'res' cell that a point or lat/lng pair is contained within.
Return the index of the resolution 'res' cell that a point or lat/lng pair is contained within.
(uncompact cells res)
Given a set of H3 cells, return an uncompacted set of cells to a certain resolution.
Given a set of H3 cells, return an uncompacted set of cells to a certain resolution.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close