Skip to content

Commit e960c2c

Browse files
committed
cache configuration
1 parent 7f8ff41 commit e960c2c

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

src/plugins/globe/globe.earth

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,24 @@
22

33
<loading_policy mode="sequential"/>
44

5+
<!--
6+
<cache type="tilecache">
7+
<path>/home/pi/devel/gis/qgis/.qgis/cache/globe</path>
8+
</cache>
9+
-->
10+
511
<!--
612
<image name="world" driver="gdal">
713
<url>/usr/share/osgearth/data/world.tif</url>
814
</image>
915
-->
1016

1117
<!--
12-
<image name="tileservice" driver="tileservice">
18+
<image name="worldwind" driver="tileservice">
1319
<url>http://s0.tileservice.worldwindcentral.com/getTile?</url>
1420
<dataset>bmng.topo.bathy.200401</dataset>
1521
<format>jpg</format>
16-
<max_level>7</max_level>
22+
<max_level>7</max_level>
1723
</image>
1824
-->
1925

@@ -22,13 +28,19 @@
2228
<url>http://demo.pelicanmapping.com/rmweb/data/srtm30_plus_tms/tms.xml</url>
2329
</heightfield>
2430
-->
31+
2532
<!--
2633
<heightfield name="WorldWind bil" driver="worldwind">
27-
<worldwind_cache>/home/pi/devel/gis/qgis/.qgis/cache/worldwind_srtm</worldwind_cache>
34+
<worldwind_cache>/home/pi/devel/gis/qgis/.qgis/cache/globe/worldwind_srtm</worldwind_cache>
35+
<cache_enabled>false</cache_enabled>
2836
</heightfield>
37+
<vertical_scale>8</vertical_scale>
38+
<skirt_ratio>0.01</skirt_ratio>
2939
-->
40+
3041
<heightfield name="aster_dem" driver="gdal">
3142
<url>/home/pi/data/geodata/Lech/ASTGTM_N47E010/ASTGTM_N47E010_dem.tif</url>
43+
<cache_enabled>false</cache_enabled>
3244
</heightfield>
3345

3446
<!--

src/plugins/globe/globe_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void GlobePlugin::run()
141141

142142
// Add QGIS layer to the map
143143
mTileSource = new QgsOsgEarthTileSource(mQGisIface);
144-
mTileSource->initialize("", 0);
144+
mTileSource->initialize("");
145145
mQgisMapLayer = new ImageMapLayer( "QGIS", mTileSource );
146146
map->addMapLayer( mQgisMapLayer );
147147

src/plugins/globe/qgsosgearthtilesource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ using namespace osgEarth;
3030
using namespace osgEarth::Drivers;
3131

3232

33-
QgsOsgEarthTileSource::QgsOsgEarthTileSource( QgisInterface* theQgisInterface ) : TileSource(), mQGisIface(theQgisInterface), mCoordTranform(0)
33+
QgsOsgEarthTileSource::QgsOsgEarthTileSource( QgisInterface* theQgisInterface, const PluginOptions* options ) : TileSource(options), mQGisIface(theQgisInterface), mCoordTranform(0)
3434
{
3535
}
3636

37-
void QgsOsgEarthTileSource::initialize( const std::string& referenceURI, const Profile* overrideProfile)
37+
void QgsOsgEarthTileSource::initialize( const std::string& referenceURI, const Profile* overrideProfile )
3838
{
3939
setProfile( osgEarth::Registry::instance()->getGlobalGeodeticProfile() );
4040
QgsMapRenderer* mainRenderer = mQGisIface->mapCanvas()->mapRenderer();

src/plugins/globe/qgsosgearthtilesource.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ namespace osgEarth { namespace Drivers
1717
class QgsOsgEarthTileSource : public TileSource
1818
{
1919
public:
20-
QgsOsgEarthTileSource( QgisInterface* theQgisInterface );
20+
QgsOsgEarthTileSource( QgisInterface* theQgisInterface, const PluginOptions* options = NULL );
2121

22-
void initialize( const std::string& referenceURI, const Profile* overrideProfile);
22+
void initialize( const std::string& referenceURI, const Profile* overrideProfile = NULL );
2323

2424
osg::Image* createImage( const TileKey* key,
2525
ProgressCallback* progress );

0 commit comments

Comments
 (0)