Changing coordinate reference systems
In this exercise you will learn how to find a GeoDataFrame's coordinate reference system and how to change it. The school districts GeoDataFrame is available as school_districts.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Visualizing Geospatial Data in Python
अभ्यास निर्देश
- Print the first row of
school_districtsand thecrsproperty of this GeoDataFrame. - Convert the coordinate reference system of
school_districtstoepsg:3857. - Print the
crsproperty again to confirm that it was changed.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Print the first row of school districts GeoDataFrame and the crs
print(____.head(1))
print(____.crs)
# Convert the crs to epsg:3857
school_districts.geometry = school_districts.geometry.____(epsg = 3857)
# Print the first row of school districts GeoDataFrame and the crs again
print(school_districts.head(1))
print(____.____)