शुरू करेंमुफ़्त में शुरू करें

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(____.____)
कोड संपादित करें और चलाएँ