Skip to main content
Hello!
I'm new to FME and I'm wondering if it is possible to integrate PDFs into a CityGML model (LOD1). I need to link a different PDF for each building of the 3D model.
Can anybody help me?
Thanks in advance

All you need to do is add the attribute externalReference{0}.externalObject.uri to your building feature and set it to the URL path where you have published your 3d PDF. You can see this attribute as part of the standard citygml schema on the destination feature types such as Building. Note that this will just add the external HTTP link to your feature. It is still up to the client software to resolve this link. For example, FME Data Inspector will show the URL, but won't add a create link from it. On the other hand an FME workspace set up to read a CityGML file with embedded links could use a HTTPCaller to automatically retrieve attachments associated with these links. See the attached workspace and output CityGML example.

 

For more on writing to CityGML see the Reader / Writer doc tutorial here:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/citygml/Tutorial/writing_citygml_from_fme.htm

 

And the 3d / bim tutorials such as the one here: https://community.safe.com/s/article/bim-to-gis-basic-ifc-lod-100-to-lod-2-citygml


All you need to do is add the attribute externalReference{0}.externalObject.uri to your building feature and set it to the URL path where you have published your 3d PDF. You can see this attribute as part of the standard citygml schema on the destination feature types such as Building. Note that this will just add the external HTTP link to your feature. It is still up to the client software to resolve this link. For example, FME Data Inspector will show the URL, but won't add a create link from it. On the other hand an FME workspace set up to read a CityGML file with embedded links could use a HTTPCaller to automatically retrieve attachments associated with these links. See the attached workspace and output CityGML example.

 

For more on writing to CityGML see the Reader / Writer doc tutorial here:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/citygml/Tutorial/writing_citygml_from_fme.htm

 

And the 3d / bim tutorials such as the one here: https://community.safe.com/s/article/bim-to-gis-basic-ifc-lod-100-to-lod-2-citygml

Thank you for your reply.

What I'm trying to get is an URL (or a PDF file where i can get information) for each building of the citygml model. Doing as you suggested, only creates one URL for the whole CityGML model. I need to connect each building with its own infomation. I know this could be done within GIS using the attribute table, but I'm trying to get this result only using FME. Is this possible somehow?

Thanks again


All you need to do is add the attribute externalReference{0}.externalObject.uri to your building feature and set it to the URL path where you have published your 3d PDF. You can see this attribute as part of the standard citygml schema on the destination feature types such as Building. Note that this will just add the external HTTP link to your feature. It is still up to the client software to resolve this link. For example, FME Data Inspector will show the URL, but won't add a create link from it. On the other hand an FME workspace set up to read a CityGML file with embedded links could use a HTTPCaller to automatically retrieve attachments associated with these links. See the attached workspace and output CityGML example.

 

For more on writing to CityGML see the Reader / Writer doc tutorial here:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/citygml/Tutorial/writing_citygml_from_fme.htm

 

And the 3d / bim tutorials such as the one here: https://community.safe.com/s/article/bim-to-gis-basic-ifc-lod-100-to-lod-2-citygml

@deanatsafe​ After reviewing your example I can see that FME doesn't write the externalReference{0}.externalObject.name attribute. I've tested with FME 2020.0, FME 2021.2.2 and 2022.0 beta build 22297. Is there a known bug? Please review your workspace and the school.xml that it creates


Reply