
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
grid-indexing
: Fast and scalable indexing of gridsFor grids that fit into memory, or for datasets that include coordinate bounds, the cell polygons can be inferred:
source_geometries = grid_indexing.infer_cell_geometries(ds)
If the geometries fit comfortably into memory (mostly for small grids), we can use the in-memory implementation:
# geoarrow does not support multiple dimensions, so we need to also pass along the shape
source_shape = ...
index = grid_indexing.RTree(source_geometries, source_shape)
overlapping_cells = index.query_overlap(target_geometries, target_shape)
The result is a sparse boolean matrix with the same shape as the source / target polygons combined (dimension order is (target_dim1, ..., source_dim1, ...)
).
The distributed index allows searching for overlapping cells, even when the grids are larger than memory. It is currently built using dask
.
The procedure is almost the same:
# dask.array objects containing shapely polygons
chunked_source_geoms = ...
chunked_target_geoms = ...
index = grid_indexing.distributed.DistributedRTree(chunked_source_geoms)
overlapping_cells = index.query_overlap(chunked_target_geoms)
Note that this will compute both source and target geometries to determine chunk boundaries. overlapping_cells
, however, is truly lazy.
FAQs
Unknown package
We found that grid-indexing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.