Original Message:
Sent: 12-17-2024 09:16
From: Peter Møller
Subject: Import a 3D table into Google Earth
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
Original Message:
Sent: 12-17-2024 05:34
From: Thomas Delaire
Subject: Import a 3D table into Google Earth
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
Original Message:
Sent: 12-17-2024 05:24
From: Peter Møller
Subject: Import a 3D table into Google Earth
Hi Thomas,
You have to zip it before attaching it.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
Original Message:
Sent: 12-17-2024 04:13
From: Thomas Delaire
Subject: Import a 3D table into Google Earth
------------------------------
Thomas Delaire
Knowledge Community Shared Account
Original Message:
Sent: 12-17-2024 04:04
From: Peter Møller
Subject: Import a 3D table into Google Earth
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
Original Message:
Sent: 12-16-2024 03:52
From: Thomas Delaire
Subject: Import a 3D table into Google Earth
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
------------------------------