gemgis.visualization.create_meshes_from_cross_sections#

gemgis.visualization.create_meshes_from_cross_sections(gdf: geopandas.geodataframe.GeoDataFrame) List[pyvista.core.pointset.PolyData]#

Creating PyVista Meshes from multiple cross section

Parameters

gdf (gpd.geodataframe.GeoDataFrame) – GeoDataFrame containing the traces of the profiles as LineStrings

Returns

meshes_list – List containing the meshes of all profiles

Return type

List[pyvista.core.pointset.PolyData]

New in version 1.0.x.

Example

>>> # Loading Libraries and File
>>> import gemgis as gg
>>> import geopandas as gpd
>>> gdf = gpd.read_file(filename='file.shp')
>>> gdf
    id      zmax    zmin    name        geometry
0   None    500     -6000   Muenster    LINESTRING (32386148.890 5763304.720, 32393549...
1   None    500     -2000   Rheine      LINESTRING (32402275.136 5761828.501, 32431165...
>>> # Creating list of PolyData datasets from GeoDataFrame
>>> meshes_list = gg.visualization.create_meshes_from_cross_sections(gdf=gdf)
>>> meshes_list
[PolyData (0x2526e543ee0)
N Cells:     20
N Points:    22
X Bounds:    3.239e+07, 3.242e+07
Y Bounds:    5.717e+06, 5.763e+06
Z Bounds:    -6.000e+03, 5.000e+02
N Arrays:    1,
PolyData (0x2526a4687c0)
N Cells:     2
N Points:    4
X Bounds:    3.240e+07, 3.243e+07
Y Bounds:    5.762e+06, 5.814e+06
Z Bounds:    -2.000e+03, 5.000e+02
N Arrays:    1]

See also

create_mesh_from_cross_section

Creating a mesh from a cross section