Comments and answers for "CityGML: XLinks for referencing BoundarySurfaces onto Solid geometry." https://knowledge.safe.com/questions/80367/citygml-xlinks-for-referencing-boundarysurfaces-on.html The latest comments and answers for the question "CityGML: XLinks for referencing BoundarySurfaces onto Solid geometry." Comment by nampreetatsafe on nampreetatsafe's answer https://knowledge.safe.com/comments/98427/view.html

Hi @drones_n_maps: thanks for your comment! I would suggest posting a New Idea on the Ideas Forum for greater visibility.

Tue, 10 Sep 2019 18:41:27 GMT nampreetatsafe
Answer by drones_n_maps https://knowledge.safe.com/answers/98146/view.html

@deanatsafe any chance this will make it into the AIXM5 reader?

Thu, 05 Sep 2019 13:46:24 GMT drones_n_maps
Comment by virtualcitymatt on virtualcitymatt's comment https://knowledge.safe.com/comments/93725/view.html

Hi @phiber, sorry I don't know about that specifically. I suspect that it should work in the same kind of way. But again I would try reading a test file where this is correctly implemented and work backwards - but perhaps @deanatsafe has some more information as to the xlinks and if it extends to ADE's for CityGML as using xlinks does not appear to be an option in the general GML writer.

Wed, 12 Jun 2019 15:33:29 GMT virtualcitymatt
Comment by phiber on phiber's comment https://knowledge.safe.com/comments/93644/view.html
Hi there @virtualcitymatt,


thanks for your reply and many thanks for your input - I finally got it to work. Still I'm wondering if the 2019 version will also create thermalBoundaries with the (formally specified in the docs) energy_relatesTo{}xlink.href attribute? Do you have any experiences in this direction or should I better just be happy with what can finally be achieved?

Kind regards!

Tue, 11 Jun 2019 20:52:35 GMT phiber
通过virtualcitymatt virtualcitymatt的评论swer https://knowledge.safe.com/comments/93572/view.html

Hi @phiber,

Great question - it's a little tricky and to get it right - what worked for me was to actually see how FME read in the data from a correct building and work backwards.

There is a lot of GeometryProperies which cause headaches. Essentially each Wall, Ground, Roof surface making up the solid needs to be reference in the GeometryProperties of the solid (see below for what works for me on output).

Tue, 11 Jun 2019 07:36:30 GMT virtualcitymatt
Answer by phiber https://knowledge.safe.com/answers/93525/view.html

Hello again everyone,

since the CityGML writer in FME 2019 received an update and can now use a xlink_href trait in order to write geometry references, which is exactly what I needed earlier when I origanlly posted this Question. I played around with it a Little bit but couldn't figure out the correct procedure to produce a valid file.


Can someone provide me with an Explanation or demo workbench (ideally Trimble SketchUp2CityGML) in which this is demonstrated how to create a Solid geometry with Xlinks refering the BoundarySurfaces? Or Maybe a good Explanation will also do the trick.

Im just not sure how to create the solid and what goes into the Building writer and what should go into the Writers for the surfaces?

Many thanks in Advance!


Kind regards,

Philip

Mon, 10 Jun 2019 17:21:40 GMT phiber
Answer by virtualcitymatt https://knowledge.safe.com/answers/84072/view.html

It looks like this This is now supported in the FME 2019.0 beta! Thanks @DeanAtSafe! I'm gonna give is some testing.

Tue, 11 Dec 2018 08:12:22 GMT virtualcitymatt
Answer by phiber https://knowledge.safe.com/answers/81162/view.html

Many thanks to both of you @virtualcitymatt and @DeanAtSafe !

It's good to know, that xlink support is officially on the way, as it is such an integral part of CityGML as well as its ADEs. Also FME is about the best available and versatile tool for implementing different kinds of data in CityGML. I will try to achieve some results with the suggestions you provided and keep you updated!

Wed, 24 Oct 2018 18:24:31 GMT phiber
通过virtualcitymatt virtualcitymatt的评论swer https://knowledge.safe.com/comments/81029/view.html Awesome @DeanAtSafe, Thanks for the great feedback on this!
Tue, 23 Oct 2018 08:59:38 GMT virtualcitymatt
Answer by deanatsafe https://knowledge.safe.com/answers/80994/view.html < p >请注意,我们正在xlink几何苏pport for FME 2019 - hopefully something will be available in a month or so. The approach that Matt described might work, but once we have full support you will only need to set an advanced setting on the writer to control whether you want to preserve or resolve geometry links, and then FME will do the rest.

At the moment there are 2 approaches - you can either try to set the geometry properties and see if they are written out correctly by the CityGML writer as Matt suggested. The other approach is that for a few versions now for the GML writer (not CityGML) we changed fields of data type = xml_geometry to accept xml as well as geometry. That means if you create a field with the same name as the xml_geometry field, and you remove the feature geometry, you can use a combination of GMLFeatureComposer, GeometryExtractor and XMLTemplater to customize your geometries before you write them. You could try this using the GML writer with the CityGML app schemas for one or 2 feature types. But this is rather involved, low level GML/XML work, and wouldnt support textures, so I expect it would be a lot easier to just wait for xlink geometry support coming soon in FME 2019.

Mon, 22 Oct 2018 18:09:48 GMT deanatsafe
Comment by virtualcitymatt on virtualcitymatt's comment https://knowledge.safe.com/comments/80875/view.html Hmm, looking at the created files, I think is still wont work. You need to create a gml:id on the geometries themselves - this would be at the surface/polygon level. The xlink can either be on a geometry inside the solid or inside the list of boundedBy features.
In addition the geometry which is to be represented by the xlink needs to have this xlink as a trait. For this to work it requires the writer to recognize this trait and then know not to write out the geometry by just the trait in the format of the correct xlink.

Indeed when viewing the file created without the GeometryRemover I would expect to see FME to duplicate the geometries somewhere but when reading it doesn't which suggests that, unfortunately, this method isn't sufficient for creating geometry links.



Fri, 19 Oct 2018 12:48:14 GMT virtualcitymatt
Comment by phiber on phiber's answer https://knowledge.safe.com/comments/80518/view.html Thanks for your reply! Yes, I have already tried that. With a GeometryRemover inbetween the Solid will be left out completely in the final document. I believe this arises due to the fact that the lod2Solid statement within the citygml_feature_role trait which is used by the Building Feature Type writer is also removed by the GeometryRemover. I will add my workspace so that you can have a closer look. Mon, 15 Oct 2018 19:53:36 GMT phiber Answer by virtualcitymatt https://knowledge.safe.com/answers/80469/view.html

If you are writing out any geometries with the solid (the building) this could be where the duplication comes from. Have you used a GeometryRemover before the buildings? Would that work? Sorry without seeing the workspace itself I can't really tell if what I said is valid.

Mon, 15 Oct 2018 10:20:38 GMT virtualcitymatt