Skip to main content

Hi,

I have 10 building and 10 JPEG files, each JPEG is specific to the buildings .Physical path of the JPEG is configured in the attribute called "path". I need to apply textures based on the attribute "path" .

 

How can I achieve this?

 

Regards,

K.Jayakumar

Hi @kumarkannan1980,

Please add a FeatureReader to your workspace, and route a copy of the building to the Initiator port. Open the FeatureReader properties and:

  • Set the Reader -> Format to JPEG.
  • Click on the down arrow icon beside Dataset and choose Attribute -> path.
  • Set Output Ports to Single Output Port.
  • Expand Attribute and Geometry Handling. Set Accumulation Mode to Merge Initiator and Result.

Connect the <Generic> output of the FeatureReader to the Appearance port of an AppearanceSetter. Connect the CItyGML Buildings to the Geometry port of the same transformer. Open the Properties and set Group By to data.

This will apply the appropriate JPEG as a texture on each building.


Reply