mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix 62ea90c and globe plugin
This commit is contained in:
parent
172c12bdc3
commit
b91d93e7c8
@ -5090,7 +5090,8 @@ void QgisApp::dxfExport()
|
||||
//extent
|
||||
if ( d.exportMapExtent() )
|
||||
{
|
||||
dxfExport.setExtent( mapCanvas()->extent() );
|
||||
QgsCoordinateTransform t( mapCanvas()->mapSettings().destinationCrs(), QgsCoordinateReferenceSystem( d.crs(), QgsCoordinateReferenceSystem::InternalCrsId ) );
|
||||
dxfExport.setExtent( t.transformBoundingBox( mapCanvas()->extent() ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -238,7 +238,7 @@ class CORE_EXPORT QgsDataSourceUri
|
||||
bool mUseEstimatedMetadata;
|
||||
//! Disable SelectAtId capability (eg. to trigger the attribute table memory model for expensive views)
|
||||
bool mSelectAtIdDisabled;
|
||||
//! geometry type (or QGis::WKBUnknown if not specified)
|
||||
//! geometry type (or QgsWkbTypes::Unknown if not specified)
|
||||
QgsWkbTypes::Type mWkbType;
|
||||
//! SRID or a null string if not specified
|
||||
QString mSrid;
|
||||
|
@ -777,9 +777,10 @@ void GlobePlugin::addModelLayer( QgsVectorLayer* vLayer, QgsGlobeVectorLayerConf
|
||||
featureOpt.setLayer( vLayer );
|
||||
osgEarth::Style style;
|
||||
|
||||
if ( !vLayer->renderer()->symbols().isEmpty() )
|
||||
QgsRenderContext ctx;
|
||||
if ( !vLayer->renderer()->symbols( ctx ).isEmpty() )
|
||||
{
|
||||
Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
|
||||
Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols( ctx ) )
|
||||
{
|
||||
if ( sym->type() == QgsSymbol::Line )
|
||||
{
|
||||
|
@ -40,6 +40,7 @@ extern "C"
|
||||
#include "qgsgeometry.h"
|
||||
#include "qgsrectangle.h"
|
||||
#include "qgsconfig.h"
|
||||
#include "qgsunittypes.h"
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QFileDialog>
|
||||
@ -1060,7 +1061,7 @@ int GRASS_LIB_EXPORT G_get_cellhd( const char *name, const char *mapset, struct
|
||||
|
||||
double QgsGrassGisLib::G_database_units_to_meters_factor( void )
|
||||
{
|
||||
return QGis::fromUnitToUnitFactor( mCrs.mapUnits(), Qgis::Meters );
|
||||
return QgsUnitTypes::fromUnitToUnitFactor( mCrs.mapUnits(), QgsUnitTypes::DistanceMeters );
|
||||
}
|
||||
|
||||
double QgsGrassGisLib::G_area_of_cell_at_row( int row )
|
||||
|
Loading…
x
Reference in New Issue
Block a user