Skip to main content

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 500000 or --limit 0 for no limit).
• Complex geometries are simplified by default (--simplify 0.01).
Use --simplify off to 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

viewgeom-0.1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viewgeom-0.1.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for viewgeom-0.1.1.tar.gz
Algorithm Hash digest
SHA256 29c22a7f2513bc03725f2aa11faf2268625cedcb9e8ce20ef7278375330084fe
MD5 e9140103883bf4eb6d7f3c59631f611f
BLAKE2b-256 20b2d1faa46e1be04e38a5727b03e118fce0a2939ce93d14fb79b5c99b77a1c3

See more details on using hashes here.

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

Hashes for viewgeom-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c37550dd280f4682a3dcc0420b805e003a8c91d025c475ebca33bc9782c44c1
MD5 211281b0194e6def052205ee41bfeb10
BLAKE2b-256 1ef7734cadb607e9e792a4b83f8a09ba8d2ed30b6c65bc72ee9e6475bf8cd8bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page