Coordinate reference systems बदलना
इस अभ्यास में आप जानेंगे कि किसी GeoDataFrame का coordinate reference system कैसे पता करें और उसे कैसे बदलें। school_districts नाम से school districts का GeoDataFrame उपलब्ध है।
यह अभ्यास पाठ्यक्रम का हिस्सा है
Python में Geospatial Data का Visualization
अभ्यास निर्देश
school_districtsकी पहली पंक्ति और इस GeoDataFrame कीcrsप्रॉपर्टी प्रिंट करें.school_districtsके coordinate reference system कोepsg:3857में बदलें.- बदला गया है, यह जाँचने के लिए
crsप्रॉपर्टी फिर से प्रिंट करें.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# 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(____.____)