Skip to main content
Question

Highlight KML Icons using Feature Writer


dmerrick
Contributor
Forum|alt.badge.img+1

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!

 

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+1
  • Author
  • Contributor
  • July 25, 2018
hollyatsafe wrote:
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
hollyatsafe wrote:
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+1
  • Author
  • Contributor
  • July 25, 2018
hollyatsafe wrote:
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.


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