Mid-mif conversion in batch

161 views
Skip to first unread message

Yannick Clément

unread,
Dec 13, 2016, 8:48:50 AM12/13/16
to MapInfo-L
Hello!

In the 32 bits version of MapInfo, there was a tool built by someone that allowed us to convert a series of mid-mif files at once in batch.  The name of the tool file was "batchmif-23.mbx" and I found this tool on the Directions magazine website.

This tool work very well in the 32 bits version of MapInfo, but unfortunatelly, it doesn't work at all in the 64 bits version.

I got in touch with someone at PB and he told me that, to his knowledge, there was no tool like that available for the 64 bits version.  I wounder if someone here know if there is a free tool like that available someone or, if that's not the case, if someone plan to build a tool like that for the 64 bits version.

Just let me know!  I often got batches of mid-mif files that I need to convert in TAB files and finding a tool like this for the 64 bits version would be great...

Yannick, Louiseville, Québec, Canada

Uffe Kousgaard

unread,
Dec 13, 2016, 8:55:12 AM12/13/16
to mapi...@googlegroups.com
You can just create your own workspace file with lines like:

import "a.mif" type "mif" into "a.tab" type native
import "b.mif" type "mif" into "b.tab" type native
etc.

Then open the workspace and it will import one file at a time.

Regards
Uffe Kousgaard
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yannick Clément

unread,
Dec 13, 2016, 11:12:12 AM12/13/16
to MapInfo-L
Thanks for the reply...  It seems to me that your method would be quite long to do, especially when I got 30 or more mid-mif files that I would like to convert at the same time...  With the tool that work fine in the 32 bits version, I just need to make a global selection of all the mid-mif files and then run the program.  As simple as that!  Don't you know a tool that would do something like that?

Nesh P.

unread,
Dec 13, 2016, 5:42:59 PM12/13/16
to MapInfo-L
You can also use open source  GDAL/OGR binaries for Windows but from version 2.0 (ogr2ogr.exe tool) and just create a simple command (or put this command into a batch script) that will process all MID/MIF files in the folder.

ogr2ogr -f "MapInfo File" output_folder input_folder

simple as that.

Nesh P.

unread,
Dec 13, 2016, 5:56:02 PM12/13/16
to MapInfo-L
... or if you are GUI lover then this is a tool for you. You can convert 99% of all GIS vector formats

http://ogr2gui.ca/

its portable - just download it, extract, and run exe.
This is a setup for MID/MIF to TAB.


Yannick Clément

unread,
Dec 14, 2016, 10:58:28 AM12/14/16
to MapInfo-L
I tried this program and it doesn't seem to work.  Maybe I did something wrong, I don't know.  From the image you posted, it seems to me that I did everything ok, but that doesn't work.  When I click on "Execute", the program run it instantaneously to 100% and no new files are created in the destination folder.  Do you know what I could have done wrong?

Thomas Bacon

unread,
Dec 14, 2016, 11:18:08 AM12/14/16
to mapi...@googlegroups.com

Does the program install ogr2ogr as part of its installation? Also, if it is in fact already installed, you may need to add the directory path of the executable to your environment variables for it to run with the generated ogr2ogr command.

--

--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


______________________________________________________________________

Mouchel Limited I Registered in England No. 1686040 Registered Office: WSP House, 70 Chancery Lane, London, Wc2A 1AF Part of WSP Global Inc. Confidential This message, including any document or file attached, is intended only for the addressee and may contain privileged and/or confidential information. Any other person is strictly prohibited from reading, using, disclosing or copying this message. If you have received this message in error, please notify the sender and delete the message. Thank you.
______________________________________________________________________

Yannick Clément

unread,
Dec 14, 2016, 1:47:19 PM12/14/16
to MapInfo-L
How can I verify if it install ogr2ogr or not?  I'm not at all an expert in these kind of programs...

Tony Pilkington

unread,
Dec 14, 2016, 3:58:46 PM12/14/16
to mapi...@googlegroups.com
http://reference1.mapinfo.com/software/mapinfo_pro/english/10.5/UniversalTranslatorUserGuide.pdf is the user guide showing how UT can be command line driven to convert a MI file to Mid/Mif or ESRI format. Several other formats are mentioned as well.
 
Consider a list file of candidate MI tables being read into a simple MB routine which issues a command line to carry out the required conversion.
 
See: Using the Universal Translator From the Command Line This section describes the syntax and parameter for running the Universal Translator in commandline mode. Only supported parameters are discussed; any other command-line parameters are not supported, and assistance with these should be obtained from SAFE Software, Inc. The Universal Translator uses syntax from Full FME translator SAFE Software.
 
It is probably better to write the output command lines into a .bat file and then launch the bat file. This will allow more time to chat to colleagues and drink coffee.
 
AJP


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7924 / Virus Database: 4739/13594 - Release Date: 12/14/16

