डेटासेट का परिचय

Python में Geospatial Data के साथ काम करना

Joris Van den Bossche

Open source software developer and teacher, GeoPandas maintainer

IPIS से कुटीरखनन साइट डेटा

IPIS: International Peace Information Service

छवि: Connormah, CC BY-SA 3.0, Wikimedia Commons से

Python में Geospatial Data के साथ काम करना

IPIS से कुटीरखनन साइट डेटा

IPIS: International Peace Information Service छवि: G.A.O, पब्लिक डोमेन, Wikimedia Commons से

Python में Geospatial Data के साथ काम करना

IPIS से कुटीरखनन साइट डेटा

Python में Geospatial Data के साथ काम करना

Geospatial फ़ाइल फ़ॉर्मैट

फ़ाइलें पढ़ना: geopandas.read_file("path/to/file.geojson")

समर्थित फ़ॉर्मैट:

  • ESRI Shapefile
    • एक "फ़ाइल" कई फ़ाइलों से बनती है! (.shp, .dbf, .shx, .prj, ...)
  • GeoJSON
  • GeoPackage (.gpkg)
  • ...

और PostGIS डेटाबेस भी!

Python में Geospatial Data के साथ काम करना

Geospatial फ़ाइल फ़ॉर्मैट में लिखना

to_file() मेथड से GeoDataFrame को फ़ाइल में लिखना:

# Shapefile फ़ाइल लिखना
geodataframe.to_file("mydata.shp", driver='ESRI Shapefile')

# GeoJSON फ़ाइल लिखना
geodataframe.to_file("mydata.geojson", driver='GeoJSON')

# GeoPackage फ़ाइल लिखना
geodataframe.to_file("mydata.gpkg", driver='GPKG')
Python में Geospatial Data के साथ काम करना

अभ्यास करते हैं!

Python में Geospatial Data के साथ काम करना

Preparing Video For Download...