Encoder/decoder for simple GIS features
Project description
This package contains:
The reference implementation of the Python geo interface:
Functions for encoding and decoding GeoJSON (http://geojson.org) formatted data.
Geojson provides geometry, feature, and collection classes, and supports pickle-style dump and load of objects that provide the lab’s Python geo interface. Here’s an example of a round-trip through the GeoJSON format:
>>> import geojson >>> p = geojson.Point([0.0, 0.0]) >>> p Point(coordinates=[0.0, 0.0]) >>> data = geojson.dumps(p) >>> data '{"type": "Point", "coordinates": [0.0, 0.0]}' >>> q = geojson.loads(data, object_hook=geojson.GeoJSON.to_instance) >>> q Point(coordinates=[0.0, 0.0])
The geometry classes interoperate with Shapely via the geo interface:
>>> from shapely.geometry import asShape >>> x = asShape(p) >>> x.wkt 'POINT (0.0000000000000000 0.0000000000000000)'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
geojson-1.0.1.tar.gz
(12.3 kB
view details)
File details
Details for the file geojson-1.0.1.tar.gz
.
File metadata
- Download URL: geojson-1.0.1.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
32ea7e82b811a6ca29a283ac4d15a8ecec75ba5105245c67e9c03b23eb50b806
|
|
MD5 |
e71eadfa718684480b99f6be5269558a
|
|
BLAKE2b-256 |
d7ed9d2261655010f6b97a7747b9f7c657740a99ba38afc6fa96303ae0b3c3c7
|