Skip to main content
Question

Edit <core:CityModel.....> of CityGML writer

  • September 24, 2020
  • 4 replies
  • 15 views

CityGML writer created the following line automatically.

 

<core:CityModel xmlns:brid="http://www.opengis.net/citygml/bridge/2.0" .....

 

I would like to change the text after <core:CityModel to other text.

Could you tell me the procedure?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • October 6, 2020

Hi @bigapplerizzi19​,

 

I believe that line is added based on the selection of the CityGML Version parameter:

2020-10-06_10-40-58

The easiest way to change this would be by changing the CityGML Version using the parameter mentioned above (this is likely the recommended approach). Alternatively, if you want to get rid of the core:CityModel text in general, you can set the Writer Driven by CityGML Schema parameter to No (Deprecated Backward Compatible).

 

Another way to do this would be to use a FeatureWriter to write out the CityGML file and use a FeatureReader to read the file you just created in as a Text File. From here, you can simply replace the text with a StringReplacer and write it back out as a GML file using the Text File Writer (see attached for an example where I change the schema from 2.0 to 1.0).


Hello @chrisatsafe​ 

 

Thank you for your support.

TestCityGMLWriter is very helpful for me.

 

However, Aggregator transformer is take a long time to process it.

 

Best regard,

 


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • October 7, 2020

Hello @chrisatsafe​ 

 

Thank you for your support.

TestCityGMLWriter is very helpful for me.

 

However, Aggregator transformer is take a long time to process it.

 

Best regard,

 

Glad that helped!

 

You can do without the Aggregator if you change the text file reader parameters to read the entire file at once. This will bring the entire .gml file as a single text feature rather than line by line which allows you to skip the Aggregator step.2020-10-07_9-53-23


Hi @chrisatsafe​ 

 

Thank you for your support.

I could skip the Aggregator according to your suggestion and the process could finished in a few seconds.

 

Best regards,