Skip to main content
Solved

Any way to rotate an icon in the KML Styler? or another transformer


Forum|alt.badge.img

Best answer by jdh

You can create an attribute called kml_iconstyle_heading.

View original
Did this help you find an answer to your question?

5 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • August 28, 2017

Hi @alan_surveyor,

Do you have a icon ( in wich format ) and you want to rotate?

You can use the transformer Rotator.

Thanks,

Danilo


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • August 28, 2017

You can create an attribute called kml_iconstyle_heading.


Forum|alt.badge.img

I have either a png or ico file of an arrow pointing straight up. Want to rotate that based on an azimuth, however the KML styler doesn't give an option for a rotation. Not sure where to apply the rotator transformer


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • August 28, 2017
alan_surveyor wrote:

I have either a png or ico file of an arrow pointing straight up. Want to rotate that based on an azimuth, however the KML styler doesn't give an option for a rotation. Not sure where to apply the rotator transformer

I don't believe the Rotator will be of use in this scenario, since presumably your feature is a point that is referencing an external icon via the Styler.

 

 

If you look at the kml writer, under the format attributes, all of the kml specific directives are available. You can expose the ones you explicitly want to set on a per feature basis. In your case the kml_iconstyle_heading.

 

 

Although I've never used that particular option, I would expect that you would set it to your azimuth.

Forum|alt.badge.img

Thanks JDH. That seemed to do the trick. Many thanks!


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