RepositoryCUSUnited States
PE

pelicanmapping/osgearth

3D Maps & Terrain SDK (C++)

1.8kstars
851forks
49issues
6views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: terrain-visualization

#1 Repository of the week

1
TINIX TRENDING·Topic: openscenegraph

#1 Repository of the week

1
TINIX TRENDING·Topic: osgearth

#1 Repository of the week

Windows Linux OSX

Welcome to osgEarth!

osgEarth adds geospatially accurate 3D maps to your C++ application.

osgEarth builds on trusted open source technologies like OpenSceneGraph and GDAL to give you high-performance, accurate terrain and map rendering. It supports a myriad of geospatial data formats and map projections.

Install the SDK

Install the latest version of osgEarth from vcpkg:

vcpkg install osgearth:x64-windows
vcpkg install osgearth[tools]:x64-windows

Check out some examples

osgearth_imgui is the main command-line viewer. osgearth_viewer is a stripped-down viewer without any GUI. Both of these read "earth files", XML files that describe the contents of a map.

You can find example earth files in the tests folder of the repo.

cd tests

:: Online imagery and elevation:
osgearth_imgui readymap.earth

:: Local GeoTIFFs:
osgearth_imgui simple.earth 

:: OpenStreetMap:
osgearth_imgui osm.earth

Integrate it into your project

CMakeLists.txt

cmake_minimum_required(VERSION 3.20)
project(myApp)
find_package(osgEarth CONFIG REQUIRED)
add_executable(myApp main.cpp)
target_link_libraries(myApp PRIVATE osgEarth::osgEarth)
install(TARGETS myApp RUNTIME DESTINATION bin)

main.cpp

#include <osgEarth/MapNode>
#include <osgEarth/TMS>
#include <osgEarth/EarthManipulator>
#include <osgEarth/GLUtils>
#include <osg/ArgumentParser>
#include <osgViewer/Viewer>

int main(int argc, char** argv)
{
    osgEarth::initialize();
    
    osg::ArgumentParser args(&argc, argv);
    osgViewer::Viewer viewer(args);
    viewer.setRealizeOperation(new osgEarth::GL3RealizeOperation());
    
    auto imagery = new osgEarth::TMSImageLayer();
    imagery->setURL("https://readymap.org/readymap/tiles/1.0.0/7/");
    
    auto mapNode = new osgEarth::MapNode();
    mapNode->getMap()->addLayer(imagery);
    
    viewer.setSceneData(mapNode);
    viewer.setCameraManipulator(new osgEarth::EarthManipulator(args));
    
    return viewer.run();
}

Build it yourself

To build osgEarth yourself, follow the instructions here.

Resources


© Copyright Pelican Mapping

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
hyperknot/openfreemap

Free and open-source map hosting solution with custom styles for websites and apps, using OpenStreetMap data

6.5k
Nov 25, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryC++
google/filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, WebGPU, and WebGL2

20.8k
Dec 1, 2026
RepositoryPython
marceloprates/prettymaps

Draw pretty maps from OpenStreetMap data! Built with osmnx +matplotlib + shapely

14.4k
Jul 30, 2026
RepositoryPython
originalankur/maptoposter

Transform your favorite cities into beautiful, minimalist designs. MapToPoster lets you create and export visually striking map posters with code.

14.4k
Aug 6, 2026
RepositoryC++
openscad/openscad

OpenSCAD - The Programmers Solid 3D CAD Modeller

10.8k
Nov 27, 2026
RepositoryPython
domlysz/BlenderGIS

Blender addons to make the bridge between Blender and geographic data

9.7k
Dec 20, 2025
RepositoryPython
gboeing/osmnx

Download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap.

5.9k
Nov 18, 2026
RepositoryHTML
maptalks/maptalks.js

A light and plugable JavaScript library for integrated 2D/3D maps.

4.5k
Nov 2, 2026