MapInfo Pro

 View Only
  • 1.  Raster export to Google Earth without white background

    Posted 01-26-2021 05:39

    Hi Everyone,

     

    We have an issue exporting raster (mrr or grd/grc) to Google Earth from MapInfo Pro Advanced.

     

    There are coverage plots and sites we want to work further with in Google Earth (kml/kmz). However when we export them with ordinary utility we get a white area, where there is no data.

     

    So we want to get rid of this white areas, so we only see the values, as below. We believe PNG/KML is the right format, preferably only a KMZ as output.

     

    We have some long and manual work-around to do this, but it is not practical for our day to day work.

    Do some of you know a good process or if there is an mbx somewhere that handles this, so we are able to remove the white background outside the data?

     

    Thanks

    /Johan



    ------------------------------
    /Johan Frössling
    Team Leader - Geodata SME
    Ericsson AB
    ------------------------------


  • 2.  RE: Raster export to Google Earth without white background

    Employee
    Posted 01-27-2021 02:30
    Hi Johan

    One thing worth trying is to change the format created by GELink from JPG to PNG:
    SAVE WINDOW FrontWindow() AS strJPGFileFullPath Type "JPEG" RESOLUTION 180
       COPYRIGHT sCopyright ' "Exported from MapInfo on " & strDateTime


    to:
    SAVE WINDOW FrontWindow() AS strJPGFileFullPath Type "PNG" RESOLUTION 180
       COPYRIGHT sCopyright ' "Exported from MapInfo on " & strDateTime


    The line above can be found in the file GELink.mb on line 742.

    The source code for GELink can be found in your MapBasic installation folder + Samples\DOTNET\GoogleConnect.

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 3.  RE: Raster export to Google Earth without white background

    Posted 01-27-2021 11:33
    Hi Peter,
    Thanks for the reply. Let me check solution. Hopefully this solves it.
    /Johan

    ------------------------------
    /Johan Frössling
    Team Leader - Geodata SME
    Ericsson AB
    ------------------------------



  • 4.  RE: Raster export to Google Earth without white background

    Posted 01-27-2021 16:39
    Hi Johan,
    I use GELink a lot and did not change to PNG.
    I found when creating a single KML manually through GELink you must select all from the layer you want to export, else you get the white background.
    Regards

    ------------------------------
    Dale Thomas
    Tully Sugar Ltd
    Tully QLD
    ------------------------------