python3读取shp数据

目录

1 介绍

需要tmp.shp文件和tmp.dbf文件,需要安装geopandas第三方库,python3代码如下,

import geopandas as gpd

shp_file_path = "tmp.shp"
shp_data = gpd.read_file(shp_file_path)
for index, row in shp_data.iterrows():
	print(row)
	print(row["group_link"])
	break

输出示例,

在这里插入图片描述

相关推荐

  1. python读取kafka数据

    2024-07-11 00:22:05       36 阅读
  2. python 读取 hdfs 数据

    2024-07-11 00:22:05       17 阅读
  3. python/pytorch读取数据

    2024-07-11 00:22:05       50 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-11 00:22:05       53 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-11 00:22:05       55 阅读
  3. 在Django里面运行非项目文件

    2024-07-11 00:22:05       46 阅读
  4. Python语言-面向对象

    2024-07-11 00:22:05       56 阅读

热门阅读

  1. vue详解

    vue详解

    2024-07-11 00:22:05      19 阅读
  2. 深度学习与浅层学习:技术变革下的竞争态势

    2024-07-11 00:22:05       23 阅读
  3. 大数据面试题之ElasticSearch(1)

    2024-07-11 00:22:05       18 阅读
  4. 基于深度学习的异常行为检测

    2024-07-11 00:22:05       16 阅读
  5. 深入解析 MySQL 的 SHOW FULL PROCESSLIST

    2024-07-11 00:22:05       21 阅读
  6. 使用conda安装openturns

    2024-07-11 00:22:05       20 阅读
  7. c++的constexpr和constvalue的区别

    2024-07-11 00:22:05       21 阅读
  8. LASA数据集

    2024-07-11 00:22:05       20 阅读
  9. MySQL 条件函数/加密函数/转换函数

    2024-07-11 00:22:05       22 阅读
  10. Unity Addressable魔改

    2024-07-11 00:22:05       21 阅读
  11. Android关闭SLinux

    2024-07-11 00:22:05       22 阅读