Skip to main content
Solved

Covert shp file to obj fanout

  • April 26, 2013
  • 1 reply
  • 19 views

hi all

 

I am trying to convert a shp to obj using the object id as fanout.

 

The file name of each obj file has to be the same as the object id, right now the directory has the name...anyone know how to set this up? thanks

 

Best answer by takashi

Hi,

 

 

FilenamePartExtractor transformer is convenient to split a file path string. 1) Expose 'fme_dataset' attribute of input features. This attribute will contain a source file path string of each feature. 2) Apply FilenamePartExtractor to split 'fme_dataset', then you can get its elements including the directory name. 

 

 

Takashi
View original
Did this help you find an answer to your question?
<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Evangelist
  • Best Answer
  • April 26, 2013
Hi,

 

 

FilenamePartExtractor transformer is convenient to split a file path string. 1) Expose 'fme_dataset' attribute of input features. This attribute will contain a source file path string of each feature. 2) Apply FilenamePartExtractor to split 'fme_dataset', then you can get its elements including the directory name. 

 

 

Takashi

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