Tom, that's very cool.  

Being able to attach attributes directly to features means that we can
use KML as both a visualisation and exchange format.  How far does the
Schema support go?  Just SimpleField for now, or have you leveraged the
SimpleArrayField for passing things like lists?  I don't have any
examples of usage on these, but I might be able to scare some up...

That said, I think that the ability to turn off Schema generation is
important, as many third-party tools will not have implemented support
for reading these.  Perhaps turning it off when there are no user
attributes defined on the output feature type would be a good default?
So, three settings:  Suppress, Auto, and Force?

I would also recommend placing the information point into a
MultiGeometry container with the polygon.  The main benefit to this is
that the mouseover on the point will then trigger the stylemap settings
on the polygon, allowing you to do things like highlight the selected
polygon, change the line width, etc.

Jason

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tom
Weir
Sent: Thursday, August 03, 2006 11:46
To: [email protected]
Subject: RE: [fme] Re: KML MultiGeometry

Not odd; expected behaviour ;)

For FME 2007, we turned on Schema support. If you look in the KML, you
will see a schema declaration where MyFTName is defined to inherit from
Placemark. If folks want, I can add a writer option to turn off this
default behaviour.

Good catch on the MultiGeometry tag; I will make sure we fix this for
2007.

Tom
Safe Software

-----Original Message-----
From: Jason Birch [mailto:[EMAIL PROTECTED]
Sent: August 3, 2006 9:02 AM
To: [email protected]
Subject: RE: [fme] Re: KML MultiGeometry

Hi jybrd26,

Something odd is going on in the KML output for beta 4091.  Instead of
rewriting the feature type to <Placemark> it's placing the feature type
into its own tag:

<MyFTName>
<description>My Description</description> <name>My Name</name>
<styleUrl>#kml_FT_MyFTName_style</styleUrl>
<Point>
<coordinates>-123.999258318546,49.2145519488251,0</coordinates>
</Point>
</MyFTName>

Anyways... 

I was thinking that you could use the first parameter on the output
Feature Type ("Information Point Icon").  Unfortunately, this just
writes a point and a polygon without the surrounding MultiGeometry tag.
You could try processing the info this way and then doing a text editor
search and replace putting a <MultiGeometry> before each <Point> and
after each </Polygon> but that's not a great solution.

With a bit more work, you can create a MultiGeometry feature (though FME
appears to use the deprecated GeometryCollection instead):

- Place a Counter instream with your polygons
- Connect from the Counter to an InsidePointReplacer
- Connect both the Counter and the InsidePointReplacer to an Aggregator,
choosing to group by the Counter attribute and any additional attributes
you will be working with, and choose not to accumulate attributes.

Not sure how well this will come through:

Counter---------------------------Aggregator
        \                       /
         \                     /
          -InsidePointReplacer-

This will give you GeometryCollections that include both the polygon and
the centerpoint of the polygon.

<Placemark>     
  <description>My Description</description>
  <name>My Name</name>
  <styleUrl>#kml_FT_Arrgh_style</styleUrl>
  <GeometryCollection>
    <Polygon>
      <outerBoundaryIs>
        <LinearRing>
          <coordinates>...</coordinates>
        </LinearRing>
      </outerBoundaryIs>
    </Polygon>
    <Point>
      <coordinates>...</coordinates>
    </Point>
  </GeometryCollection>
</Placemark>

... Or it would if the ?bug? that I mentioned at the top of this message
wasn't getting in the way.  As it is, you'll need to replace the Feature
Type tags with Placemark tags.

Jason

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
jybrd26
Sent: Wednesday, August 02, 2006 15:30
To: [email protected]
Subject: [fme] Re: KML MultiGeometry

Jason, 

Could you elaborate a little? I've tried to use the data set output
settings with no success. It allows me to set the icon, fill color, pen
color and there is a drop down for "By attribute" but regardless of my
selections there I seem to have the same issue. 





Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver
BC Canada. For more information, visit www.safe.com/2006uc.   
Yahoo! Groups Links



 







Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC 
Canada. For more information, visit www.safe.com/2006uc.   
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/fme/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to