Good Morning Matt,

 

This is fairly simple. Use StringLength Calculator to put the length into an attribute, then use a AttributeFilter to separate the features based on the length attribute.

 

Bob

 

-----------

L. Robert Rice

P2 Energy Solutions

216 16th Street Suite 1700

Denver CO 80202

720-493-6663

 

The information contained in this communication is confidential and is intended only for the use of the addressee. It is the property of P2 Energy Solutions. Any unauthorized use, disclosure or copying of this communication or any part thereof is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately and destroy this communication and all copies thereof, including all attachments.


From: [email protected] [mailto:[email protected]] On Behalf Of Jinman1883
Sent: Friday, November 10, 2006 7:25 AM
To: [email protected]
Subject: [fme] Filtering attributes by the number of characters in a text string

 

Hi,

I'm fairly new to FME so this might sound simple but I desparately need
some help. I have a code field of random text strings. But each text
string has a text length of 3,4,5,6 or 10 characters. Each string
length equates to a different grouping I need to filter out. What I
need to do is filter out all the records that have a text length of 3,
then all the records that have a text length of 4, then all the records
that have text length of 5 and so on for 6 and 10. You get the picture.
I've tried using a Grepper with no luck.

Any help would be appreciated

Matt

__._,_.___

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.





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to