Skip to content

CesiumJS Globe

The globe view renders sonar file locations as color-coded markers on a CesiumJS 3D globe. Clicking a marker loads and displays the file’s navigation track as a polyline.

URL: http://localhost:8080/globe

Files are displayed as colored points based on their sonar format:

ColorFormat
CyanXTF
OrangeJSF
GreenS7K
YellowKMALL
RedALL
PurpleBAG
WhiteOther

Click any marker to load the file’s navigation track. The track renders as a glowing polyline showing the survey path.

Use the dropdown to show/hide markers by sonar format. The point count updates in real-time.

On load, the globe queries /api/geo/bounds to determine the extent of all nav data and flies the camera to frame it.

The globe uses three API endpoints:

EndpointDescription
GET /api/geo/pointsAll file center points with format and name
GET /api/geo/track/<hash>Full nav track for a specific file
GET /api/geo/boundsOverall geographic extent of all nav data
ParameterTypeDescription
lat_minfloatSouthern bound
lat_maxfloatNorthern bound
lon_minfloatWestern bound
lon_maxfloatEastern bound
formatstringFilter by sonar format
limitintMax points to return (default: 10000)
  • The web extra must be installed: pip install ".[web]"
  • CesiumJS is loaded from CDN (requires internet access)
  • Files must have nav data extracted (run sonar-catalog extract-nav or use demo data)
8080/globe
sonar-catalog init
sonar-catalog demo --num-files 100
sonar-catalog web --port 8080