mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
Add missing copyright header
This commit is contained in:
parent
c9ab24f1ad
commit
407952f95b
@ -1,3 +1,18 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
qgsonlineterraingenerator.cpp
|
||||||
|
--------------------------------------
|
||||||
|
Date : March 2019
|
||||||
|
Copyright : (C) 2019 by Martin Dobias
|
||||||
|
Email : wonder dot sk at gmail dot com
|
||||||
|
***************************************************************************
|
||||||
|
* *
|
||||||
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
#include "qgsonlineterraingenerator.h"
|
#include "qgsonlineterraingenerator.h"
|
||||||
|
|
||||||
#include "qgsdemterraintileloader_p.h"
|
#include "qgsdemterraintileloader_p.h"
|
||||||
|
@ -73,7 +73,7 @@ double QgsTerrainDownloader::findBestTileResolution( double requestedMupp )
|
|||||||
|
|
||||||
void QgsTerrainDownloader::tileImageToHeightMap( const QImage &img, QByteArray &heightMap )
|
void QgsTerrainDownloader::tileImageToHeightMap( const QImage &img, QByteArray &heightMap )
|
||||||
{
|
{
|
||||||
// assuming ARGB preformatted but with alpha 255
|
// assuming ARGB premultiplied but with alpha 255
|
||||||
const QRgb *rgb = reinterpret_cast<const QRgb *>( img.constBits() );
|
const QRgb *rgb = reinterpret_cast<const QRgb *>( img.constBits() );
|
||||||
int count = img.width() * img.height();
|
int count = img.width() * img.height();
|
||||||
heightMap.resize( sizeof( float ) * count );
|
heightMap.resize( sizeof( float ) * count );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user