I would like to be able to display the google earth push-pin icons in
different colours according to different attribute values.
I am writing to KML from a csv input, filtering attribute values, and
then assigning color to the different feature streams. Why is it that
I can manipulate the kml LABEL colors using the AttributeCreator and
setting the format attribute kml_label_color = 1,0,0
... but I cannot do the same to change the color of the push-pin kml
ICON colors?
kml_icon_color = 1,0,0
The writer documentations indicates these to be the correct format
attributes. I am using FME 2009.
perhaps you can use the KMLStyler. There you can choose the icon and
set the color. Setting the color without setting the icon seems to
have no effect.
Kind regards
Uta
On 6 Mrz., 09:46, MikeO <oberdr...@gmail.com> wrote:
> I would like to be able to display the google earth push-pin icons in
> different colours according to different attribute values.
> I am writing to KML from a csv input, filtering attribute values, and
> then assigning color to the different feature streams. Why is it that
> I can manipulate the kml LABEL colors using the AttributeCreator and
> setting the format attribute kml_label_color = 1,0,0
> ... but I cannot do the same to change the color of the push-pin kml
> ICON colors?
> kml_icon_color = 1,0,0
> The writer documentations indicates these to be the correct format
> attributes. I am using FME 2009.
Check out the icon gallery in GE, click on an icon and look at the top
text box to find out the location of an icon.
Hope this helps.
Mark
Mark Ireland, Senior Product Specialist
Safe Software Inc. Surrey, BC, CANADA
supp...@safe.com http://www.safe.com Solutions for Spatial Data Translation, Distribution and Access
> perhaps you can use the KMLStyler. There you can choose the icon and
> set the color. Setting the color without setting the icon seems to
> have no effect.
> Kind regards
> Uta
> On 6 Mrz., 09:46, MikeO <oberdr...@gmail.com> wrote:
> > I would like to be able to display the google earth push-pin icons in
> > different colours according to different attribute values.
> > I am writing to KML from a csv input, filtering attribute values, and
> > then assigning color to the different feature streams. Why is it that
> > I can manipulate the kml LABEL colors using the AttributeCreator and
> > setting the format attribute kml_label_color = 1,0,0
> > ... but I cannot do the same to change the color of the push-pin kml
> > ICON colors?
> > kml_icon_color = 1,0,0
> > The writer documentations indicates these to be the correct format
> > attributes. I am using FME 2009.
Actually, in a flash of inspiration, it occurred to me that using the
White icon would be best because then you can colour it w/o it being
tinted.
ie in the KMLStyler set icon name to: http://maps.google.com/mapfiles/kml/pushpin/wht-pushpin.png Then set the colour under Icon Color and it should give you what you
need.
The log file will complain it can't find the icon, but it will write
the value anyway.
Think this is probably better than using different icons per colour
(or easier at least)
Perhaps we should use the white icon by default in FME so that the
colour will be applied better.
Mark
Mark Ireland, Senior Product Specialist
Safe Software Inc. Surrey, BC, CANADA
supp...@safe.com http://www.safe.com Solutions for Spatial Data Translation, Distribution and Access
On Mar 9, 9:21 am, mark2atsafe <mark.irel...@safe.com> wrote:
> Check out the icon gallery in GE, click on an icon and look at the top
> text box to find out the location of an icon.
> Hope this helps.
> Mark
> Mark Ireland, Senior Product Specialist
> Safe Software Inc. Surrey, BC, CANADA
> supp...@safe.comhttp://www.safe.com > Solutions for Spatial Data Translation, Distribution and Access
> On Mar 7, 12:23 pm, uta.griw...@freenet.de wrote:
> > Hi Mike,
> > perhaps you can use the KMLStyler. There you can choose the icon and
> > set the color. Setting the color without setting the icon seems to
> > have no effect.
> > Kind regards
> > Uta
> > On 6 Mrz., 09:46, MikeO <oberdr...@gmail.com> wrote:
> > > I would like to be able to display the google earth push-pin icons in
> > > different colours according to different attribute values.
> > > I am writing to KML from a csv input, filtering attribute values, and
> > > then assigning color to the different feature streams. Why is it that
> > > I can manipulate the kml LABEL colors using the AttributeCreator and
> > > setting the format attribute kml_label_color = 1,0,0
> > > ... but I cannot do the same to change the color of the push-pin kml
> > > ICON colors?
> > > kml_icon_color = 1,0,0
> > > The writer documentations indicates these to be the correct format
> > > attributes. I am using FME 2009.
Thanks Mark, this gives me just what I am after. When I specify the
push-pin as white the kml_icon_color format variable noew behaves as I would
want it.
-----Original Message-----
From: fmetalk@googlegroups.com [mailto:fmetalk@googlegroups.com] On Behalf
Of mark2atsafe
Sent: Tuesday, 10 March 2009 5:26 a.m.
To: FME Talk
Subject: [fme] Re: Setting KML icon colors
Actually, in a flash of inspiration, it occurred to me that using the
White icon would be best because then you can colour it w/o it being
tinted.
ie in the KMLStyler set icon name to:
http://maps.google.com/mapfiles/kml/pushpin/wht-pushpin.png Then set the colour under Icon Color and it should give you what you
need.
The log file will complain it can't find the icon, but it will write
the value anyway.
Think this is probably better than using different icons per colour
(or easier at least)
Perhaps we should use the white icon by default in FME so that the
colour will be applied better.
Mark
Mark Ireland, Senior Product Specialist
Safe Software Inc. Surrey, BC, CANADA
supp...@safe.com http://www.safe.com Solutions for Spatial Data Translation, Distribution and Access
On Mar 9, 9:21 am, mark2atsafe <mark.irel...@safe.com> wrote:
> Hi Mike
> Using an icon - which is essentially a bitmap (bmp) image file - I
> don't see how colour could be applied.
> Check out the icon gallery in GE, click on an icon and look at the top
> text box to find out the location of an icon.
> Hope this helps.
> Mark
> Mark Ireland, Senior Product Specialist
> Safe Software Inc. Surrey, BC, CANADA
> supp...@safe.comhttp://www.safe.com > Solutions for Spatial Data Translation, Distribution and Access
> On Mar 7, 12:23 pm, uta.griw...@freenet.de wrote:
> > Hi Mike,
> > perhaps you can use the KMLStyler. There you can choose the icon and
> > set the color. Setting the color without setting the icon seems to
> > have no effect.
> > Kind regards
> > Uta
> > On 6 Mrz., 09:46, MikeO <oberdr...@gmail.com> wrote:
> > > I would like to be able to display the google earth push-pin icons in
> > > different colours according to different attribute values.
> > > I am writing to KML from a csv input, filtering attribute values, and
> > > then assigning color to the different feature streams. Why is it that
> > > I can manipulate the kml LABEL colors using the AttributeCreator and
> > > setting the format attribute kml_label_color = 1,0,0
> > > ... but I cannot do the same to change the color of the push-pin kml
> > > ICON colors?
> > > kml_icon_color = 1,0,0
> > > The writer documentations indicates these to be the correct format
> > > attributes. I am using FME 2009.