Skip to content

GIS Operations🍋

gis_from_gridded_surface(gs, gis_obj_name, attribute, region=None) 🍋

Extract features from GriddedSurface property to create GISObject.

GriddedSurface must be fully defined as underlying function assume values are coming from an image like file.

Parameters:

Name Type Description Default
gs GriddedSurface

GriddedSurface to extract features from.

required
gis_obj_name str

Name of created GISObject.

required
attribute str

GriddedSurface property to compute features from.

required
region str

GriddedSurface region or condition to compute features from.

None

Returns:

Type Description
GISObject

GISObject with geometry from GriddedSurface property.

Raises:

Type Description
ValueError

Gridded Surface is sparse/not fully defined.

select_points_inside_polygon(ref_object, region, other, new_region_name) 🍋

Filters points in 2D and keep only the one inside the given polygon. Using Geopandas Spatial Join in the background.

Parameters:

Name Type Description Default
ref_object GISObject

GISObject against which desired GISObject is filtered.

required
region Optional[str]

name of the region or condition in the ref_object to optionally filter the data to be returned.

required
other GeoRefObject

GeoRefObject to be filtered.

required
new_region_name str

Name of resulting GISObject.

required

Note

For Drillholes object, selection is based on collar coordinates.