Created
May 13, 2013 17:34
-
-
Save vpicavet/5569987 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ogr/ogrsf_frmts/mitab/mitab_bounds.cpp b/ogr/ogrsf_frmts/mitab/mitab_bounds.cpp | |
index 09d540e..608e78f 100644 | |
--- a/ogr/ogrsf_frmts/mitab/mitab_bounds.cpp | |
+++ b/ogr/ogrsf_frmts/mitab/mitab_bounds.cpp | |
@@ -1057,6 +1057,19 @@ GBool MITABLookupCoordSysBounds(TABProjInfo *psCS, | |
MapInfoBoundsInfo *psList, **ppsList; | |
/*----------------------------------------------------------------- | |
+ * Try to load the user defined table if not loaded yet . | |
+ *----------------------------------------------------------------*/ | |
+ if (!MITABCoordSysTableLoaded()) | |
+ { | |
+ const char * pMitabBoundsFile = CPLGetConfigOption("MITAB_BOUNDS_FILE", NULL); | |
+ if (pMitabBoundsFile != NULL) | |
+ { | |
+ MITABLoadCoordSysTable(pMitabBoundsFile); | |
+ } | |
+ } | |
+ | |
+ | |
+ /*----------------------------------------------------------------- | |
* Lookup table... | |
* Lookup external file if one was loaded, then lookup internal table. | |
* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment