좌표 기준 체계 바꾸기
이번 연습에서는 GeoDataFrame의 좌표 기준 체계를 확인하고 변경하는 방법을 배워요. 학교 학군 GeoDataFrame은 school_districts로 제공돼요.
이 연습은 강의의 일부입니다
Python으로 지리공간 데이터 시각화하기
연습 안내
school_districts의 첫 번째 행과 이 GeoDataFrame의crs속성을 출력하세요.school_districts의 좌표 기준 체계를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(____.____)