Skip to main content

shape2geosparql

A library for converting shapefiles to GeoSPARQL.

Install

The GDAL library should already be installed on the system. On Fedora:

$ sudo yum install gdal-devel

On other systems:

You only need to install the core library, as the Python bindings will be installed with shape2geosparql.

Once GDAL is installed:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install shape2geosparql

Should there be any problems in installing the GDAL Python library, try to run this first:

$ pip install gdal==$(gdal-config --version)

or insert the GDAL version number in place of $(gdal-config --version).

Usage

Download and extract a shapefile, for example from:

Then, from python, IPython or Jupyter:

from shape2geosparql import convert

converter = convert('FILENAME.shp')
print(converter.write().decode()) 

You can also run the shape2geosparql command:

$ shape2geosparql FILENAME.shp

Download files

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

Source Distribution

shape2geosparql-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

shape2geosparql-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file shape2geosparql-0.1.0.tar.gz.

File metadata

  • Download URL: shape2geosparql-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for shape2geosparql-0.1.0.tar.gz
Algorithm Hash digest
SHA256 be9573addee01fabf1218035500c46e908a29f2cdc6ba1681dc4e7e740f985d8
MD5 e097733aec6d0395e52b09d147086af6
BLAKE2b-256 6c93f88711b1d484c998f40cf926476fa567d22d933e384df8e71b289a5cf8ac

See more details on using hashes here.

File details

Details for the file shape2geosparql-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: shape2geosparql-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for shape2geosparql-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 203fe8d2add367aaf56d39ea852e1bc2048a65cbc8f11ca89834a72164e09310
MD5 51e224e94388e09c705113572a185b35
BLAKE2b-256 982934e5e1e83dc4ec713666a857e112316197004d838f9494f41f2ca49708f8

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 Sentry Error logging StatusPage Status page