1

I have a map in MapInfo.

I can convert it to Google Earth file (.kml) manually but I would like to do it automatically by commands in a function.

Can anyone help me?

2
  • @T_Bacon, you should write your comment as a question. Should be a workable solution Aug 20, 2015 at 10:38
  • 1
    @PeterHorsbøllMøller - done.
    – T_Bacon
    Aug 20, 2015 at 15:08

1 Answer 1

1

There is a 'Samples' folder which comes with your MapBasic installation. Within that, under .NET, there is GoogleConnect. This contains the source code for the GELink utility which I assume is what you would use to export the data manually. This would be a good place to start. As for the symbology, Google and MapInfo have different symbol sets, but I think they are both customisable so you could probably get these to match up with a bit of work.

3
  • There are a lot of source codes. Aug 21, 2015 at 2:19
  • Yes, it's not a simple function but a collection of subs and functions which should give you a start towards building this conversion into your own application. The alternative is writing your own conversion script. The KML format is well documented by Google (developers.google.com/kml) if you do want to roll your own, but why reinvent the wheel if someone has already done the work for you?
    – T_Bacon
    Aug 21, 2015 at 7:49
  • I agree with you, It is too difficult for me to understand. I will use the builtin function of MapInfo instead of rewriting the code. Aug 22, 2015 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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