AnswerBun.com

"init" CRS vs regular CRS in GeoPandas

I have a shapefile which I read in via

import geopandas as gpd
shapes_df = gpd.read_file(shp_f)
print(shapes_df.crs)

The output was {'init': 'epsg:3857'}

I then reprojected via

shapes_df = shapes_df.to_crs("epsg:32629")
print(shapes_df.crs)

The output was epsg:32629

What is the meaning of the ‘init’ value for the CRS in the original CRS? Should I be concerned that there is no ‘init’ value in my reprojected data? Did the projection not work properly?

One Answer

What is the meaning of the 'init' value for the CRS in the original CRS?

It is for PROJ string initialization. That format is deprecated for CRS strings, so it is better to not have it (https://pyproj4.github.io/pyproj/stable/gotchas.html#init-auth-auth-code-should-be-replaced-with-auth-auth-code).

Reference for axis order: https://gis.stackexchange.com/a/326919/144357

Should I be concerned that there is no 'init' value in my reprojected data?

Depends if the axis order is important to you.

Did the projection not work properly?

That depends on the version of geopandas and pyproj. If you have geopandas 6+, then you should be fine.

Correct answer by snowman2 on January 1, 2021

Add your own answers!

Related Questions

QGIS 3 won’t open in Windows 10 pro, how to fix?

1  Asked on January 22, 2021 by bryan-ziga-chacn

   

Providing GDAL with right encoding

0  Asked on January 22, 2021 by aneta-musli

         

Doing TIN Interpolation in QGIS

0  Asked on January 22, 2021

         

Clipping shapefile – QGIS vs Python

1  Asked on January 22, 2021

     

QGIS: rotate object

1  Asked on January 21, 2021

 

Posting attribute/field values by points on the map view

1  Asked on January 21, 2021 by marin-miroevi

   

Convert Esri file gdb to PostGIS

1  Asked on January 21, 2021 by rihab-bouallagui

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.