找出 Urban Residents 鄰里的面積
Urban Residents 這個鄰里有多大?
本練習屬於課程
在 Python 視覺化地理空間資料
練習說明
- 列印 urban 多邊形,並留意每個經度/緯度配對的單位。
- 透過在
urban_polygon上呼叫to_crs()建立urban_poly_3857,再列印前幾列。注意每個經度/緯度配對的單位已改變。 - 列印
urban_poly_3857的面積。記得除以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')