arcgis-compressed-geometry
A Python library for encoding and decoding ArcGIS Compressed Geometry Format.
Introduction
This library provides encoding and decoding functionality for ArcGIS Compressed Geometry Format. It supports the following coordinate formats:
- xy (2D coordinates)
- xyz (3D coordinates with elevation)
- xym (coordinates with measure values)
- xyzm (coordinates with elevation and measure values)
Installation
You can install the package using pip:
pip install arcgis-compressed-geometry==0.0.1
How to use
Encode
from arcgis_compressed_geometry import encode
coordinates = [
[-122.40645857695421, 37.78272915354862],
[-122.40609876765315, 37.78299901052442],
[-122.40597283439777, 37.78305298191958],
[-122.40417378789242, 37.7844382477287],
]
geometry = encode(coordinates, "xy", 55585)
assert geometry == "+0+1+0+1m91-6fkfr+202tp+k+f+7+3+34+2d"
Decode
from arcgis_compressed_geometry import decode
points = decode(
"+0+1+2+1m91-6733n+1pjfe+g-e+1b-r+9-9+c-h+2-j-3-v-7-j-b-m-5-7-e-f-1a-u-6-7-4-9-3-a-1-n+1-4j|+5rg+81s+7n+i0+4f+7r+7g+ce+7n+9j+3h+7n+ib+3a+3q+45+97+1qs"
)
Metadata
Release files for arcgis-compressed-geometry 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arcgis_compressed_geometry-0.0.2.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arcgis_compressed_geometry-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / arcgis_compressed_geometry-0.0.2.tar.gz
| Download URL | arcgis_compressed_geometry-0.0.2.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03a24a87016fe40abd6b76eb793474c4793546c74f0cce6bf3d70904e679f40e
|
|
BLAKE2b-256 checksum How to use checksums |
fd9e2843b513787ed11a9e72c35990c77288540355ef4284257f0410dec09a73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / arcgis_compressed_geometry-0.0.2-py3-none-any.whl
| Download URL | arcgis_compressed_geometry-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
379c69a533a5601a2ff52ece741296f3a148c0c8e13d5a3a3952d840af83d932
|
|
BLAKE2b-256 checksum How to use checksums |
0d5d7b6732db50e304d87f65e52a3e3f5da4ca2375800d0c60a0689f6449ffd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|