This is the kind of thing (ok, there are lots of things) that FME excels at.  
This is how I'd do it; you may want to skip the CoordinateFetcher and Sorter 
steps:
 
 
- Expose autocad_layer ( if the features are layered) or fme_basename otherwise
 
- Run your features through a CoordinateFetcher
 
- Run your features through a Sorter, by _y and _x (I prefer _y first, 
ascending or descending depends on the coordsys)
 
- Put in a counter, starting at 0
 
- Create an ExpressionEvaluator that does something like floor(&_count / 1000)
 
- Modify _result with a StringFormatter ( format string something like 03s )
 
- Use a Concatenator to put together the variable autocad_layer (or 
fme_basename) with a constant '_' and the variable _formatted
 
- Use a Feature Type Fanout on the destination feature type, using the 
_concatenated variable as the attribute to fan out on.
 
 
Jason

 
________________________________

From: [email protected] on behalf of Brian
Sent: Wed 2005-07-13 9:29 AM
To: [email protected]
Subject: [fme] Limit # of Output Features per Shapefile



Is there a way to limit the number of output features in FME?

Using FME 2005 (20050607 - Build 1696).

The issue I have is a cursor error in Oracle when I try to load too
many features at once.

Would like to build continuious shapefiles via FME to build my DWG2SHP
file with the resulting output 1000 features.

Also need to make sure i have a way to name the output shapefile
(something like Poles_001 for the first 1000 features, Poles_002.....)
and have FME increament the file name as needed based on the total
number of input features.

Is this possible? If so, where do I start?

Fairly new to the FME world (used it in a prior job back in 2000, and
2002 and used 2002-SR1 before upgrading to 2005).

Thanks.
Brian
NewCom Technologies, Inc.
Iowa, USA






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/
 

<<winmail.dat>>

Reply via email to