Skip to main content

convert-shp-to-csv

This tool will take a shape file (.shp), and convert it to a gridded csv file with lat/long of the center of the grid as columns.

Any shapes that overlap this point when the shape is overlaid on to the grid will be reflected in additional columns

Usage:

usage: convert-shp-to-csv [-h] [--output-file OUTPUT_FILE] [--cell-size CELL_SIZE] shape_file

Converts a shape file (.shp) to a gridded csv file.
    

positional arguments:
  shape_file            Shape file (.shp) to convert

optional arguments:
  -h, --help            show this help message and exit
  --output-file OUTPUT_FILE, -o OUTPUT_FILE
                        Name of csv file to output
  --cell-size CELL_SIZE
                        Cell size, in lat/long segments. Default: 0.1

Example output:

latitude,longitude,EthGLG,EthHGComb
7.4488230199999546,34.35153731999999,Unconsolidated sedimentary - Miocene to Recent (minor consolidated Alwero Sandstone),U-LM
7.4488230199999546,34.35153731999999,Igneous Volcanic,I-M/H
7.4488230199999546,34.35153731999999,Precambrian Mobile/Orogenic Belt,B-L
7.548823019999955,34.35153731999999,Unconsolidated sedimentary - Miocene to Recent (minor consolidated Alwero Sandstone),U-LM
7.548823019999955,34.35153731999999,Igneous Volcanic,I-M/H
7.548823019999955,34.35153731999999,Unconsolidated sedimentary - Miocene to Recent (minor consolidated Alwero Sandstone),U-LM

Metadata

Release files for convert-shp-to-csv 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for convert-shp-to-csv 0.2.0
File Size Uploaded
convert-shp-to-csv-0.2.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for convert-shp-to-csv 0.2.0
File Interpreter ABI Platform
convert_shp_to_csv-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / convert-shp-to-csv-0.2.0.tar.gz

Download URL convert-shp-to-csv-0.2.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dccaa059dee3b56fc6783ef0249cd805a4fb3364ab566d508fdd46ff67bc1c05
BLAKE2b-256 checksum
How to use checksums
181396cbb400f523a1af1dc29262568f3a05d77794aa131b7f71cee3abca7685
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.10 Linux/5.14.0-1029-oem

Release files / convert_shp_to_csv-0.2.0-py3-none-any.whl

Download URL convert_shp_to_csv-0.2.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ad7338eb1e8f109a1487b896b930ce60a5e46e3c8bac06fe9c430c14fa18dc0
BLAKE2b-256 checksum
How to use checksums
260a210405ddcda12fc1e0ee3e9a4fa214d7eaea18244f53fca41c40c4bb1690
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.10 Linux/5.14.0-1029-oem

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page