Python में Geospatial Data के साथ काम करना
Joris Van den Bossche
Open source software developer and teacher, GeoPandas maintainer
IPIS: International Peace Information Service
छवि: G.A.O, पब्लिक डोमेन, Wikimedia Commons से
फ़ाइलें पढ़ना: geopandas.read_file("path/to/file.geojson")
समर्थित फ़ॉर्मैट:
.shp, .dbf, .shx, .prj, ...).gpkg)और PostGIS डेटाबेस भी!
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 के साथ काम करना