Skip to content

Commit

Permalink
#9060: use QGis::fromUnitToUnitFactor in QgsGrassGisLib
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuarte47 committed Jan 14, 2014
1 parent 2bffa19 commit 48cf5b3
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/providers/grass/qgsgrassgislib.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 48cf5b3

Please sign in to comment.