Hi Scott,
 
I can't help with the Smallworld part, but to start off I'd do the following:
 
 
- create a lookup table between your layer numbers and trench types in your favourite database (key=layername, value=typename)
 
- bring in the DWG specifying "Attribute Schema" in the Settings
 
- simplify the ipput side of the equation by deleting all but one of the Feature Types
 
- on the remaining Feature Type, in the Merge settings check off "Merge feature type" with a wildcard Merge filter of *
 
- expose the autocad_layer format attribute
 
- run all of the features through a Joiner, joining between the autocad_layer attribute and the layername from your lookup table
 
- use an AttributeCreator to set the attribute Type to the value &typename
 
 
If you prefer not to keep your lookup values in a separate database, you can use a ValueMapper instead of the Joiner.
 
Jason
 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Selkirk, Scott
Sent: Monday, July 11, 2005 15:39
To: [email protected]
Subject: [fme] Filters to merge multiple .dwg layers into one object - which one(s) to use?

Hi Group,
I want to translate a bunch of .dwg layers into one Smallworld object (where layer number corresponds to an attribute value). Can anyone suggest which filters to might use?
 
eg. 
The .dwg has 4 layers (01, 02, 03, 04).  All layers contain trench geometries, layer numbers corresponds to a trench type:
 
 01 = "direct burried"
 02 = "pipe"
 03 = "G.L.T" 
 04 = "G.S.T"
 
I want to import the geometries, and set the value of the Type field based on the layer number.
 
 
I'm using FME Workbench with the SpatialBus plugin for Smallworld v.3.1
 
Any help would be great
Thanks
 
Scott


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




Reply via email to