Skip to content

Commit

Permalink
[3d] Disable 3D view for unprojected (lat/lon) CRS
Browse files Browse the repository at this point in the history
The fact that the map units are in degrees instead of meters means that various bits of the code
(e.g. tolerances) are not behaving correctly due to changes in coordinate values being several
orders of magnitude lower. So for the time being it is safer to disable 3D view for unprojected
CRS and just let the user choose a projected CRS for the project.
  • Loading branch information
wonder-sk committed Dec 2, 2017
1 parent 02d9e14 commit be76e23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -10244,6 +10244,12 @@ void QgisApp::new3DMapCanvas()
return;
}

if ( mMapCanvas->mapSettings().destinationCrs().isGeographic() )
{
QMessageBox::warning( this, tr( "Error" ), tr( "3D view currently does not support unprojected coordinate reference systems (CRS).\nPlease switch project's CRS to a projected CRS." ) );
return;
}

int i = 1;

bool existing = true;
Expand Down

0 comments on commit be76e23

Please sign in to comment.