Hello, it could be possible to have the attached files you mentioned? it is not possible to me to download it directly from the message.
My e-mail address for that: [EMAIL PROTECTED] Thanks in advance, Juan --- In [email protected], "Jason Birch" <[EMAIL PROTECTED]> wrote: > > Hi Jason (I always feel like I should see a psychiatrist when I have to > do that...) > > I believe that you're going to have to get your hands a bit messy for a > new user here :) > > I could have sworn the KML writer was in the FME 2006 documentation, but > I can't find it in the Readers and Writers index right now. If you're > having the same problem as me, go to this page: > http://www.safe.com/products/fme/formats-supported/index.php and click > on the "Google Earth KML" link. There is also a bit of information at: > http://fmepedia.com/index.php/Google_Earth_Data_Exchange_%28KML%29 > > Anyway, you're going have to use the more advanced mode of KML writing, > which means that you will have to address the KML elements directly > rather than letting the writer do it for you. The two elements that you > will need to deal with are Folder and Placemark. > > This is done by creating a KML destination feature type called Folder > and another called Placemark (not really that difficult). For the > Folder feature type, you will need a unique feature for each of the > folders and subfolders you want to display. There are several ways of > accomplishing this, but I have approached it by splitting the data > stream into two AttributeAccumulators. > > The first one groups by the District number to get a unique list of > districts. The second groups by District number and also Area Type to > get a unique list of subfolders. In each of these separate streams, you > will need to set the kml_name and kml_id attributes to something that > makes sense. The ID is most important and needs to be unique, as you > will be using it later. In addition, the Area Type stream will need you > to set the value of kml_parent to the same value that you used to set > the kml_id attribute in the other stream. This allows FME's KML builder > to reference the subfolders to the folders. > > At the same point as you split out the data into two > AttributeAccumulators, you will want to create a third branch for the > actual features. For this branch, you will need to set the kml_name > value to something that makes sense, and the kml_parent value to that of > the subfolder that contains it. > > I have attached examples of a workspace that accomplishes this, and the > resultant KML. These were built on the production FME 2006 release > (2182) > > You will likely find that as you get more profficent at this it is > easier to set the various attributes before splitting out the data > stream, but I did the processing afterwards in this case for clarity. > > Jason (Birch) > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of > jybrd26 > Sent: Sunday, January 15, 2006 9:01 PM > To: [email protected] > Subject: [fme] Multiple Fanout Question > > I'm a brand new FME user and I'm trying to create a data layer in .kml > format to be used in Google Earth. I'm starting with a shapefile > containing districts and each distict contains different types of areas. > I'd like to end up with 1 file that contains a folder with each district > and in each district folder another folder containing the types of areas > in that district grouped together. > > It would look something like this: > > District 1 > Area Type 1 > A. > B. > Area Type 2 > A. > B. > District 2 > Area Type 1 > A. > B. > Area Type 2 > A. > B. > > So far I've been able to do a dataset fanout and and feature fanout. > I've got basically what I want, except that I've got dozens of files > instead of 1 and when I open the district file I always have a single > folder and then the area folders inside that. Ideally if I have to have > seperate files I'd like to open them and immediately see the area type > folders without having them contained in another folder. Hope this is > clear it's difficult to explain. > > Thanks, > > Jason > > > > > > > > Get the maximum benefit from your FME, FME Objects, or SpatialDirect via > our Professional Services team. Visit www.safe.com/services for > details. > Yahoo! Groups Links > For insights into what's up at Safe Software and what's on the development horizon, visit Safe's blog at spatial-etl.blogspot.com. Safe Software has also made slides available that outline enhancements planned for FME 2007. The slides are from the "Road Ahead" presentation given on Day 2 of the FME Worldwide Users Conference. To view these slides, visit www.safe.com/2006uc. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/fme/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
