Urban Residents मोहल्ले का क्षेत्रफल निकालें
Urban Residents मोहल्ला कितना बड़ा है?
यह अभ्यास पाठ्यक्रम का हिस्सा है
Python में Geospatial Data का Visualization
अभ्यास निर्देश
- urban बहुभुज को प्रिंट करें और प्रत्येक longitude/latitude जोड़ी की units पर ध्यान दें.
urban_polygonपरto_crs()कॉल करकेurban_poly_3857बनाएँ और फिर से head प्रिंट करें. ध्यान दें कि प्रत्येक longitude/latitude जोड़ी की units बदल गई हैं.urban_poly_3857का area प्रिंट करें. किलोमीटर स्क्वेयर में पाने के लिए10**6से भाग देना न भूलें.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Print the head of the urban polygon
print(urban_polygon.____())
# Create a copy of the urban_polygon using EPSG:3857 and print the head
urban_poly_3857 = urban_polygon.____(epsg = ____)
print(urban_poly_3857.head())
# Print the area of urban_poly_3857 in kilometers squared
area = urban_poly_3857.____ / ____
print('The area of the Urban Residents neighborhood is ', area[0], ' km squared')