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

Metadata

Release files for shape2geosparql 0.1.1

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

Source distribution (sdist)

Source distribution for shape2geosparql 0.1.1
File Size Uploaded Provenance Actions
shape2geosparql-0.1.1.tar.gz 3.9 kB Without provenance Details for shape2geosparql-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shape2geosparql 0.1.1
File Interpreter ABI Platform Actions
shape2geosparql-0.1.1-py3-none-any.whl Python 3 none any Details for shape2geosparql-0.1.1-py3-none-any.whl

Total release size: 9.6 kB

Release files / shape2geosparql-0.1.1.tar.gz

Download URL shape2geosparql-0.1.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b88709e43b73c25d6d5151beae3c7fc748afcda5575f99a80fcb962867d14454
BLAKE2b-256 checksum
How to use checksums
7a65997de624df304a8985c86d8482dcc30f9b987b021e4c84f50bb77d83857b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / shape2geosparql-0.1.1-py3-none-any.whl

Download URL shape2geosparql-0.1.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
088707dbac0eb42df9caf1121de3e1820f6227c64c2f7896afdffcc27e032ad7
BLAKE2b-256 checksum
How to use checksums
851535a6b8a3d2ea8a406dcc954eaff822a467d4224b2f1495ca9aebbf13e392
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for shape2geosparql 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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