Fast, lightweight vector viewer for .shp, .geojson, .gpkg, and (geo)parquet with a simple Qt UI.
Project description
geomviewer
Quick viewer for vector datasets from the command line.
Supports:
- Shapefile (.shp)
- GeoJSON (.geojson, .json)
- GeoPackage (.gpkg)
- GeoParquet (.parquet, .geoparquet)
It automatically detects numeric columns and allows switching visualization columns.
Installation
pip install viewgeom
Note: Requires Python 3.9 or later.
Usage
viewgeom <path> [--column <name>] [--layer <name>] [--limit N] [--simplify tol]
| Option | Description |
|---|---|
--column <name> |
Choose numeric column for coloring |
--layer <name> |
Select layer in a .gpkg file |
--limit N |
Max number of features to load (default: 100000) |
--simplify <tol/off> |
Geometry simplification (default: 0.01, use off to disable) |
Examples
# View a GeoJSON
viewgeom gadm41_JPN_1.json
# Color by a numeric column
viewgeom landuse.shp --column area_sqkm
# View a GeoPackage and its specific layer
viewgeom countries.gpkg --layer ADM_ADM_2
# View a geoparquet
viewgeom mangrove_with_EAD.geoparquet --limit 150000 --simplify off
Keyboard Controls
| Key | Action |
|---|---|
+ / - |
Zoom in / out |
| Arrow keys | Pan |
[ / ] |
Switch numeric columns |
M |
Switch colormap |
B |
Toggle basemap |
R |
Reset view |
Notes
• For fast performance, only the first 100,000 features are displayed by default. Adjust with
--limit(e.g.,--limit 500000or--limit 0for no limit).
• Complex geometries are simplified by default (--simplify 0.01).
Use--simplify offto fully disable simplification.
• Basemap requires an active internet connection.
License
MIT License
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
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 viewgeom-0.1.1.tar.gz.
File metadata
- Download URL: viewgeom-0.1.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29c22a7f2513bc03725f2aa11faf2268625cedcb9e8ce20ef7278375330084fe
|
|
| MD5 |
e9140103883bf4eb6d7f3c59631f611f
|
|
| BLAKE2b-256 |
20b2d1faa46e1be04e38a5727b03e118fce0a2939ce93d14fb79b5c99b77a1c3
|
File details
Details for the file viewgeom-0.1.1-py3-none-any.whl.
File metadata
- Download URL: viewgeom-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c37550dd280f4682a3dcc0420b805e003a8c91d025c475ebca33bc9782c44c1
|
|
| MD5 |
211281b0194e6def052205ee41bfeb10
|
|
| BLAKE2b-256 |
1ef7734cadb607e9e792a4b83f8a09ba8d2ed30b6c65bc72ee9e6475bf8cd8bd
|