We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents a11e0c6 + 7a2f148 commit e464c76Copy full SHA for e464c76
src/providers/ogr/qgsogrprovider.cpp
@@ -2920,7 +2920,7 @@ QGISEXTERN QList< QgsDataItemProvider * > *dataItemProviders()
2920
QgsCoordinateReferenceSystem QgsOgrProvider::crs() const
2921
{
2922
QgsCoordinateReferenceSystem srs;
2923
- if ( !mValid )
+ if ( !mValid || ( mOGRGeomType == wkbNone ) )
2924
return srs;
2925
2926
if ( ogrDriver )
@@ -2953,7 +2953,7 @@ QgsCoordinateReferenceSystem QgsOgrProvider::crs() const
2953
// get the proj4 text
2954
char *pszProj4 = nullptr;
2955
OSRExportToProj4( mySpatialRefSys, &pszProj4 );
2956
- QgsDebugMsg( pszProj4 );
+ QgsDebugMsgLevel( pszProj4, 4 );
2957
CPLFree( pszProj4 );
2958
2959
char *pszWkt = nullptr;
0 commit comments