1

I am trying to import a mid/mif into MapInfo. I follow the usual routine of Table --> Import and select the correct mid/mif.

I get the following error:

(f:\FILENAME.mif:8) Found [(] while searching for [An identifier]

I have searched online and found no mention of this error. Any help?

  • What are the first ten lines of the .mif file? – CL. Sep 9 '13 at 13:18
  • Version 300 Charset "Neutral" Delimiter "," CoordSys Earth Projection 8, 79, "m", -2, 49, 0.9996012717, 400000, -100000 Columns 32 average_elevation Float date Char(10) domestic Integer(10) domestic_area Integer(10) drawing_colour Char(8) @CL. – DGraham Sep 9 '13 at 13:23
2

Integer(10) is not a valid MapInfo data type (at least not in the version you are using). (Where did you get that file from?)

Replace that column type with either Integer or Decimal(10, 0).

  • I have changed these values, but now lose a number of the polygons? I had edited the files in qGIS, would this have caused he problem? @Cl. – DGraham Sep 9 '13 at 13:32
  • @DGraham From QGIS can you save the file as ShapeFile and then open the Shape file in MapInfo? – Mark Sep 9 '13 at 13:35
  • Saving as a shapfile takes a digit of some of the values?! So reduces down codes from six to five! @Cl. – DGraham Sep 9 '13 at 13:39
  • Yeah, can't explain it, and is very annoying!@Cl. – DGraham Sep 9 '13 at 13:50
  • 1
    Can't try it myself to confirm it works (and its a bit 'around the houses', but if you have a primary key in the data, would it be possible to select all of the columns EXCEPT the integer(10) column(s), save as a new layer and then export that to mid/mif for loading into MapInfo, then do a selection of primary key and the integer(10) column(s) and export as CSV. Load both into MapInfo and then rejoin on primary key. – Mark Sep 9 '13 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.