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.
MOOS Map targets current upstream MOOS-IvP with the default PROJ-backed
CMOOSGeodesy. Its datum-fixed UTM zone and hemisphere support maps that cross
zone boundaries or the equator. Legacy MOOS-IvP builds and current builds
configured with --with-proj=off are not supported for maps that cross a UTM
zone boundary or the equator.
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: HeroCC/AnaxiMap demonstrated a practical tile-download and stitching workflow that inspired MOOS Map's map acquisition pipeline.
- Raymond Turrisi: His map-building prototype helped shape the practical workflow and direction of this project.
AnaxiMap already provided coordinate-driven XYZ tile acquisition and stitching,
source selection, downloaded-tile reuse, and initial .info generation. Ray's
prototype already provided browser map navigation, two-click region selection,
adjustable bounds and origin, location search, live export estimates, imagery
selection, and TIFF export. MOOS Map independently implemented and extended
those foundations with:
-
Exact Geographic Cropping: Resamples the fractional source-tile window so the TIFF and its recorded bounds match the requested coordinates instead of retaining whole-tile margins.
-
pMarineViewer Metadata: Produces the strict six-key
.infoformat expected by currentpMarineViewer, including the mission datum. Ray's prototype does not generate.info; AnaxiMap's file includes additional active keys that currentpMarineViewerrejects. -
Complete Map Bundles: Places matching
.tif,.info, and optional copy-ready.moosfiles together in a named output directory. -
Current MOOS Geodesy Compatibility: Supports datum-fixed PROJ maps that cross UTM boundaries or the equator and calculates pMarineViewer placement estimates even when the map center and mission origin select different natural zones.
-
Shared CLI and GUI Core: Uses the same source registry, crop calculations, cache, output writers, and validation from both interfaces, rather than maintaining separate build implementations.
-
Reproducible Planning: Extends AnaxiMap's dry run and Ray's live estimates with exact output dimensions, tile and pixel counts, resolution, ground size, selected bounds, mission origin, and modeled
pMarineViewerplacement. -
Post-Build Verification: Reopens completed TIFF and
.infofiles and verifies their dimensions, names, bounds, datum, syntax, and bundle consistency before reporting success. -
Reliable Tile Acquisition: Downloads concurrently, retries throttling and transient server errors, validates returned image data and dimensions, and rejects incomplete builds.
-
Source-Isolated Caching: Stores reusable tiles in provider-specific namespaces, preventing imagery from different services at the same coordinates from colliding.
-
Offline MBTiles Support: Builds maps directly from local MBTiles archives without contacting a hosted tile provider.
-
Source Policy Controls: Records attribution and provider metadata, distinguishes preview-only sources, and requires explicit acknowledgement before exporting from a custom XYZ service.
-
Bounded Builds: Enforces configurable tile-count, pixel-count, response-size, coordinate, and zoom limits before expensive or unsafe work begins.
-
Transaction-Safe Output: Builds and verifies files in staging, replaces existing bundles atomically, and restores prior files if installation or verification fails.
-
Automation Interfaces: Provides
sources,plan,build, andverifycommands with machine-readable JSON output for repeatable scripts and agent workflows. -
Improved Place Search: Extends Ray's single-result, submit-only Nominatim search with autocomplete, multiple ranked results, duplicate removal, keyboard navigation, result-specific viewport fitting, server-side Photon requests, caching, and structured error handling.
-
Automated Tests: Covers geometry, acquisition, caching, source policy, bundle generation,
.infoparsing, CLI behavior, web endpoints, geocoding, and failure recovery. -
Viewer Validation: Documents a direct comparison with the shipped MIT
pMarineViewermap using matched local and geographic vehicle positions to validate TIFF alignment, datum handling, and mission placement.
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 moos_map-1.2.0.tar.gz.
File metadata
- Download URL: moos_map-1.2.0.tar.gz
- Upload date:
- Size: 66.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ece5f6052988e034ab32bb2b754f6beb9b82edc201ccb985ec975c266d3d3d9
|
|
| MD5 |
56eb9500dd4e7b7bd66c3357fe81d570
|
|
| BLAKE2b-256 |
9bad6da7c80814561e3b596864a0b1bbaa566d3bee256600c71e5178ed738668
|
Provenance
The following attestation bundles were made for moos_map-1.2.0.tar.gz:
Publisher:
release.yml on cbenjamin23/moos-map
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moos_map-1.2.0.tar.gz -
Subject digest:
0ece5f6052988e034ab32bb2b754f6beb9b82edc201ccb985ec975c266d3d3d9 - Sigstore transparency entry: 2626660726
- Sigstore integration time:
-
Permalink:
cbenjamin23/moos-map@a812fb230016fba9b6c067fa2acbe83b449733b8 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/cbenjamin23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a812fb230016fba9b6c067fa2acbe83b449733b8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file moos_map-1.2.0-py3-none-any.whl.
File metadata
- Download URL: moos_map-1.2.0-py3-none-any.whl
- Upload date:
- Size: 60.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8562d2a069d97bb837a19d81c4667b9078645f47075508150b38bff208da8fdf
|
|
| MD5 |
1a2f7c139a11786e18a27ce17341cafb
|
|
| BLAKE2b-256 |
b0bd27025587ec51c5cea11abd933f70cad57303e7cb4dcc7330cf3e7da0f1f0
|
Provenance
The following attestation bundles were made for moos_map-1.2.0-py3-none-any.whl:
Publisher:
release.yml on cbenjamin23/moos-map
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moos_map-1.2.0-py3-none-any.whl -
Subject digest:
8562d2a069d97bb837a19d81c4667b9078645f47075508150b38bff208da8fdf - Sigstore transparency entry: 2626660736
- Sigstore integration time:
-
Permalink:
cbenjamin23/moos-map@a812fb230016fba9b6c067fa2acbe83b449733b8 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/cbenjamin23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a812fb230016fba9b6c067fa2acbe83b449733b8 -
Trigger Event:
release
-
Statement type: