Hi,
Not sure if you had an answer to this yet or not.

In essence what you're doing is using the source Dataset to name the
destination Feature Type and using the source Feature Type to name the
destination Dataset. To do this you need to get the names you need as
attributes and use fanouts on the data.

The output folder structure is relatively easy. All you need to do is
expose fme_basename on the source Feature Types and set a Dataset Fanout
for the output based on this attribute. This will turn the original file
name (Feature Type) into the output directory name (Dataset).

To name the file after the source is slightly more difficult. You'd have
to use @Filenamepart() to get the directory (use an AttributeCreator)
and strip off the final part (the 39DN2) as an attribute.
AttributeSplitter might help for that. Then simply set a Feature Type
fanout(s) using the attribute you've just created.

There's an example workspace using @Filenamepart() on fmepedia at
http://www.fmepedia.com/index.php/Example_Workspaces


Easier than I thought it would be. There must be a catch somewhere. Even
so after some tweaking it should work as advertised. Having set up the
above you could simply run File->Batch Deploy to work through as many
source datasets as required.

Hope this helps,

Mark

Mark Ireland, Product Support Engineer
Safe Software Inc. Surrey, BC, CANADA
[EMAIL PROTECTED] http://www.safe.com
Solutions for Spatial Data Translation, Distribution and Access

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
mvanexel
Sent: Thursday, 14 July 2005 06:30 AM
To: [email protected]
Subject: [fme] Use tile index as source to get datasets for reader

Hi all, 

I'm relatively new to FME.

What I have is
* some hundreds of directories, each containing a number of layers in
E00 format.
* One SHAPE file containing a - for want of a proper English word -
'geo-directory' indicating the rectangular areas each of the directories
on my disk covers. One attribute contains the proper directory name for
that particular area.

What I want is to automate processing of all those directories. The
resulting files should be grouped by theme rather than by area.

So let's say I have this input directory with source files:
39DN2/ 
   areas_builtup.e00
   areas_agri.e00
   lines_infra.e00
   lines_water.e00

I want to achieve the following structure areas_builtup/
   39DN2.SHP
areas_agri/
   39DN2.SHP
lines_infra/
   39DN2.SHP
lines_water/
   39DN2.SHP

The conversion itself is not very complicated and already taken care of,
it is the automation of the batch that is the issue here.

Thanks in advance for any pointers.

Martijn






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



 






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

<*> 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