Skip to content
Permalink
Browse files

MRF: Accept any known projection encoding

  • Loading branch information...
lucianpls committed May 15, 2019
1 parent bfdc462 commit f23941407015c1c33f905d077fbdbdee1e634dec
Showing with 8 additions and 1 deletion.
  1. +8 −1 gdal/frmts/mrf/marfa_dataset.cpp
@@ -1329,7 +1329,14 @@ CPLErr GDALMRFDataset::Initialize(CPLXMLNode *config)
bGeoTransformValid = TRUE;
}

SetProjection(CPLGetXMLValue(config, "GeoTags.Projection", ""));
OGRSpatialReference oSRS;
char *pszRawProj = const_cast<char *>(CPLGetXMLValue(config, "GeoTags.Projection", ""));
if (strlen(pszRawProj) == 0 || oSRS.SetFromUserInput(pszRawProj) != OGRERR_NONE
|| oSRS.exportToWkt(&pszRawProj) != OGRERR_NONE)
pszRawProj = CPLStrdup("");
SetProjection(pszRawProj);
CPLFree(pszRawProj);


// Copy the full size to current, data and index are not yet open
current = full;

0 comments on commit f239414

Please sign in to comment.
You can’t perform that action at this time.