Hierarchical pentagonial indexing for geospatial data that is equal-area and millimeter accurate.
Maintainer(s):
rustyconover
Installing and Loading
INSTALL a5 FROM community;
LOAD a5;
About a5
For more information regarding usage, see the documentation.
Added Functions
| function_name | function_type | description | comment | examples |
|---|---|---|---|---|
| a5_cell_area | scalar | Returns the area in square meters of an A5 cell at the specified resolution level | NULL | [a5_cell_area(10)] |
| a5_cell_to_boundary | scalar | Returns the boundary vertices of an A5 cell as a closed ring of [lon, lat] points | NULL | [a5_cell_to_boundary(a5_lonlat_to_cell(-122.4, 37.8, 5))] |
| a5_cell_to_boundary | scalar | Returns the boundary vertices of an A5 cell with configurable ring closure and edge interpolation segments | NULL | [a5_cell_to_boundary(a5_lonlat_to_cell(-122.4, 37.8, 5), true, 4)] |
| a5_cell_to_boundary | scalar | Returns the boundary vertices of an A5 cell, optionally as an open or closed ring | NULL | [a5_cell_to_boundary(a5_lonlat_to_cell(-122.4, 37.8, 5), false)] |
| a5_cell_to_children | scalar | Returns all child A5 cells at the specified finer resolution | NULL | [a5_cell_to_children(a5_lonlat_to_cell(-122.4, 37.8, 5), 6)] |
| a5_cell_to_children | scalar | Returns the immediate child A5 cells (one resolution finer) | NULL | [a5_cell_to_children(a5_lonlat_to_cell(-122.4, 37.8, 5))] |
| a5_cell_to_lonlat | scalar | Returns the center point [longitude, latitude] of an A5 cell | NULL | [a5_cell_to_lonlat(a5_lonlat_to_cell(-122.4, 37.8, 10))] |
| a5_cell_to_parent | scalar | Returns the parent A5 cell at the specified coarser resolution | NULL | [a5_cell_to_parent(a5_lonlat_to_cell(-122.4, 37.8, 10), 5)] |
| a5_compact | scalar | Compacts a list of A5 cells by merging complete sets of sibling cells into parent cells | NULL | [a5_compact(a5_cell_to_children(a5_lonlat_to_cell(-122.4, 37.8, 5)))] |
| a5_get_num_cells | scalar | Returns the total number of A5 cells at the specified resolution level (0-30) | NULL | [a5_get_num_cells(5)] |
| a5_get_res0_cells | scalar | Returns all 12 resolution 0 (root) A5 cells covering the entire globe | NULL | [a5_get_res0_cells()] |
| a5_get_resolution | scalar | Returns the resolution level (0-30) of an A5 cell | NULL | [a5_get_resolution(a5_lonlat_to_cell(-122.4, 37.8, 10))] |
| a5_lonlat_to_cell | scalar | Converts a longitude/latitude coordinate to an A5 cell at the specified resolution | NULL | [a5_lonlat_to_cell(-122.4194, 37.7749, 10)] |
| a5_uncompact | scalar | Expands a compacted list of A5 cells to the specified target resolution | NULL | [a5_uncompact([a5_lonlat_to_cell(-122.4, 37.8, 5)], 7)] |