Skip to main content
Question

collada to shap


srperdomo
Contributor
Forum|alt.badge.img+2

Hello everyone, I hope you are well, I am new to FME, I have a .dae file (Collada) that refers to a 3D model of a tree. I also have a layer of points with coordinates in shapefile format of an inventory of trees. Is it possible to integrate the 3D geometry of the .dae file in each of the points of my inventory?. to finally export it in a 3D viewable Kml file.

4 replies

raghavendrans
Enthusiast
Forum|alt.badge.img+13

@srperdomo It is very much possible to do, what you are looking for as the output using FME.

Build a FME Workspace with Collada and Esri SHAPE file as readers pointing to the respective datasets. For the writer use OCGKML and use kmz as file format for the output instead of the default kml.

Kmz is a zipped version of a kml that has interal links to Collada dae files.

Use a FeatureMerger with the Requestor input port getting the data from your Esri SHP file points and the Supplier input port getting data from the Collada input fme feature type. You can simply set the join on a constant value like “1” for both Requestor and Supplier instead of an attribute in the FeatureMerger.

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 positioning for you as well.

Happy FME :-) ing

Cheers

SRG


srperdomo
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • May 6, 2025

Thanks for your answer, but I'm still a bit lost, I have the following flow created, as I understand I must integrate both data in a “FeatureMerger”, when configuring the parameters how should I place them?

 

 


raghavendrans
Enthusiast
Forum|alt.badge.img+13
srperdomo wrote:

Thanks for your answer, but I'm still a bit lost, I have the following flow created, as I understand I must integrate both data in a “FeatureMerger”, when configuring the parameters how should I place them?

 

I can pass the information on to you, if necessary

The Join On would be simply something like this:

 


raghavendrans
Enthusiast
Forum|alt.badge.img+13

​The support for Collada dae files is limited in KML format to my knowledge. The Collada file that you may have for the 3D symbol for the points in SHAPE file may be a complex one with mesh geometry.

Though the dae file may be read by Collada Reader in FME, FME may have issues writing that to a KMZ file. So, I a rework could be to create 3D cylinders for the point locations using a KMLDiagrammer transformer.

The output KML would look something like this.

I hope this helps for now.

May be a Safer in the FME Community could throw some light on 3D Collada support in KMZ in FME.

Let me know how this works!

Happy FME:-) ing

Cheers

SRG


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