Skip to main content
Question

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


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

7 replies

takashi
Influencer
  • 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
takashi wrote:

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
Influencer
  • June 5, 2017
takashi wrote:

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
takashi wrote:

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
Influencer
  • June 5, 2017
takashi wrote:

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
takashi wrote:

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
Influencer
  • June 5, 2017
takashi wrote:

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.

 


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