Skip to main content
Solved

creating kml file with 3D SketchUp models


wind

Hello everybody,

 

I need to create a kml file with 3D geometry in .dae format (SketchUp). The links are in the table of my source file with point geometry. I need to obtain this:

 

Is there anybody who knows how to do?

Thank you!

Best answer by whkarto

All you'll have to do is, sending 3D mesh geometry (never tried this with solids) to the OCGKML FME writer and use kmz as file format. Kmz is a zipped version of a kml that has interal links to Collada dae files like show in your screeshot. The OCGKML writer does the dae coversion together with creation of the positioning kml file out of the box.

 

Keep in mind that kml uses geographic coordinates! You'll have to specify correct input coordinate system so the OGCKML writer can do the correct reprojecting. The dae files itself are stored in local cartesian coordinate system, but you need not care about that as the writer does the correct positionig for you as well.

 

View original
Did this help you find an answer to your question?

2 replies

whkarto
Contributor
Forum|alt.badge.img+14
  • Contributor
  • Best Answer
  • August 20, 2019

All you'll have to do is, sending 3D mesh geometry (never tried this with solids) to the OCGKML FME writer and use kmz as file format. Kmz is a zipped version of a kml that has interal links to Collada dae files like show in your screeshot. The OCGKML writer does the dae coversion together with creation of the positioning kml file out of the box.

 

Keep in mind that kml uses geographic coordinates! You'll have to specify correct input coordinate system so the OGCKML writer can do the correct reprojecting. The dae files itself are stored in local cartesian coordinate system, but you need not care about that as the writer does the correct positionig for you as well.

 


wind
  • Author
  • August 20, 2019
whkarto wrote:

All you'll have to do is, sending 3D mesh geometry (never tried this with solids) to the OCGKML FME writer and use kmz as file format. Kmz is a zipped version of a kml that has interal links to Collada dae files like show in your screeshot. The OCGKML writer does the dae coversion together with creation of the positioning kml file out of the box.

 

Keep in mind that kml uses geographic coordinates! You'll have to specify correct input coordinate system so the OGCKML writer can do the correct reprojecting. The dae files itself are stored in local cartesian coordinate system, but you need not care about that as the writer does the correct positionig for you as well.

 

Thank you!

Now I arrive to write the Placemarks of the klm file, but the model and the points are separated. The model is situatuated at [0;0]. Do you know the transformer to join them?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings