I have a Geopandas Dataframe and here is the result of its SRS when I print it as WKT:
print(vector_gdf.crs.srs)
'PROJCS["RGF93_Lambert_93",
GEOGCS["GCS_RGF93",
DATUM["Reseau_Geodesique_Francais_1993",
SPHEROID["GRS 1980",
6378137,
298.257222101,
AUTHORITY["EPSG","7019"]],
AUTHORITY["EPSG","6171"]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.0174532925199433],
AUTHORITY["EPSG","4171"]],
PROJECTION["Lambert_Conformal_Conic_2SP"],
PARAMETER["latitude_of_origin",46.5],
PARAMETER["central_meridian",3],
PARAMETER["standard_parallel_1",49],
PARAMETER["standard_parallel_2",44],
PARAMETER["false_easting",700000],
PARAMETER["false_northing",6600000],
UNIT["metre",1,AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH]]'
As you can see there are more than one AUTHORITY ID (EPSG) defined within this list of information. Which one I should take as the right one for this vector data?
I want to adapt(re-project) it based on the EPSG of the corresponding raster that I am using.
crs.to_epsg()
show for you?NULL
geometries. See github.com/geopandas/geopandas/issues/511. This can be fixed (NULL
s dropped) withdf = df[df.geometry.notnull()]
. The original question should be closed, or else the extraneous information (why you want to know the CRS and what else you want to do with it) should be removed, and the correct answer given by @IanTurton should be selected.