Skip to content

Commit be76e23

Browse files
committedDec 2, 2017
[3d] Disable 3D view for unprojected (lat/lon) CRS
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.
1 parent 02d9e14 commit be76e23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10244,6 +10244,12 @@ void QgisApp::new3DMapCanvas()
1024410244
return;
1024510245
}
1024610246

10247+
if ( mMapCanvas->mapSettings().destinationCrs().isGeographic() )
10248+
{
10249+
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." ) );
10250+
return;
10251+
}
10252+
1024710253
int i = 1;
1024810254

1024910255
bool existing = true;

0 commit comments

Comments
 (0)
Please sign in to comment.