gemgis.vector.calculate_orientation_for_three_point_problem
gemgis.vector.calculate_orientation_for_three_point_problem#
- gemgis.vector.calculate_orientation_for_three_point_problem(gdf: geopandas.geodataframe.GeoDataFrame) geopandas.geodataframe.GeoDataFrame #
Calculating the orientation for a three point problem
- Parameters
gdf (gpd.geodataframe.GeoDataFrame) – GeoDataFrame containing the three points and respective altitudes
- Returns
orientation – GeoDataFrame containing the calculated orientation value
- Return type
gpd.geodataframe.GeoDataFrame
New in version 1.0.x.
Example
>>> # Loading Libraries >>> import gemgis as gg >>> import geopandas as gpd >>> points = gpd.read_file(filename='points.shp') >>> points id formation Z geometry 0 None Coal 200 POINT (1842.732 602.462) 1 None Coal 400 POINT (1696.262 1775.038) 2 None Coal 600 POINT (104.302 1770.385)
>>> # Calculating Orientation >>> orientation = gg.vector.calculate_orientation_for_three_point_problem(gdf=points) >>> orientation Z formation azimuth dip polarity X Y geometry 0 400.0 Coal 140.84 11.29 1 1214.43 1382.63 POINT (1214.432 1382.628)