utilities

pyrecodes.utilities.component_inside_bounding_box(component_geometry: Point, polygon: Polygon) bool
pyrecodes.utilities.create_component_geometry_as_point(component_location: list) Point
pyrecodes.utilities.create_component_geometry_from_wkt(geometry_string: str) BaseGeometry
pyrecodes.utilities.create_locality_polygon(bounding_box: list) Polygon
pyrecodes.utilities.format_locality_id(locality_string) int
pyrecodes.utilities.get_class(module_name: str, class_name: str, folder_name: str) object

Imports a class from a file

pyrecodes.utilities.get_locality_coordinates_from_geojson(locality_info: dict) dict
pyrecodes.utilities.read_json_file(file_name: str) dict

Reads a JSON file and returns its contents as a dictionary.

Args:

file_name (str): The name of the JSON file to be read.

Returns:

dict: The dictionary representation of the JSON data.