Skip to main content
Solved

remove attributes via where clause on read in

  • November 19, 2015
  • 3 replies
  • 23 views

Forum|alt.badge.img
Morning All,

 

 

Im reading in very large esri featureclasses but just need the geometrys, not attributes, It has 24 attributes that are read in with the geom. Is it possible to limit the reader to just bring in the geom not the attributes. Will this provide better reader speed/performance than using a attribute remover as my first transformer?. i was thinking of some sql in the reader "where clause" ?? thoughts/ suggestions , thanks Steve

Best answer by roland.martin

I don't think it would make a huge amount of difference, to be honest. How many features are you reading in?

 

 

If you want to give it a try, most of the database readers offer a "SELECT clause" option in the reader properties, where you can write your own selection.

 

 

If you're experiencing performance problems, I'd normally look at fine-tuning the writers first - your first writer is written on the fly, and some formats are relatively slow by default.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

roland.martin
Contributor
Forum|alt.badge.img+11
  • Contributor
  • Best Answer
  • November 20, 2015
I don't think it would make a huge amount of difference, to be honest. How many features are you reading in?

 

 

If you want to give it a try, most of the database readers offer a "SELECT clause" option in the reader properties, where you can write your own selection.

 

 

If you're experiencing performance problems, I'd normally look at fine-tuning the writers first - your first writer is written on the fly, and some formats are relatively slow by default.

francis_m
Contributor
Forum|alt.badge.img+8
  • Contributor
  • November 20, 2015
Just use an "attribut keeper" after the reader and keep nothing. so all your Feature will have no attributes...

mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • November 20, 2015
You could try the FeatureReader transformer. It has an 'attributes to expose' parameter. I don't think it would stop FME reading unwanted attributes from the start, but it's possible.

 

 

If it's data in a database (rather than a file Geodatabase) I suspect you could use a SQLCreator transformer to read in just the geometry column, and then a GeometryReplacer transformer to turn it into a proper feature. But I'm not certain it would work (will the GeometryReplacer recognize the geometry field content?) and you'd be bypassing a lot of probably useful functionality in the Esri Readers.

 

 

But really, those are just hunches. I can't think of a way to do this with a setting proper. As @rollo said, if you have performance issues then do check your entire translation. Usually the reading part is the least problematic.