Mekânsal işlemler: yeni geometriler oluşturma

Python ile Coğrafi Verilerle Çalışma

Joris Van den Bossche

Open source software developer and teacher, GeoPandas maintainer

Mekânsal işlemler

Python ile Coğrafi Verilerle Çalışma

Mekânsal işlemler: kesişim

Python ile Coğrafi Verilerle Çalışma

Mekânsal işlemler: birleşim

Python ile Coğrafi Verilerle Çalışma

Mekânsal işlemler: fark

Python ile Coğrafi Verilerle Çalışma

GeoPandas ile mekânsal işlemler

africa.head()
           name             geometry
0        Angola  (POLYGON ((23.90...
1       Burundi  POLYGON ((29.339...
2         Benin  POLYGON ((2.6917...
3  Burkina Faso  POLYGON ((2.1544...
4      Botswana  POLYGON ((29.432...

Python ile Coğrafi Verilerle Çalışma

GeoPandas ile mekânsal işlemler

print(box)
POLYGON ((60 10, 60 -10, -20 -10, -20 10))

Python ile Coğrafi Verilerle Çalışma

GeoPandas ile mekânsal işlemler

africa.intersection(box)

Python ile Coğrafi Verilerle Çalışma

GeoPandas ile mekânsal işlemler

africa.head()
           name                                           geometry
0        Angola  (POLYGON ((23.90415368011818 -11.7222815894063...
1       Burundi  POLYGON ((29.33999759290035 -4.499983412294092...
2      Botswana  POLYGON ((29.43218834810904 -22.09131275806759...
...
africa.intersection(box)
0    (POLYGON ((13.22332255001795 -10, 13.120987583...
1    POLYGON ((29.33999759290035 -4.499983412294092...
2                                                   ()
...
dtype: object
Python ile Coğrafi Verilerle Çalışma

Hadi pratik yapalım!

Python ile Coğrafi Verilerle Çalışma

Preparing Video For Download...