Skip to main content

Python package designed for efficient geospatial data analysis

Project description

GeoLode提供了多种对矢量和栅格数据进行操作的功能

ShapefileProcess

引入示例:import geolode.shapefileprocess as shplode

功能: readShapefile(SHPath) 读取shapefile文件 featureExtent(feature) 获取要素外包矩形 is_intersecting(extent, feature) 判断要素是否与矩形相交 is_contained(block, feature) 判断要素是否包含矩形

TifProcess

引入示例:import geolode.TifProcess as tiflode

功能: readTif(fileName, xoff=0, yoff=0, data_width=0, data_height=0, bands=None) 读取tif文件 readTifInChunksPix(fileName, chunk_width=256, chunk_height=256, bands=None) 读取tif文件并按块读取 readTifInChunksNum(fileName, num_chunks_x=10, num_chunks_y=10, bands=None) 读取tif文件并按块读取,按给定的分块数量进行分块 calBoundingBox(geo_transform, width, height) 计算栅格数据的边界框 removeBand(input_tif, output_tif, bands_to_remove) 删除栅格数据中的指定波段 writeTiff(fileName, data, im_geotrans=(0, 0, 0, 0, 0, 0), im_proj="") 写出tif文件

TifShpFilte

引入示例:import geolode.TifShpFilte as tifshplode

功能: filterFeaturesByExtent(features, tif_extent) 根据栅格数据范围过滤要素 RasterShpIntersect(tif_data, geo_transform, feature) 判断栅格数据与要素是否相交 check_tif_size(tif_path, expected_width=256, expected_height=256) 检查栅格数据的大小是否与给定的大小一致 clip_tif_by_shapefile(tif_path, shp_path, output_dir, tif_suffix) 将栅格数据裁剪为与矢量数据相交的区域 clip_tif_by_features(tif_path, shp_path, output_dir) 将栅格数据裁剪为与矢量数据相交的区域

更新日志

1.0.1.3版本:readTifInChunksPix与readTifInChunksNum函数添加了bands参数,便于指定读取的具体波段与次序。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geolode-1.0.1.3.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

GeoLode-1.0.1.3-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file geolode-1.0.1.3.tar.gz.

File metadata

  • Download URL: geolode-1.0.1.3.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.8

File hashes

Hashes for geolode-1.0.1.3.tar.gz
Algorithm Hash digest
SHA256 9d943b16a8ad23afc285d69c829314c5c67450faba42e53dd71b57d1d3898b13
MD5 2170c537b9947d96e871c037c4b2aaeb
BLAKE2b-256 d5c7f3984756452dc092f0535ee1c26abc984b797e1fe018693994f38ef943bd

See more details on using hashes here.

File details

Details for the file GeoLode-1.0.1.3-py3-none-any.whl.

File metadata

  • Download URL: GeoLode-1.0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.8

File hashes

Hashes for GeoLode-1.0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ab13299065130bb526afe8c4ffd4814934866bcece40a8137622a778d8a2a9d
MD5 16f501d486cef66153240e9885b26230
BLAKE2b-256 d7c342fd6307cff53446775d518cc09e8c151effe2d1662cc859157eb27fb3ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page