gemgis.utils.convert_to_petrel_points_with_attributes#

gemgis.utils.convert_to_petrel_points_with_attributes(mesh: pyvista.core.pointset.PolyData, path: str, crs: Optional[Union[str, pyproj.crs.crs.CRS]] = None, target_crs: Optional[Union[str, pyproj.crs.crs.CRS]] = None)#

Function to convert vertices of a PyVista Mesh to Petrel Points with Attributes

Parameters
  • mesh (pv.core.pointset.PolyData) – PyVista Mesh to be converted to points

  • path (str) – Path to store the converted points, e.g. path='project/'

  • crs (str, pyproj.crs.crs.CRS, type(None)) – Coordinate reference system for the GeoDataFrame, e.g. crs='EPSG:4326', default is None

  • target_crs (str, pyproj.crs.crs.CRS, type(None)) – Target coordinate reference system if coordinates of points should be reprojected, e.g. crs='EPSG:4326', default is None

New in version 1.0.x.