geost.accessor.GeostFrame.transform_coordinates#

GeostFrame.transform_coordinates(original_crs: str | int | CRS, target_crs: str | int | CRS, xbot: str | None = None, ybot: str | None = None) DataFrame[source]#

Transform the coordinates of GeoDataFrame or DataFrame to a given coordinate reference system (CRS).

Parameters:
  • original_crs (str | int | CRS) – Original CRS of the coordinates. Takes anything that can be interpreted by pyproj.crs.CRS.from_user_input().

  • target_crs (str | int | CRS) – Target CRS of the coordinates. Takes anything that can be interpreted by pyproj.crs.CRS.from_user_input().

  • xbot (str | None, optional) – In case data is inclined, specify labels for columns holding the coordinates of the bottom of each layer. These coordinates will be then transformed as well. The default is None, which means that these coordinates are not transformed.

  • ybot (str | None, optional) – In case data is inclined, specify labels for columns holding the coordinates of the bottom of each layer. These coordinates will be then transformed as well. The default is None, which means that these coordinates are not transformed.

Returns:

Transformed DataFrame with coordinates in the target CRS.

Return type:

DataFrame