MapInfo Pro

 View Only
  • 1.  Import a 3D table into Google Earth

    Posted 12-16-2024 03:52
    Good morning,
    I'm trying to import a 3D mapinfo table into Google Earth but without success..

    my white trapeze is a 3D table which emerges in 2D. 
    
    I don't know how to implement Z's in Google Earth... 
    
    Thank you for your help
    
    


    ------------------------------
    Thomas Delaire
    Knowledge Community Shared Account
    ------------------------------


  • 2.  RE: Import a 3D table into Google Earth

    Posted 12-16-2024 04:03
    Edited by Thomas Delaire 12-16-2024 05:19
    And Is it possible to import raster files (z altitude) in 3D into Google Earth?
    TY

    Good morning,I'm trying to import a 3D mapinfo table into Google Earth but without success..

    my white trapeze is a 3D table which emerges in 2D. I don't know how to implement Z's in Google Earth... Thank you for your help
    
    
    



    ------------------------------
    Thomas Delaire
    Knowledge Community Shared Account
    ------------------------------



  • 3.  RE: Import a 3D table into Google Earth

    Employee
    Posted 12-17-2024 04:05

    Hi Thomas

    Let me start by saying that I'm no expert on Google Earth :-)

    I had a table in MapInfo Pro with Z values on the nodes. I exported this to KML using the Export option on the Table tab.

    When I open the file in a text editor, I can see the Z values in the Polygon data:

      <Placemark>
    	<name></name>
    	<Style><LineStyle><color>FFff7530</color><width>2</width></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>
    	<ExtendedData><SchemaData schemaUrl="#Altitude_Zone">
    		<SimpleData name="RunwayNo"></SimpleData>
    	</SchemaData></ExtendedData>
          <Polygon><outerBoundaryIs><LinearRing><coordinates>12.8273952471316,55.7032444380488,1500 12.769218691258,55.7321461920894,1500 12.6653056255676,55.6402968573458,600 12.6796292646647,55.6331929602335,600 12.8273952471316,55.7032444380488,1500</coordinates></LinearRing></outerBoundaryIs></Polygon>
      </Placemark>

    But when I import the KML into Google Earth, the Z values seem to get ignored.

    Do you have an example of a KML file with Z values that can get loaded?



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



  • 4.  RE: Import a 3D table into Google Earth

    Posted 12-17-2024 04:14
    here is a kmz in 3D...




    ------------------------------
    Thomas Delaire
    Knowledge Community Shared Account
    ------------------------------



  • 5.  RE: Import a 3D table into Google Earth

    Employee
    Posted 12-17-2024 05:24

    Hi Thomas,

    You have to zip it before attaching it.



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



  • 6.  RE: Import a 3D table into Google Earth

    Posted 12-17-2024 05:35
      |   view attached

    here are 2 KMZ in 3D in the zip file
    by opening a kmz with a text editor, we find the coordinates x, y and z... 
    The KMZ format is specific...
    
    

    <LinearRing>
                        <coordinates>
                            55.50262886,-20.88456784,10 55.49805881,-20.88306085,20 55.49949886,-20.88034170,20 55.50353358,-20.88285948,10 55.50262886,-20.88456784,10 
                        </coordinates>
                    </LinearRing>



    ------------------------------
    Thomas Delaire
    Knowledge Community Shared Account
    ------------------------------

    Attachment(s)

    zip
    TD QFU 30.zip   1 KB 1 version


  • 7.  RE: Import a 3D table into Google Earth

    Posted 12-17-2024 08:23
    a small function in MapInfo that allows you to generate a 3D KMZ would be welcome :)

    TY for your support



    ------------------------------
    Thomas Delaire
    Knowledge Community Shared Account
    ------------------------------



  • 8.  RE: Import a 3D table into Google Earth

    Employee
    Posted 12-17-2024 09:16

    Hi Thomas

    When I look at the sample you send and the KML created by MapInfo Pro, I can see your sample has a few more properties for the polygon.

    Mine looks like this:

    <Polygon>
      <outerBoundaryIs>
        <LinearRing>
          <coordinates>
            12.4477323673668,55.5160486243299,150.0 12.5058496336289,55.4873070487818,150.0 12.6089400193284,55.5793168302335,60.0 12.5946196969266,55.5864107023999,60.0 12.4477323673668,55.5160486243299,150.0
          </coordinates>
        </LinearRing>
      </outerBoundaryIs>
    </Polygon>
    

    But if I modify the KML file slight and add the missing parameters to make it look like this:

    <Polygon>
      <tessellate>1</tessellate>
      <altitudeMode>absolute</altitudeMode>
      <outerBoundaryIs>
        <LinearRing>
          <coordinates>
            12.4477323673668,55.5160486243299,150.0 12.5058496336289,55.4873070487818,150.0 12.6089400193284,55.5793168302335,60.0 12.5946196969266,55.5864107023999,60.0 12.4477323673668,55.5160486243299,150.0
          </coordinates>
        </LinearRing>
      </outerBoundaryIs>
    </Polygon>

    Adding these two parameters:

      <tessellate>1</tessellate>
      <altitudeMode>absolute</altitudeMode>

    The polygons now appear as 3D objects in Google Earth.

    I now revisited the Export option on the Table tab in MapInfo Pro and found that the Keyhole Markup Language - KML (OGR) (*.kml) driver does allow me to set the AltitudeMode. If I set this to absolute, the objects do appear at the given altitude in Google Earth too.


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



  • 9.  RE: Import a 3D table into Google Earth

    Posted 12-17-2024 09:53
    Edited by Thomas Delaire 12-18-2024 02:56

    TY Peter

    it works very well

    I hadn't seen the "absolute" option. :)
    
    thank you for your work.


    ------------------------------
    Thomas Delaire
    Knowledge Community Shared Account
    ------------------------------