The API reference provides an overview of all functions and methods implemented in GemGIS.
Vector#The following sections provide an overview of the methods implemented in the GemGIS Vector module.
Extracting Coordinates and Intersections from GeoDataFrames/Shapely Polygons#The following methods are used to extract coordinates and intersections from GeoDataFrames containing Shapely Polygons or from single Shapely Polygons or multiple Shapely Polygons.
Calculating and extracting coordinates from cross sections#The following methods are used to calculate and extract coordinates from cross sections where data was stored as Shape Files and is now loaded as GeoDataFrames.
Calculating and extracting angles from cross sections and maps#The following methods are used to calculate and extract angles from cross sections.
Exploding Geometries#The following methods are used to explode geometries for further usage in GemGIS
Removing Points within Buffers#The following methods are used to remove Points within Buffers. This can be used to remove interface points in the vicinity of faults.
Vector Methods for Raster Data#The following methods are used to work with raster data
Working with GPX Data#The following methods are used to work with GPX data
Miscellaneous vector data methods#The following methods are further vector data methods used in GemGIS
gemgis.vector.calculate_distance_linestrings
(...)
Calculating the minimal distance between two LineStrings
gemgis.vector.calculate_midpoint_linestring
(...)
Calculating the midpoint of a LineString with two vertices
gemgis.vector.calculate_midpoints_linestrings
(...)
Calculating the midpoints of LineStrings with two vertices each
gemgis.vector.clip_by_bbox
(gdf, bbox[, ...])
Clipping vector data contained in a GeoDataFrame to a provided bounding box/extent
gemgis.vector.clip_by_polygon
(gdf, polygon)
Clipping vector data contained in a GeoDataFrame to a provided bounding box/extent
gemgis.vector.create_bbox
(extent)
Creating a rectangular polygon from the provided bounding box values, with counter-clockwise order by default.
gemgis.vector.create_buffer
(geom_object, ...)
Creating a buffer around a Shapely LineString or a Point
gemgis.vector.create_unified_buffer
(...)
Creating a unified buffer around Shapely LineStrings or Points
gemgis.vector.create_linestring_from_points
(...)
Creating a LineString object from a GeoDataFrame containing surface points at a given altitude and for a given formation
gemgis.vector.create_linestring_from_xyz_points
(points)
Create LineString from an array or GeoDataFrame containing X, Y, and Z coordinates of points.
gemgis.vector.create_linestring_gdf
(gdf)
Creating LineStrings from Points
gemgis.vector.create_linestrings_from_contours
(...)
Creating LineStrings from PyVista Contour Lines and save them as list or GeoDataFrame
gemgis.vector.create_linestrings_from_xyz_points
(...)
Creating LineStrings from a GeoDataFrame containing X, Y, and Z coordinates of vertices of multiple LineStrings
gemgis.vector.create_polygons_from_faces
(...)
Extracting faces from PyVista PolyData as Shapely Polygons
gemgis.vector.unify_linestrings
(linestrings)
Unifying adjacent LineStrings to form LineStrings with multiple vertices
gemgis.vector.unify_polygons
(polygons[, ...])
Unifying adjacent triangular polygons to form larger objects
Special Methods#The following methods are special methods used in GemGIS
Raster#The following sections provide an overview of the methods implemented in the GemGIS Raster module.
Raster Calculations#The following methods are used to perform calculations on rasters
Sampling from a Raster#The following methods are used to sample values from a raster
Reading different raster formats#The following methods are used to read different raster formats into Python
Miscellaneous raster data methods#The following methods are further raster data methods used in GemGIS
gemgis.raster.clip_by_bbox
(raster, bbox[, ...])
Clipping a rasterio raster or np.ndarray by a given extent
gemgis.raster.clip_by_polygon
(raster, polygon)
Clipping/masking a rasterio raster or np.ndarray by a given shapely Polygon
gemgis.raster.create_filepaths
(dirpath, ...)
Retrieving the file paths of the tiles to load and to process them later
gemgis.raster.extract_contour_lines_from_raster
(...)
Extracting contour lines from raster with a provided interval.
gemgis.raster.merge_tiles
(src_files[, ...])
Merging downloaded tiles to mosaic
gemgis.raster.reproject_raster
(path_in, ...)
Reprojecting a raster into different CRS
gemgis.raster.resize_by_array
(raster, array)
Rescaling raster to the size of another raster
gemgis.raster.resize_raster
(raster, width, ...)
Resizing raster to given dimensions
gemgis.raster.save_as_tiff
(raster, path, ...)
Saving a np.array as tif file
Visualization#The following sections provide an overview of the methods implemented in the GemGIS Visualization module.
Creating PolyData and Grid Data from GeoDataFrames, Rasters, and GemPy Models#The following methods are used to create PolyData from various input data formats.
Working with Boreholes#The following methods are used to work with boreholes in GemGIS.
Miscellaneous visualization methods#The following methods are further visualization methods used in GemGIS.
Utils#The following sections provide an overview of the methods implemented in the GemGIS Utils module.
Miscellaneous utils methods#The following methods are further visualization methods used in GemGIS.
gemgis.utils.assign_properties
(lith_block, ...)
Replacing lith block IDs with physical properties
gemgis.utils.build_style_dict
(classes)
Building a style dict based on extracted style classes
gemgis.utils.parse_categorized_qml
(qml_name)
Parsing a QGIS style file to retrieve surface color values
gemgis.utils.load_surface_colors
(path, gdf)
Loading surface colors from a QML file and storing the color values as list to be displayed with GeoPandas plots
gemgis.utils.create_surface_color_dict
(path)
Creating GemPy surface color dict from a QML file
gemgis.utils.calculate_lines
(gdf, increment)
Function to interpolate strike lines
gemgis.utils.calculate_number_of_isopoints
(...)
Creating the number of isopoints to further interpolate strike lines
gemgis.utils.convert_location_dict_to_gdf
(...)
Converting a location dict to a GeoDataFrame
gemgis.utils.convert_to_gempy_df
(gdf[, dem, ...])
Converting a GeoDataFrame into a Pandas DataFrame ready to be read in for GemPy
gemgis.utils.convert_to_petrel_points_with_attributes
(...)
Function to convert vertices of a PyVista Mesh to Petrel Points with Attributes
gemgis.utils.create_polygon_from_location
(...)
Creating Shapely Polygon from bounding box coordinates
gemgis.utils.create_virtual_profile
(...[, ...])
Function to filter and sort the resulting well tops
gemgis.utils.create_zmap_grid
(surface, ...)
Function to write data to ZMAP Grid, This code is heavily inspired by https://github.com/abduhbm/zmapio
gemgis.utils.extract_zmap_data
(surface, ...)
Function to extract a meshgrid of values from a PyVista mesh
gemgis.utils.get_location_coordinate
(name)
Obtaining coordinates of a given city
gemgis.utils.get_locations
(names[, crs])
Obtaining coordinates for one city or a list of given cities.
gemgis.utils.get_nearest_neighbor
(x, y)
Function to return the index of the nearest neighbor for a given point Y
gemgis.utils.getfeatures
(extent, crs_raster, ...)
Creating a list containing a dict with keys and values to clip a raster
gemgis.utils.interpolate_strike_lines
(gdf, ...)
Interpolating strike lines to calculate orientations
gemgis.utils.ray_trace_multiple_surfaces
(...)
Function to return the depth of multiple surfaces in one well using PyVista ray tracing
gemgis.utils.ray_trace_one_surface
(surface, ...)
Function to return the depth of one surface in one well using PyVista ray tracing
gemgis.utils.read_csv_as_gdf
(path, crs[, x, ...])
Reading CSV files as GeoDataFrame
gemgis.utils.save_zmap_grid
(zmap_grid[, path])
Function to save ZMAP Grid information to file
gemgis.utils.set_extent
([minx, maxx, miny, ...])
Setting the extent for a model
gemgis.utils.set_resolution
(x, y, z)
Setting the resolution for a model
gemgis.utils.show_number_of_data_points
(...)
Adding the number of Interfaces and Orientations to the GemPy Surface dataframe
gemgis.utils.to_section_dict
(gdf[, ...])
Converting custom sections stored in Shape files to GemPy section_dicts
gemgis.utils.transform_location_coordinate
(...)
Transforming coordinates of GeoPy Location
Web#The following sections provide an overview of the methods implemented in the GemGIS Web module.
gemgis.web.create_request
(wcs_url, version, ...)
Creating URL to request data from WCS Server
gemgis.web.load_as_array
(url, layer, style, ...)
Loading a portion of a WMS as array
gemgis.web.load_as_file
(url, path[, ...])
Executing WCS request and downloading file into specified folder
gemgis.web.load_as_files
(wcs_url, version, ...)
Executing WCS requests and downloading files into specified folder
gemgis.web.load_as_gpd
(url[, typename, ...])
Requesting data from a WFS Service
gemgis.web.load_as_map
(url, layer, style, ...)
Loading a portion of a WMS as array
gemgis.web.load_wcs
(url)
Loading Web Coverage Service
gemgis.web.load_wfs
(url)
Loading a WFS Service by URL
gemgis.web.load_wms
(url)
Loading a WMS Service by URL
Miscellaneous#The following sections provide an overview of the methods implemented in the GemGIS Misc module.
Postprocessing#The following section provides an overview of the methods implemented in the GemGIS postprocessing module.
Download GemGIS Data#The following section provides an overview of the methods implemented in the GemGIS module that downloads the tutorial data.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4