I have seen many suggestions on how to measure the area of a polygon (see Getting polygon areas using GeoPandas)
I am not an expert in projection or CRS but I am aware that I need to convert the CRS I currently have in my Geodataframe (EPSG:4326 unit=degree) into a CRS which preserves the area measure and use meters as units. Which one shall I use?
.to_crs({'init': 'epsg:32633'}) # unit in meter
.to_crs({'init': 'epsg:3857'}) # unit in meter (pseudo Mercator)
.to_crs({'init': 'epsg:3395'}) # unit in meter (Mercator)
They all have units in meters but which one is correct or more accurate?
The code would be as follows:
# copy original geodataframe
tost = joinIlots.copy()
# convert from 4326 to WORLD MERCATOR for example
tost= tost.to_crs({'init': 'epsg:3395'})
# convert m2 into km2
tost["area"] = tost['geometry'].area/ 10**6
tost.head(2)
print(tost.crs)
My confusion is on the projection.
CRS("+init=epsg:9820")). Also what s wrong with using a specificepsgto Morocco similar to the one i mentioned26191. Thank you – bravopapa Feb 18 '23 at 13:4826191is similar to using an instance of9820which implies that it is correct. – bravopapa Feb 18 '23 at 15:11