A package for interacting with the Vjmap Service-API
Project description
vjmap-py-client
Python Client for VjMap REST services
Installation
Install with pip:
pip install vjmap-py-client
Usage
from vjmap_py_client import VjmapClient, RectQueryParameter, PointQueryParameter, ExprQueryParameter, ConditionQueryParameter
client = VjmapClient(access_token="your_access_token", base_url="your_base_url")
# Upload a map
upload_result = client.upload_map(map_file_path="your_map_file_path")
map_id = upload_result["mapid"]
fileid = upload_result["fileid"]
uploadname = upload_result["uploadname"]
# Open a map
result = client.open_map(map_id=map_id,
params={"fileid": fileid, "uploadname": uploadname})
version = result["version"]
# List all maps
result = client.list_maps(map_id=map_id, version=version)
# Get bounds
result = client.get_data_bounds(map_id=map_id, version=version)
x1, y1, x2, y2 = result["bounds"]
# Query a map
rect = RectQueryParameter(x1=x1, y1=y1, x2=x2, y2=y2)
# you can also use PointQueryParameter or ExprQueryParameter or ConditionQueryParameter
result = client.query_features(map_id=map_id, version=version, parameters=rect)
# Get metadata
result = client.get_metadata(map_id=map_id, version=version)
# Close a map
result = client.close_map(map_id=map_id, version=version)
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
vjmap_py_client-0.1.3.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vjmap_py_client-0.1.3.tar.gz.
File metadata
- Download URL: vjmap_py_client-0.1.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9d2e67f3cb54f6f3b5de209c0dd44ba34b05bc04ab957b119b1b9e1f1663f6a
|
|
| MD5 |
a919e66ac370f570807072dfbaa38ce6
|
|
| BLAKE2b-256 |
1af2103c091110af3b076c38655173026c9aeff1bbccbc7254366927cd927062
|
File details
Details for the file vjmap_py_client-0.1.3-py3-none-any.whl.
File metadata
- Download URL: vjmap_py_client-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7999aa7c389d57733dc10c2ba54dc9d08c558d6a021ccd62e96879543f39ea3c
|
|
| MD5 |
dd2c7d8e84db233033fec00c707e0bcd
|
|
| BLAKE2b-256 |
f1536f031af5bbc15369ea07b237424532bd2d0d3a4a54ccbb1bca8d99caab52
|