Skip to content

Commit

Permalink
EPT parser: fix precision loss when parsing offset and scale
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jan 26, 2021
1 parent d63717b commit d5344e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/pointcloud/qgseptpointcloudindex.cpp
Expand Up @@ -141,11 +141,11 @@ bool QgsEptPointCloudIndex::loadSchema( QFile &f )
return false;
}

float scale = 1.f;
double scale = 1.f;
if ( schemaObj.contains( QLatin1String( "scale" ) ) )
scale = schemaObj.value( QLatin1String( "scale" ) ).toDouble();

float offset = 0.f;
double offset = 0.f;
if ( schemaObj.contains( QLatin1String( "offset" ) ) )
offset = schemaObj.value( QLatin1String( "offset" ) ).toDouble();

Expand Down

0 comments on commit d5344e5

Please sign in to comment.