muspan.query#
The muspan.query module provides tools for querying spatial data. This module includes the following submodules:
Query methods
A helper class to standardise formatting of boolean queries - this does not return the result of the query, just stores the question. |
|
A helper class to standardize formatting of boolean queries. |
|
Interpret and filter a query. |
|
Test whether something can be interpreted as a recognisable muspan query. |
|
Validate and convert a tuple-like query into a muspan.query object. |
|
Determine if each object in population_A is contained by any object in population_B. |
|
Helper function to filter objects returned by a query down to those inside (or on the boundary of) a set of include_regions, specified by a set of shape IDs |
Retrieval methods
Retrieve the centroids of specified objects within a domain. |
|
Get the children of the objects in the query. |
|
Retrieve collections and their corresponding object indices from a domain. |
|
Constructs a directed graph of the family tree of the objects in the domain. |
|
Get labels from a muspan domain. |
|
Calculates the smallest distance from each object specified by objects_identifier_A to an object specified by objects_identifier_B. |
|
Calculates the smallest distance from each object specified by objects_identifier_A to an object specified by objects_identifier_B. |
|
Extracts components of specified dimension from objects in a given domain. |
|
Retrieve the types and indices of objects within a given domain. |
|
Get the parents of the objects in the population. |
|
Wrapper function to ensure that tuple-like queries are converted into a query before being passed to interpret_query. |