osgEarth编译:https://zhuanlan.zhihu.com/p/35015349(64位的Osg+OsgEarth+VS2015+QT编译)
>>https://www.bilibili.com/video/BV1XE411o7kE?from=search&seid=13796575700402180068
如果只是想DEM三维可视化,或者水流模拟,qgis就可以:https://www.youtube.com/watch?v=LPIP3ais28U
http://docs.osgearth.org/en/latest/
1.Build编译
Building osgEarth
osgEarth is a cross-platform library. It uses the CMake build system. You will need version 3.0 or newer. (This is the same build system that OpenSceneGraph uses.)
- Platform specific guides
Get the Source Code
Option 1: use GIT
osgEarth is hosted on GitHub. You will need a git client to access it. We recommend TortoiseGitfor Windows users.
To clone the repository, point your client at:
git://github.com/gwaldron/osgearth.git
Option 2: download a tagged version
To download a tarball or ZIP archive of the source code, visit the osgEarth Tags and select the one you want. The latest official release will be at or near the top.
Get the Dependencies
Required dependencies
- OpenSceneGraph 3.6 or later
- GDAL 2.4 or later - Geospatial Data Abstraction Layer
- CURL - HTTP transfer library (comes with OpenSceneGraph 3rd party library distros)
Recommended pre-built dependencies
- Windows: Use vcpkg to install required dependencies
- AlphaPixel has pre-built OSG and 3rd-party dependencies for various architectures.
- Pre-built GDAL binaries for various architectures.
Optional dependencies: osgEarth will compile without them. Look and decide what you need
GEOS 3.2.0 or later - C++ library for topological operations. osgEarth uses GEOS to perform various geometry operations like buffering and intersections. If you plan to use vector feature data in osgEarth, you probably want this.
- SQLite - Self-contained, serverless, zero-configuration, transactional SQL database engine. Used for accessing sqlite/mbtiles datasets. You may need these tips to create the necessary .lib file from the .def and .dll files included in the Windows binaries:http://eli.thegreenplace.net/2009/09/23/compiling-sqlite-on-windows
Build it
Make sure you built OSG and all the dependencies first.
osgEarth uses CMake, version 2.8 or later. Since OSG uses CMake as well, once you get OSG built the process should be familiar.
Here are a few tips.
- Always do an “out-of-source” build with CMake. That is, use a build directory that is separate from the source code. This makes it easier to maintain separate versions and to keep GIT updates clean.
- For optional dependencies (like GEOS), just leave the CMake field blank if you are not using it.
- For the OSG dependencies, just input the OSG_DIR variable, and when you generate CMake will automatically find all the other OSG directories.
- As always, check the forum if you have problems!
Good luck!!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
2017-11-24 TensorFlow中文手册
2017-11-24 TensorFlow中文教程