Richard Greenwood

unread,
Dec 14, 2016, 7:49:45 PM12/14/16
to mapinfo-l
ogr2ogr is a lot easier to script than UT.

To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7924 / Virus Database: 4739/13594 - Release Date: 12/14/16

--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Richard W. Greenwood, PLS
www.greenwoodmap.com

Thomas Bacon

unread,
Dec 15, 2016, 4:16:17 AM12/15/16
to mapi...@googlegroups.com

Open command prompt (Start Menu > Run then type ‘cmd’ and hit enter)

Once you have the command prompt window open, type ‘ogr2ogr --help-general’ and press enter.

You should get something like this:

If you get an error then you either haven’t got it installed or the path hasn’t been added under your system variables.

 

From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Yannick Clément
Sent: 14 December 2016 18:47
To: MapInfo-L <mapi...@googlegroups.com>
Subject: Re: [MI-L] Re: Mid-mif conversion in batch

 

How can I verify if it install ogr2ogr or not?  I'm not at all an expert in these kind of programs...

Le mercredi 14 décembre 2016 11:18:08 UTC-5, Tom Bacon a écrit :

Does the program install ogr2ogr as part of its installation? Also, if it is in fact already installed, you may need to add the directory path of the executable to your environment variables for it to run with the generated ogr2ogr command.

 

From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Yannick Clément
Sent: 14 December 2016 15:58
To: MapInfo-L <mapi...@googlegroups.com>
Subject: [MI-L] Re: Mid-mif conversion in batch

 

I tried this program and it doesn't seem to work.  Maybe I did something wrong, I don't know.  From the image you posted, it seems to me that I did everything ok, but that doesn't work.  When I click on "Execute", the program run it instantaneously to 100% and no new files are created in the destination folder.  Do you know what I could have done wrong?

Le mardi 13 décembre 2016 17:56:02 UTC-5, Nesh P. a écrit :

... or if you are GUI lover then this is a tool for you. You can convert 99% of all GIS vector formats

 

http://ogr2gui.ca/

 

its portable - just download it, extract, and run exe.

This is a setup for MID/MIF to TAB.

 

 

Image removed by sender.

Peter Horsbøll Møller

unread,
Dec 15, 2016, 9:42:27 AM12/15/16
to mapi...@googlegroups.com

I just uploaded a 64 bit version of a MultiMIF Import tool.

Find it here:

http://communitydownloads.pbinsight.com/code-exchange/download/multimif

 

Let me know if it meets your expectations or if it has something missing

 

Peter Horsbøll Møller

EMEA Channel Enablement Specialist

Location Intelligence | MapInfo

 

M: +45 29 133 769

peter....@pb.com | @phorsbollmoller

pitneybowes.com/dk | mapinfo.com

Peter Horsbøll Møller

unread,
Dec 16, 2016, 4:10:54 AM12/16/16
to mapi...@googlegroups.com

Yannick did a test of my tool and found an issue that has been resolved.

The fixed version was uploaded to the site late last night (12 hours ago)

 

Peter Horsbøll Møller

EMEA Channel Enablement Specialist

Location Intelligence | MapInfo

 

M: +45 29 133 769

peter....@pb.com | @phorsbollmoller

pitneybowes.com/dk | mapinfo.com

 

From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Peter Horsbøll Møller
Sent: 15. december 2016 15:42
To: mapi...@googlegroups.com
Subject: RE: [MI-L] Re: Mid-mif conversion in batch

 

I just uploaded a 64 bit version of a MultiMIF Import tool.

Find it here:

http://communitydownloads.pbinsight.com/code-exchange/download/multimif

 

Let me know if it meets your expectations or if it has something missing

 

Peter Horsbøll Møller

EMEA Channel Enablement Specialist

Location Intelligence | MapInfo

 

M: +45 29 133 769

peter....@pb.com | @phorsbollmoller

pitneybowes.com/dk | mapinfo.com

 

From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Thomas Bacon
Sent: 15. december 2016 10:15
To:
mapi...@googlegroups.com
Subject: RE: [MI-L] Re: Mid-mif conversion in batch

 

Open command prompt (Start Menu > Run then type ‘cmd’ and hit enter)

Once you have the command prompt window open, type ‘ogr2ogr --help-general’ and press enter.

You should get something like this:

cid:image001.png@01D25784.825DF160

Hà Nguyễn

unread,
Dec 9, 2021, 2:27:51 AM12/9/21
to MapInfo-L
Hello !
Do you still have " batchmif-23.mbx" ? If you do, could you send me the file? That would save me a lot :D 
Thank you
Ha Nguyen

Vào lúc 20:48:50 UTC+7 ngày Thứ Ba, 13 tháng 12, 2016, yanm...@gmail.com đã viết:
Reply all
Reply to author
Forward
0 new messages