{
  "source_file": "0930",
  "source_platform": "Dev.to",
  "author": "amananandrai",
  "title_listed": "Geospatial Data and 7 Python Libraries to Visualize Them🗺️",
  "keywords": "",
  "domain": "机器学习",
  "content_type": "深度技术解析",
  "is_paid_flag": "否",
  "url": "https://dev.to/amananandrai/geospatial-data-and-7-python-libraries-to-visualize-them-5gi1",
  "publish_date": "2020-12-05",
  "corpus_stage": "",
  "notes": "",
  "id": "0e7910e5faa8",
  "collected_at": "2026-10-02T14:02:42",
  "title": "Geospatial Data and 7 Python Libraries to Visualize Them🗺️ - DEV Community",
  "body_markdown": "Geospatial Data\nGeospatial data means data that has geographic components for locational information like coordinates, address, ZIP code, etc.\nAnalysis and Visualization of Geospatial data is one of the recent branches of Data Science. It can be used for many purposes like - coffee chains like Starbucks, Dunkin' or CCD determine where to make there next outlet, determining earthquake-prone areas in countries like Japan to provide extra reinforcement in those areas, it can be used determine areas with most pollution or areas where certain wildlife can find their natural shelter.  In the present time, it can be used for tracking the spread of COVID-19 and determining red-zones or containment zones.\nRepresentation of Geospatial Data\nThere are many types of geospatial data file formats like\nshapefile\n,\nGeoJSON\n,\nKML\n, and\nGPKG\n. These type of file formats can be used to store geospatial data.\nShapefile\nis the most common format for storing geospatial data. It represents the data in the form of points, lines, and polygons along with certain attributes like name, temperature, etc. These shapes along with the attributes form geographic components like rivers, roads, landmarks, etc. It contains three mandatory files\n.shp\n- representing the shape or geometry,\n.shx\n- representing the index of the shapes for easier navigation,\n.dbf\n- storing the attributes associated with the shapes. Along with these mandatory files some other files like .prj,.ixs,.mxs,etc. can also be present.\nGeoJSON\nrepresents the geospatial data in JSON like format\neg-\n{\n\"\ntype\n\"\n:\n\"\nFeature\n\"\n,\n\"\ngeometry\n\"\n:\n{\n\"\ntype\n\"\n:\n\"\nPoint\n\"\n,\n\"\ncoordinates\n\"\n:\n[\n105.6\n,\n110.1\n]\n},\n\"\nproperties\n\"\n:\n{\n\"\nname\n\"\n:\n\"\nAndaman Islands\n\"\n}\n}\nEnter fullscreen mode\nExit fullscreen mode\nIt can represent data in the following geometry types:\nPoint, LineString, Polygon, MultiPoint, MultiLineString, and MultiPolygon\n.\nKML\nstands for Keyhole Markup Language and is used to represent data in Google Earth. It is based on XML notation. They are distributed in zipped formats with .kmz as an extension.\nGPKG\nor GeoPackage is an open format that can represent geospatial data in both raster and vector forms. It is an extended SQLite database file that is lightweight and contained in a single ready-to-use file.\nVisualization of Geospatial Data\nThere are many Python libraries to visualize geospatial data and draw interesting maps some of the most famous of them are:-\nFolium\nGeoPandas\nBasemap\nGeoViews\nKeplerGL\nIpyLeaflet\nCartopy\nFolium\nIt is based on Leaflet.js. It makes visualization with the help of interactive leaflet map data manipulated in python. It supports the GeoJSON file type along with some other file types.\nGeoPandas\nIt extends the datatypes used by Pandas to represent geospatial data. It uses descartes and matplotlib for plotting. It is based on shapely for geometric operations. It supports GPKG, shapefile, and GeoJSON data formats.\nBaseMap\nIt is a great tool to make interactive maps and is an extension of matplotlib. It supports shapefile type data.\nGeoViews\nIt is built on Holoviews library. It uses Cartopy python package and for visualization uses matplotlib or Bokeh.\nKeplerGL\nIt is based on WebGL. Kepler.gl is also a React component that uses Redux to manage its state and data flow. It can be embedded into other React-Redux applications and is highly customizable.\nIpyLeaflet\nIt is used to embed maps in Jupyter notebooks. It acts as a bridge between leaflet.js and Jupyter.\nCartopy\nCartopy is a Python package for geospatial data processing, produce maps and geospatial data analyses. Cartopy makes use of powerful PROJ.4, NumPy and Shapely libraries and uses Matplotlib for the creation of maps.",
  "metadata": {
    "title": "Geospatial Data and 7 Python Libraries to Visualize Them🗺️ - DEV Community",
    "description": "Geospatial Data    Geospatial data means data that has geographic components for locational... Tagged with machinelearning, datascience, python.",
    "keywords": "machinelearning, datascience, python, software, coding, development, engineering, inclusive, community",
    "author": null,
    "og:type": "article",
    "og:url": "https://dev.to/amananandrai/geospatial-data-and-7-python-libraries-to-visualize-them-5gi1",
    "og:title": "Geospatial Data and 7 Python Libraries to Visualize Them🗺️",
    "og:description": "Geospatial Data    Geospatial data means data that has geographic components for locational...",
    "og:site_name": "DEV Community",
    "og:image": "https://media2.dev.to/dynamic/image/width=1000,height=500,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fsjuc1qhk5bb3p9sv3h9h.jpg",
    "twitter:site": "@thepracticaldev",
    "twitter:creator": "@",
    "twitter:title": "Geospatial Data and 7 Python Libraries to Visualize Them🗺️",
    "twitter:description": "Geospatial Data    Geospatial data means data that has geographic components for locational...",
    "twitter:card": "summary_large_image",
    "twitter:widgets:new-embed-design": "on",
    "twitter:image:src": "https://media2.dev.to/dynamic/image/width=1000,height=500,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fsjuc1qhk5bb3p9sv3h9h.jpg"
  },
  "paywall": {
    "listed_paid": false,
    "detected": false,
    "marker": "",
    "public_only": false,
    "policy": "付费/会员内容只保留页面公开可见部分，不绕过付费墙"
  },
  "crawl": {
    "success": true,
    "status_code": 200,
    "error": ""
  },
  "code_blocks": [
    {
      "file": "attachments/0e7910e5faa8/code/body-000.txt",
      "chars": 154,
      "language": "text"
    }
  ],
  "images": [
    {
      "status": "ok",
      "url": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fr2mxn9sr9rterws93n14.PNG",
      "bytes": 123328,
      "reused": true,
      "local_path": "attachments/0e7910e5faa8/images/002.png",
      "src": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fr2mxn9sr9rterws93n14.PNG",
      "alt": "Alt Text",
      "downloaded": true
    },
    {
      "status": "ok",
      "url": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkohn0k81kixcr42nm1gy.png",
      "bytes": 70626,
      "reused": true,
      "local_path": "attachments/0e7910e5faa8/images/003.png",
      "src": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkohn0k81kixcr42nm1gy.png",
      "alt": "Alt Text",
      "downloaded": true
    },
    {
      "status": "ok",
      "url": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fb86o3ylphalr53ib126j.png",
      "bytes": 103420,
      "reused": true,
      "local_path": "attachments/0e7910e5faa8/images/004.png",
      "src": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fb86o3ylphalr53ib126j.png",
      "alt": "Alt Text",
      "downloaded": true
    },
    {
      "status": "ok",
      "url": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F0gon0xleah4vtf1th2gy.png",
      "bytes": 23944,
      "reused": true,
      "local_path": "attachments/0e7910e5faa8/images/005.png",
      "src": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F0gon0xleah4vtf1th2gy.png",
      "alt": "Alt Text",
      "downloaded": true
    },
    {
      "status": "ok",
      "url": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs1mu8m936wvg8b8t3tvk.png",
      "bytes": 42690,
      "reused": true,
      "local_path": "attachments/0e7910e5faa8/images/006.png",
      "src": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs1mu8m936wvg8b8t3tvk.png",
      "alt": "Alt Text",
      "downloaded": true
    },
    {
      "status": "ok",
      "url": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffztfh3ayqafl1ceg3qsi.png",
      "bytes": 185478,
      "reused": true,
      "local_path": "attachments/0e7910e5faa8/images/007.png",
      "src": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffztfh3ayqafl1ceg3qsi.png",
      "alt": "Alt Text",
      "downloaded": true
    },
    {
      "status": "ok",
      "url": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5ufkm30moz3219m1x3wb.PNG",
      "bytes": 290942,
      "reused": true,
      "local_path": "attachments/0e7910e5faa8/images/008.png",
      "src": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5ufkm30moz3219m1x3wb.PNG",
      "alt": "Alt Text",
      "downloaded": true
    },
    {
      "status": "ok",
      "url": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2xhhx8c2upl3udnsv5l4.png",
      "bytes": 135070,
      "reused": false,
      "local_path": "attachments/0e7910e5faa8/images/body-e8d75db909527ca11024.png",
      "src": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2xhhx8c2upl3udnsv5l4.png",
      "alt": "Alt Text",
      "downloaded": true
    }
  ],
  "audio": [],
  "videos": [],
  "links": [
    {
      "href": "https://python-visualization.github.io/folium/",
      "label": "Folium",
      "type": "a"
    },
    {
      "href": "https://geopandas.org/",
      "label": "GeoPandas",
      "type": "a"
    },
    {
      "href": "https://basemaptutorial.readthedocs.io/en/latest/",
      "label": "Basemap",
      "type": "a"
    },
    {
      "href": "https://geoviews.org/",
      "label": "GeoViews",
      "type": "a"
    },
    {
      "href": "https://kepler.gl/",
      "label": "KeplerGL",
      "type": "a"
    },
    {
      "href": "https://ipyleaflet.readthedocs.io/en/latest/",
      "label": "IpyLeaflet",
      "type": "a"
    },
    {
      "href": "https://scitools.org.uk/cartopy/docs/latest/",
      "label": "Cartopy",
      "type": "a"
    },
    {
      "href": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fr2mxn9sr9rterws93n14.PNG",
      "label": "",
      "type": "a"
    },
    {
      "href": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkohn0k81kixcr42nm1gy.png",
      "label": "",
      "type": "a"
    },
    {
      "href": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fb86o3ylphalr53ib126j.png",
      "label": "",
      "type": "a"
    },
    {
      "href": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F0gon0xleah4vtf1th2gy.png",
      "label": "",
      "type": "a"
    },
    {
      "href": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs1mu8m936wvg8b8t3tvk.png",
      "label": "",
      "type": "a"
    },
    {
      "href": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffztfh3ayqafl1ceg3qsi.png",
      "label": "",
      "type": "a"
    },
    {
      "href": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5ufkm30moz3219m1x3wb.PNG",
      "label": "",
      "type": "a"
    },
    {
      "href": "https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2xhhx8c2upl3udnsv5l4.png",
      "label": "",
      "type": "a"
    }
  ],
  "repair_version": 2,
  "repaired_at": "2026-10-14T10:49:22Z",
  "source_url": "https://dev.to/amananandrai/geospatial-data-and-7-python-libraries-to-visualize-them-5gi1",
  "papers": [],
  "actual_video_files": [],
  "body_chars": 3699,
  "expected_body_images": 8,
  "discovery_status": "ok",
  "delivery_status": "ok",
  "missing_reason": "",
  "raw_html": "attachments/0e7910e5faa8/pages/source.html",
  "local_html": "attachments/0e7910e5faa8/pages/article.html",
  "body_base_path": "attachments/0e7910e5faa8/pages/",
  "body_markdown_path": "attachments/0e7910e5faa8/pages/article.md"
}