Skip to main content
Question

Highlight KML Icons using Feature Writer

  • July 25, 2018
  • 4 replies
  • 29 views

dmerrick
Contributor
Forum|alt.badge.img+2

Hi,

Is it possible to create normal/highlighted KML icons with KML FeatureWriters instead of the standard KML Writer shown in the FME example Here:

 

I am exporting an entire SDE database to 6 different formats and used FeatureWriters to convert/insert a disclaimer into the zipped datasets.

 

Thanks!

 

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

Forum|alt.badge.img+2
Hi @dmerrick,

 

 

The highlighted KML icons are created using the KMLStyler transformer so I wouldn't expect the results to be any different when written out to a feature writer. Using the template provided I added all the connections to the same port and this worked as it should.

 


dmerrick
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • July 25, 2018
Hi @dmerrick,

 

 

The highlighted KML icons are created using the KMLStyler transformer so I wouldn't expect the results to be any different when written out to a feature writer. Using the template provided I added all the connections to the same port and this worked as it should.

 

Thanks for the response @hollyatsafe but the FeatureWriter KML does not pick up the attributes from the KML Style. Nor does putting the normal/highlighted KMLStyler inline to the FeatureWriter KML create the hover labelling, it layers to normal/highlighted icons on top of each other.

 


Forum|alt.badge.img+2
Hi @dmerrick,

 

 

The highlighted KML icons are created using the KMLStyler transformer so I wouldn't expect the results to be any different when written out to a feature writer. Using the template provided I added all the connections to the same port and this worked as it should.

 

Hi @dmerrick

 

I received an email with your comment but can't seem to see it so shall repeat below:

 

 

Thanks for the response @hollyatsafe but the FeatureWriter KML does not pick up the attributes from the KML Style. Nor does putting the normal/highlighted KMLStyler inline to the FeatureWriter KML create the hover labelling, it layers to normal/highlighted icons on top of each other.

 

 

I did not encounter either of these issues - which version of FME are you currently using?

 

In the Feature Writer under make sure the kml_target_style 's created are exposed under the Format Attributes Header (these were already checked automatically for me). I've included a screenshot of the set up below.

 


dmerrick
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • July 25, 2018
Hi @dmerrick

 

I received an email with your comment but can't seem to see it so shall repeat below:

 

 

Thanks for the response @hollyatsafe but the FeatureWriter KML does not pick up the attributes from the KML Style. Nor does putting the normal/highlighted KMLStyler inline to the FeatureWriter KML create the hover labelling, it layers to normal/highlighted icons on top of each other.

 

 

I did not encounter either of these issues - which version of FME are you currently using?

 

In the Feature Writer under make sure the kml_target_style 's created are exposed under the Format Attributes Header (these were already checked automatically for me). I've included a screenshot of the set up below.

 

Thanks @hollyatsafe, I had the KMLStyle's still going to the Style Writer and did not realize you could connect them directly to the FeatureWriter KML (or a previous transformer) and the attribute would get passed through.