revrt.routing.utilities.points_csv_to_geo_dataframe#
- points_csv_to_geo_dataframe(points, crs, transform)[source]#
Convert points CSV or DataFrame to GeoDataFrame
- Parameters:
points (path-like or
pandas.DataFrame) – Points CSV file path or DataFrame. If a file path is given, the file is read as a CSV. The CSV or DataFrame must have latitude and longitude columns.crs (
strorpyproj.crs.CRS) – Coordinate reference system for the exclusion raster.transform (
affine.Affine) – Affine transform object representing the exclusion raster transformation.
- Returns:
geopandas.GeoDataFrame– Points as a GeoDataFrame in the given CRS. Will contain start_row and start_col columns giving the row and column indices in the cost raster.