convert-shp-to-csv-0.2.0
توضیحات
Converts shape files (.shp) to a gridded csv file
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | convert-shp-to-csv-0.2.0 |
| نام | convert-shp-to-csv |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Brandon Rose |
| ایمیل نویسنده | brandon@jataware.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/convert-shp-to-csv/ |
| مجوز | MIT |
# 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
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.10.2,<0.11.0 | geopandas |
| >=1.8.1,<2.0.0 | Shapely |
| >=1.22.3,<2.0.0 | numpy |
| >=0.12.0,<0.13.0 | pygeos |
| >=2.5.1,<3.0.0 | haversine |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl convert-shp-to-csv-0.2.0:
pip install convert-shp-to-csv-0.2.0.whl
نصب پکیج tar.gz convert-shp-to-csv-0.2.0:
pip install convert-shp-to-csv-0.2.0.tar.gz