Skip to main content

MOOS Map Builder

Build cropped TIFF background maps for MOOS-IvP through a local browser UI or the moos-map command. Both interfaces use the same map sources, crop logic, cache, and MOOS compatibility checks.

PyPI Project

Install

MOOS Map requires Python 3.11 or newer and pipx. On macOS, install pipx and add its application directory to your shell path once:

brew install pipx
pipx ensurepath

Then install MOOS Map in its own managed environment:

pipx install moos-map

Then launch the UI:

moos-map ui

UI

Click any two diagonally opposite corners to select a region. Click-hold-drag pans the map; another single click starts a replacement selection. Review the summary and choose Build Map.

Use Find a place or enter lat, lon above the map to move the preview to a known location. Place-name autocomplete uses the public Photon service and requires an internet connection; direct coordinates work locally. Search only moves the preview viewport and never changes the selected export region, mission origin, or export zoom.

Esri World Imagery and zoom 17 are the defaults. The origin defaults to the map center. For an existing mission, open 04 Advanced placement and enter its LatOrigin and LongOrigin, or drag the red origin dot.

CLI

Build with the same defaults by supplying any two diagonal corners as latitude longitude pairs:

moos-map build \
  --corners 42.358 -71.088 42.359 -71.087 \
  --name harbor

For an existing mission, supply its origin:

moos-map build \
  --corners 42.358 -71.088 42.359 -71.087 \
  --origin 42.358436 -71.087448 \
  --name harbor

Useful commands:

moos-map sources
moos-map plan --corners 42.358 -71.088 42.359 -71.087
moos-map verify ~/moos-maps/harbor/harbor.tif
moos-map build -h

build downloads immediately; running sources or plan first is optional. Use --zoom, --source, or --output-dir to override defaults. Builds include a .moos snippet and replace same-named bundles safely by default. See moos-map build -h for opt-out and cache controls.

Output

Each map gets its own directory:

~/moos-maps/harbor/
├── harbor.tif
├── harbor.info
└── harbor.moos

Copy the .tif and .info files into a mission directory, or add that exact map directory to IVP_IMAGE_DIRS. Then add the generated harbor.moos settings to the mission. pMarineViewer does not recursively search ~/moos-maps.

The TIFF is cropped to the selected coordinates; extra downloaded tile margins are discarded. Source and requested-bound provenance is kept as ignored // comments in the .info; no JSON sidecar is created.

Sources

Built-ins include Esri World Imagery, Google Satellite, Google Hybrid, Google Maps, and Esri World Topographic. Local MBTiles and custom XYZ services are also supported. Native detail varies by location. A listed provider is not a grant of export rights; check its current terms before downloading hosted imagery.

The tile cache is ${XDG_CACHE_HOME:-~/.cache}/moos-map/tiles.

Development

git clone https://github.com/cbenjamin23/moos-map.git
cd moos-map
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[test]'
python -m pytest

See docs/architecture.md for module boundaries, docs/validation.md for the MIT pMarineViewer comparison, and TODO.md for deferred work.

License

GPL-3.0-only. See LICENSE.

Acknowledgements

MOOS Map grew out of earlier map-building work in the MOOS-IvP community. We are grateful to:

  • HeroCC/AnaxiMap for demonstrating a practical tile-download and stitching workflow that inspired MOOS Map's map acquisition pipeline.
  • Raymond Turrisi for his map-building prototype, which helped shape the practical workflow and direction of this project.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moos_map-1.1.1.tar.gz (62.1 kB view details)

Uploaded Source

Built Distribution

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

moos_map-1.1.1-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

File details

Details for the file moos_map-1.1.1.tar.gz.

File metadata

  • Download URL: moos_map-1.1.1.tar.gz
  • Upload date:
  • Size: 62.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for moos_map-1.1.1.tar.gz
Algorithm Hash digest
SHA256 3ca02c80b8ecd1bb8f9f6ee8e5916aea742c89c4262bd49f3516374006a111ef
MD5 6f8eaec15e627a51fdb500b5ab5f39f0
BLAKE2b-256 37426c60630120e7461d0f15b9068d33adcb9d008fd2eaabf32bd1b0bb280a1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for moos_map-1.1.1.tar.gz:

Publisher: release.yml on cbenjamin23/moos-map

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moos_map-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: moos_map-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 59.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for moos_map-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2f16ca9ecee862fcf41cc390488f1e167b87d88a705019bd2b636cbfb5ee184
MD5 bb2d1967784125fe532bcfcaa1a076e2
BLAKE2b-256 c064f244575afc7c04f646705ddeb0316355b1a3e74d506b2852185cdf0149c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for moos_map-1.1.1-py3-none-any.whl:

Publisher: release.yml on cbenjamin23/moos-map

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.2.0

2 files

1.1.2

2 files

This release

1.1.1 This release

2 files

1.1.0

2 files

1.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page