Chris,

It isn't a factory or function change you need, it is the output schema 
definition.  There should be a SHAPE_DEF or SHAPE_OUT_DEF block 
somewhere in your scripts that defines the shapefile geometry type and 
list of attributes FME will create in the DBF.  Just edit that list to 
remove the attributes you don't want in the output.

-Graeme

christweekie wrote:

>Hi
>
>I have used FME workbench (the GUI tool) for a few years and have been
>creating FMW files to do translations. With this tool, it has always
>been easy to get the transformations done.
>
>Now I need to pass a translation request to FME Server (via QServer).
>I have an FMI file set up which defines a source reader (Oracle
>spatial) and an FME file which outputs to Shape. This mapping file
>works OK, except that I need to constrain the list of attributes that
>get written to the shape file. I do not want all the fields in my
>source Oracle table.
>
>How can I use the FACTORY_DEF in the FME file to do this ? I used a
>sample "2shp.fme" mapping file that came with the distribution to
>start with and that got me going. I can see various FACTORY_DEF
>entries in there already
>
>FACTORY_DEF * SamplingFactory 
>FACTORY_DEF * TestFactory 
>
>I tried creating my own FACTORY_DEF but that failed. So I added
>"RemoveAttribute" to one of the existing FACTORY_DEFs but that simply
> removed the attribute value from teh shape file rather than the field
>itself.
>
>Can anyone give me any pointers please ? Is there a better way of
>doing what I want ? I have been looking at the
>FME Functions and Factories document but that isn't helping much. It
>is a bit low level - explaining what the functions do rather than how
>the thing works.
>
>Thanks
>
>Chris
>
>
>
>
>
>
>
>
>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