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 to compute features from. |
None |
Returns:
Type | Description |
---|---|
GISObject |
GISObject with geometry from GriddedSurface property. |
Exceptions:
Type | Description |
---|---|
ValueError |
If 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 to optionally filter the data to be returned. |
required |
other |
GeoRefObject |
GISObject to filter. |
required |
new_region_name |
str |
Name of resulting GISObject. |
required |
Returns:
Type | Description |
---|---|
GISObject |
GISObject with new region. |