Submodules

class GeoAnalyze.core.Core[source]

Bases: object

Provides common functionality used throughout the GeoAnalyze package.

is_valid_figure_extension(file_path: str) bool[source]

Returns whether the given path is a valid figure file.

Parameters:

file_path (str) – Path of the figure file.

Returns:

True if the file path is valid, False otherwise.

Return type:

bool

is_valid_ogr_driver(shape_file: str) bool[source]

Checks whether the given shapefile path is valid and supported.

Parameters:

shape_file (str) – Path to the shapefile to be validated.

Returns:

True if the shapefile path is valid and supported, False otherwise.

Return type:

bool

is_valid_raster_driver(raster_file: str) bool[source]

Checks whether the given raster file path is valid and supported.

Parameters:

raster_file (str) – Path to the raster file to be validated.

Returns:

True if the raster file path is valid and supported, False otherwise.

Return type:

bool

property raster_resampling_method: dict[str, Resampling]

Returns the dictionary of raster resampling methods.

Supported options:

Method

Description

nearest

Nearest-neighbor interpolation.

bilinear

Bilinear interpolation.

cubic

Cubic interpolation.

shapefile_geometry_type(shape_file: str) str[source]

Return the geometry type of the shapefile.

Parameters:

shape_file (str) – Path of the shapefile.

Returns:

Geometry type of the shapefile.

Return type:

str