Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
crssync: skip crs known to fail
  • Loading branch information
jef-n committed Aug 8, 2012
1 parent 3a9e8e1 commit 8acbf53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/qgscoordinatereferencesystem.cpp
Expand Up @@ -1591,6 +1591,14 @@ bool QgsCoordinateReferenceSystem::loadIDs( QHash<int, QString> &wkts )
if ( !ok )
continue;

// some CRS are known to fail (see http://trac.osgeo.org/gdal/ticket/2900)
if( epsg==2218 || epsg==2221 || epsg==2296 || epsg==2297 || epsg==2298 || epsg==2299 || epsg==2300 || epsg==2301 || epsg==2302 ||
epsg==2303 || epsg==2304 || epsg==2305 || epsg==2306 || epsg==2307 || epsg==2963 || epsg==2985 || epsg==2986 || epsg==3052 ||
epsg==3053 || epsg==3139 || epsg==3144 || epsg==3145 || epsg==3173 || epsg==3295 || epsg==3993 || epsg==4087 || epsg==4088 ||
epsg==5017 || epsg==5221 || epsg==5224 || epsg==5225 || epsg==5514 || epsg==5515 || epsg==5516 || epsg==5819 || epsg==5820 ||
epsg==5821 || epsg==32600 || epsg==32663 || epsg==32700 )
continue;

if ( OSRImportFromEPSG( crs, epsg ) != OGRERR_NONE )
{
qDebug( "EPSG %d: not imported", epsg );
Expand Down

0 comments on commit 8acbf53

Please sign in to comment.