[Qgis-user] Re: MapInfo mid/mif no working

magerlin MAP at ramboll.dk
Wed Sep 21 06:21:20 PDT 2011


I got this very quick reply on my ticket which I have absolutely no idea
about what to do with ;-)

http://trac.osgeo.org/gdal/ticket/4257#comment:2
http://trac.osgeo.org/gdal/ticket/4257#comment:2 

Hi, 

This patch should solve the problem : 

Index: ogr/ogrsf_frmts/mitab/mitab_miffile.cpp
===================================================================
--- ogr/ogrsf_frmts/mitab/mitab_miffile.cpp	(révision 23099)
+++ ogr/ogrsf_frmts/mitab/mitab_miffile.cpp	(copie de travail)
@@ -1331,7 +1331,8 @@
         {
             // Special case, we need to know two lines to decide the type
             char **papszToken;
-            papszToken = CSLTokenizeString(pszLine);
+            papszToken = CSLTokenizeStringComplex(pszLine," \t",
+                                                      TRUE,FALSE);
             
             if (CSLCount(papszToken) !=3)
             {



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapInfo-mid-mif-not-working-tp6812427p6815972.html
Sent from the qgis-user mailing list archive at Nabble.com.



More information about the Qgis-user mailing list