Skip to main content

Command line vector viewer for .shp, .geojson, .gpkg, .geoparquet, .kml, and .kmz with a simple Qt UI.

Project description

viewgeom

Downloads PyPI version Python version

Quick viewer for vector datasets from the command line.

Supports:

  • Shapefile (.shp)
  • GeoJSON (.geojson, .json)
  • GeoPackage (.gpkg)
  • GeoParquet (.parquet, .geoparquet)
  • KML, KMZ (.kml, .kmz — displayed as boundaries only)

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.
KML/KMZ files are rendered as outlines only (converted from polygons to boundary lines for faster display and compatibility).

Credit & License

viewgeom, which followed from viewtif, was inspired by the NASA JPL Thermal Viewer — Semi-Automated Georeferencer (GeoViewer v1.12) developed by Jake Longenecker (University of Miami Rosenstiel School of Marine, Atmospheric & Earth Science) while at the NASA Jet Propulsion Laboratory, California Institute of Technology, with inspiration from JPL’s ECOSTRESS geolocation batch workflow by Andrew Alamillo. The original GeoViewer was released under the MIT License (2025) and may be freely adapted with citation.

Citation

Longenecker, Jake; Lee, Christine; Hulley, Glynn; Cawse-Nicholson, Kerry; Purkis, Sam; Gleason, Art; Otis, Dan; Galdamez, Ileana; Meiseles, Jacquelyn. GeoViewer v1.12: NASA JPL Thermal Viewer—Semi-Automated Georeferencer User Guide & Reference Manual. Jet Propulsion Laboratory, California Institute of Technology, 2025. PDF.

License

This project is released under the MIT License © 2025 Keiko Nomura.

If you find this tool useful, please consider supporting or acknowledging the author.

Useful links

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.2.tar.gz (9.9 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.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file viewgeom-0.1.2.tar.gz.

File metadata

  • Download URL: viewgeom-0.1.2.tar.gz
  • Upload date:
  • Size: 9.9 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.2.tar.gz
Algorithm Hash digest
SHA256 b466a9e64244c15a3adde0778e9d8f26f3bc11d16f77eacc711119ce1b942a35
MD5 099127ff5052ecb01b8c05222adc50b9
BLAKE2b-256 70e39b436d1b5be3e7e8db2b358149c8015da26f55f4f3ab79c6652dc8fbab34

See more details on using hashes here.

File details

Details for the file viewgeom-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: viewgeom-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 101465960deb0c265c9bac8f092058702e1e59b7b7662093bf681efededff753
MD5 9fac68dc47b6ec459b26e3c9730841b0
BLAKE2b-256 4b6f5887c17c0e698639404374ec86493813f107977483b9e0f56971f477b40b

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