This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from osgeo import ogr | |
import click | |
def get_unique_values(layer, field): | |
""" | |
Finds all the unique values in the vector layer | |
""" | |
layer.ResetReading() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QApplication> | |
#include <QEvent> | |
#include <QResizeEvent> | |
#include <QtOpenGL/QGLWidget> | |
#include <QTimer> | |
#include <sstream> | |
#include <osgViewer/GraphicsWindow> | |
#include <osgViewer/Renderer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*-c++-*- */ | |
/* osgEarth - Geospatial SDK for OpenSceneGraph | |
* Copyright 2020 Pelican Mapping | |
* http://osgearth.org | |
* | |
* osgEarth is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <blend2d.h> | |
#include <osgDB/WriteFile> | |
#include <osg/Image> | |
#include <osg/Texture2D> | |
#include <osgEarth/VirtualProgram> | |
#include <osgViewer/Viewer> | |
#include <osgViewer/ViewerEventHandlers> | |
#include <osgGA/TrackballManipulator> | |
#include <osg/BlendEquation> | |
#include <osg/BlendFunc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*-c++-*- */ | |
/* osgEarth - Geospatial SDK for OpenSceneGraph | |
* Copyright 2020 Pelican Mapping | |
* http://osgearth.org | |
* | |
* osgEarth is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*-c++-*- */ | |
/* osgEarth - Geospatial SDK for OpenSceneGraph | |
* Copyright 2020 Pelican Mapping | |
* http://osgearth.org | |
* | |
* osgEarth is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build osg with vcpkg | |
cmake .. -G "Visual Studio 15 2017 Win64" -DCMAKE_TOOLCHAIN_FILE=d:\dev\vcpkg\scripts\buildsystems\vcpkg.cmake -DWIN32_USE_MP=ON -DCMAKE_INSTALL_PREFIX=d:\dev\Installs\OpenSceneGraph -DCMAKE_BUILD_TYPE=Release | |
cmake --build . --target INSTALL --config Release | |
# Build osgearth with vcpkg and local osg | |
cmake .. -G "Visual Studio 15 2017 Win64" -DOSG_DIR=d:\dev\Installs\OpenSceneGraph -DWIN32_USE_MP=ON -DCMAKE_TOOLCHAIN_FILE=d:\dev\vcpkg\scripts\buildsystems\vcpkg.cmake -DWIN32_USE_MP=ON -DCMAKE_INSTALL_PREFIX=d:\dev\Installs\osgEarth -DCMAKE_BUILD_TYPE=Release | |
cmake --build . --target INSTALL --config Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <osg/GL2Extensions> | |
#include <osg/Notify> | |
#include <osg/ref_ptr> | |
#include <osg/Geode> | |
#include <osg/Geometry> | |
#include <osg/Point> | |
#include <osg/Vec3> | |
#include <osg/Vec4> | |
#include <osg/Program> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <osgDB/ReadFile> | |
#include <osgUtil/Optimizer> | |
#include <osg/CoordinateSystemNode> | |
#include <osg/Point> | |
#include <osg/Switch> | |
#include <osg/Types> | |
#include <osgText/Text> | |
#include <osgViewer/Viewer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*-c++-*- */ | |
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph | |
* Copyright 2016 Pelican Mapping | |
* http://osgearth.org | |
* | |
* osgEarth is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
NewerOlder