A small geospatial dataset converter package
Project description
Introduction
It is used to convert vector files like Shp, KML, GeoJson to one another.
How to RUN
import geoconvert as geoc data = geoc.vector() # Loading data data.path_input = 'Building.shp' data.config() # Converting data data.towgs(path_towgs='export/Building.shp') data.tokml(path_tokml='export/Building.kml') data.togeojson(path_togeojson='export/Building.json')
Limitations
It cannot work with multi class dataset. For example - If a KML have both point and line, then conversion will fail. [Resolved in 0.2.0]
RoadMap
[x] Multiclass dataset support (0.2.0)
[ ] Raster conversion support
Class
Vector
### Methods
vector.towgs(path_towgs)
Saves vector of any coordinate system to WGS coordinates on the given path
[Default] - ‘Filename_wgs.format’
vector.tokml(path_tokml)
Saves vector files to KML format. KML is always stored as WGS 84 Geographic coordinate system.
[Default]
path_tokml = ‘Filename.kml’
vector.toshp(epsg, path_toshp)
Saves vector files to shp format in the provided epsg code to given path.
[Default] -
path_toshp = ‘Filename.shp’
epsg = 4326
vector.togeojson(epsg, path_togeojson)
Saves vector files to KML format. KML is always stored as WGS 84 Geographic coordinate system.
[Default] -
path_togeojson = ‘Filename.json’
epsg = 4326
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
File details
Details for the file geoconvert-0.2.0.tar.gz.
File metadata
- Download URL: geoconvert-0.2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dee616abc80ebff457bbed60028d5a433ad389c5aa5230d5b8812bf0788f2c9e
|
|
| MD5 |
22a626da6de7511815df79641d96c396
|
|
| BLAKE2b-256 |
75f1597cfc3e482273e62b47a920493258a7b86c578634a3c05abc16d7adef24
|