Skip to content
Permalink
Browse files

#9060: use QGis::fromUnitToUnitFactor in QgsGrassGisLib

  • Loading branch information
ahuarte47 committed Jan 14, 2014
1 parent 2bffa19 commit 48cf5b32d6b1d6abdfaa213deaa4e63b39e3744f
Showing with 1 addition and 11 deletions.
  1. +1 −11 src/providers/grass/qgsgrassgislib.cpp
@@ -1064,17 +1064,7 @@ int GRASS_LIB_EXPORT G_get_cellhd( const char *name, const char *mapset, struct

double QgsGrassGisLib::G_database_units_to_meters_factor( void )
{
switch ( mCrs.mapUnits() )
{
case QGis::Meters:
return 1.;
case QGis::Feet:
return .3048;
case QGis::Degrees:
return 1.;
default:
return 0.;
}
return QGis::fromUnitToUnitFactor( mCrs.mapUnits(), QGis::Meters );
}

double QgsGrassGisLib::G_area_of_cell_at_row( int row )

0 comments on commit 48cf5b3

Please sign in to comment.
You can’t perform that action at this time.