Placeholder for Myreze data and visualization package
Project description
Myreze
Myreze is a data passing, processing and visualization toolkit for handling geospatial data and rendering it through different visualization engines. It provides a unified interface for managing, validating, and visualizing geospatial data with time components.
Installation
pip install -e .
Core Concepts
Myreze is built around these core concepts:
- Data Packages: Container for geospatial data with time information
- Time: Flexible time representation (timestamps, spans, series)
- Renderers: Visualization schemas for different platforms
Usage
Creating a Data Package
from myreze.data import MyrezeDataPackage, Time
# Create a timestamp for your data
time_data = Time.timestamp("2023-01-01T00:00:00Z")
# Create a data package with your geospatial data
data_package = MyrezeDataPackage(
id="my-geodata",
data={"points": [[lat1, lon1], [lat2, lon2]]},
time=time_data,
metadata={"creator": "Your Name", "description": "Sample dataset"}
)
# Export to JSON
json_data = data_package.to_json()
Visualizing with Three.js
from myreze.data import MyrezeDataPackage
from myreze.viz import ThreeJSRenderer
# Create a data package
data_package = MyrezeDataPackage(
id="visualization-example",
data=your_data,
time=your_time,
threejs_visualization=ThreeJSRenderer()
)
# Generate visualization
visualization = data_package.to_threejs(params={})
Visualizing with Unreal Engine
from myreze.data import MyrezeDataPackage
from myreze.viz import UnrealRenderer
# Create a data package
data_package = MyrezeDataPackage(
id="unreal-example",
data=your_data,
time=your_time,
unreal_visualization=UnrealRenderer()
)
# Generate visualization
visualization = data_package.to_unreal(params={})
Time Handling
Myreze provides flexible time handling:
from myreze.data import Time
# Single timestamp
timestamp = Time.timestamp("2023-01-01T00:00:00Z")
# Time span
timespan = Time.span("2023-01-01T00:00:00Z", "2023-01-02T00:00:00Z")
# Time series
timeseries = Time.series([
"2023-01-01T00:00:00Z",
"2023-01-01T01:00:00Z",
"2023-01-01T02:00:00Z"
])
Package Components
- data: Core data structures and validation
- viz: Visualization renderers for various platforms
- threejs: Web-based 3D visualizations
- unreal: Unreal Engine visualizations
- png: Static image export
Development
Update PyPI
python -m build
python -m twine upload dist/*
Dependencies
- numpy: For numerical operations
- isodate: For ISO 8601 parsing
Data conventions
For convenience, let's stick to some simple rules:
- Use Web Mercator WGS84 auxiliary sphere (EPSG 3857) when passing geolocations (like bounding boxes). See
- Return geolocated data normalized to the (0,1) planar region.
- Let the second component (y) in the returned geometries point up.
- Place any layers at y=0 offset.
Documentation
See the API documentation and tutorial for more information.
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
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 myreze-0.0.4.tar.gz.
File metadata
- Download URL: myreze-0.0.4.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bb0d04a64d8e6bdc88ce736adde7c014f02da87cca8ff70234b6c1630f70cdc
|
|
| MD5 |
f5afdfc01971623798eab0603b97603c
|
|
| BLAKE2b-256 |
5e2200136bb6dde1e4f82318455b8e8240b38177903b224281356348a3d67b2d
|
File details
Details for the file myreze-0.0.4-py3-none-any.whl.
File metadata
- Download URL: myreze-0.0.4-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad7c2e9676f32ae8d3e558f8677bdcb631d1fd7d0a2f9db0b192c929935dde04
|
|
| MD5 |
547db815f2248415ba79dc581b9050d1
|
|
| BLAKE2b-256 |
d6f6991743b466b7e98ffafe70301a4a21cf7869a90383085a9e53436223fe49
|