Skip to main content

Create shp file for geo-spatial analysis from longitude and latitude

Project description

What is it?

Pandas2Shp module create shape file using latitude and longitude information from pandas columns or python list. Shape file are needed for geo-spatial data analysis.

Input parameters

  • longitude Pandas series or dataframe column or numpy array or python list.
  • latitude Pandas series or dataframe column or numpy array or python list.
  • output_path Directory where you want to save the shape file.
  • file_name File name to be kept for shape file in the given output path.

How to use is it?

from Pandas2Shp import Pandas2Shp

long=[-14.394,-9.03,-25.171,-6.712000000000001,-7.932,-8.445,-8.47,-9.355,-7.48,-7.888999999999999,-31.131,-7.966,-28.03,-28.715999999999998,-27.093000000000004,-8.887,-9.036,-25.698,-28.44,-8.584]
lat=[-7.968999999999999,38.883,36.971,41.868,38.079,41.586999999999996,40.157,38.725,40.265,38.533,39.455,37.014,39.092,38.52,38.764,39.830999999999996,38.704,37.741,38.554,37.149]
output_path='/home/user/airport/'
file_name='airports'

myObj=Pandas2Shp(longitude,latitude,output_path,file_name)
myObj.getShp()

Where to get it?

pip install Pandas2Shp

Dependencies

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

Pandas2Shp-0.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

Pandas2Shp-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file Pandas2Shp-0.0.2.tar.gz.

File metadata

  • Download URL: Pandas2Shp-0.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for Pandas2Shp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2ab01b4d454095661d86456ba9bf00ab081463908046b4b26c2fce30088436fb
MD5 b2ae4dd31995804fc70bbdd541a69750
BLAKE2b-256 cbed5295802f922c252bf2503124e7eb696ad46d35794895b2c14edb01cc19b1

See more details on using hashes here.

File details

Details for the file Pandas2Shp-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Pandas2Shp-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for Pandas2Shp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c00cbb6fd33804a1d8d29bcde92747acc3aa6b9df8ddc30e0a852c12bbb51da
MD5 688067b0a7b6f4f9e2a359a4115ecc4b
BLAKE2b-256 a32cd7fb67034ce5d2c75ed55ec6b41eb7d7cc0ed69296814a367f78803ff67d

See more details on using hashes here.

Supported by

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