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.4.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.4.tar.gz.
File metadata
- Download URL: vjmap_py_client-0.1.4.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfe821b7cf675d41eaed1e3cd514008b52d62f82bddd0eed75640e4f5fe5ad26
|
|
| MD5 |
871efbec151f390f7e52b05c7a50a196
|
|
| BLAKE2b-256 |
879a7f750074e879eb7bd18bb1f1a10cab072529d09460167caa2f412b3d7859
|
File details
Details for the file vjmap_py_client-0.1.4-py3-none-any.whl.
File metadata
- Download URL: vjmap_py_client-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fdab3edc2e2efd0155a3aa20defcd41598e546bae2e42ecebebcf3f34b8a424
|
|
| MD5 |
869286de969434bb5e07add1565edb39
|
|
| BLAKE2b-256 |
28b6fd9f47541948142d223f9aaf7b4b57dc40c595ca09969bb702ad3cf18364
|