kaggle_courses_geospatial-analysis(2)

coordinate reference system (CRS)

这个有点没看懂(what is the meaning of that?)

Introduction

The maps you create in this course portray the surface of the earth in two dimensions. But, as you know, the world is actually a three-dimensional globe. So we have to use a method called a map projection to render it as a flat surface.

Map projections can’t be 100% accurate. Each projection distorts the surface of the Earth in some way, while retaining some useful property. For instance,

  • the equal-area projections (like “Lambert Cylindrical Equal Area”, or “Africa Albers Equal Area Conic”) preserve area. This is a good choice, if you’d like to calculate the area of a country or city, for example.
  • the equidistant projections (like “Azimuthal Equidistant projection”) preserve distance. This would be a good choice for calculating flight distance.
List of map projections ( Source)

We use a coordinate reference system (CRS) to show how the projected points correspond to real locations on Earth. In this tutorial, you’ll learn more about coordinate reference systems, along with how to use them in GeoPandas.

在这里插入图片描述
在这里插入图片描述

  • a Point for the epicenter of an earthquake,
  • a LineString for a street, or
  • a Polygon to show country boundaries.

Tips

计算面积regions.geometry.area(.geometry.area)

在这里插入图片描述

将dataframe格式的文件转化为GeoDataFrame

、facilities_df = pd.read_csv("../input/geospatial-learn-course-data/ghana/ghana/health_facilities.csv")

facilities = gpd.GeoDataFrame(facilities_df, geometry=gpd.points_from_xy(facilities_df.Longitude, facilities_df.Latitude))

#(This is the point)Set the coordinate reference system (CRS) to EPSG 4326
facilities.crs = {
   'init': 'epsg:4326'}

看一下是否有这两个大陆在这个world[‘continent’]中

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值