Skip to content

Instantly share code, notes, and snippets.

@vpicavet
Created May 13, 2013 17:34
Show Gist options
  • Save vpicavet/5569987 to your computer and use it in GitHub Desktop.
Save vpicavet/5569987 to your computer and use it in GitHub Desktop.
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