Skip to main content
Solved

remove attributes via where clause on read in


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.
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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
Forum|alt.badge.img+9
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+7
  • 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+43
  • 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.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings