Skip to main content
Question

How to select a particular layer in FME - Python scripting?

  • June 2, 2017
  • 7 replies
  • 17 views

I want to convert a set of shape files to ESRI GDB format. And I need convert only the features based on the conditions in python. How to do it

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.

7 replies

takashi
Celebrity
  • June 2, 2017

Hi @jelangokvp, it's hard to provide a concrete solution since the optimal solution could be different depending on what the conditions are. And, in many cases, you can filter features easily using regular transformer(s) without Python scripting. Is there any specific reason for using Python?


  • Author
  • June 5, 2017

Hi @jelangokvp, it's hard to provide a concrete solution since the optimal solution could be different depending on what the conditions are. And, in many cases, you can filter features easily using regular transformer(s) without Python scripting. Is there any specific reason for using Python?

No. I just want to know can it be done using Python

 

 


takashi
Celebrity
  • June 5, 2017

Hi @jelangokvp, it's hard to provide a concrete solution since the optimal solution could be different depending on what the conditions are. And, in many cases, you can filter features easily using regular transformer(s) without Python scripting. Is there any specific reason for using Python?

What are the conditions to select features?

 

 


  • Author
  • June 5, 2017

Hi @jelangokvp, it's hard to provide a concrete solution since the optimal solution could be different depending on what the conditions are. And, in many cases, you can filter features easily using regular transformer(s) without Python scripting. Is there any specific reason for using Python?

 

I want select the features which overlaps with another features

takashi
Celebrity
  • June 5, 2017

Hi @jelangokvp, it's hard to provide a concrete solution since the optimal solution could be different depending on what the conditions are. And, in many cases, you can filter features easily using regular transformer(s) without Python scripting. Is there any specific reason for using Python?

It might be possible if you were an expert on computational geometry and also Python programming. It's difficult to me, so I would use a transformer to determine spatial relations between features.

 


  • Author
  • June 5, 2017

Hi @jelangokvp, it's hard to provide a concrete solution since the optimal solution could be different depending on what the conditions are. And, in many cases, you can filter features easily using regular transformer(s) without Python scripting. Is there any specific reason for using Python?

Ok. Which Transformers should I use?

 

 


takashi
Celebrity
  • June 5, 2017

Hi @jelangokvp, it's hard to provide a concrete solution since the optimal solution could be different depending on what the conditions are. And, in many cases, you can filter features easily using regular transformer(s) without Python scripting. Is there any specific reason for using Python?

For example, if each feature has polygon geometry, this workflow selects every feature that overlaps, contains, is within, or is equal to other feature.