Skip to main content
Solved

HOW CAN WE CALL PYTHON SCIRPT IN FME


HOW CAN I CALL A PYTHON SCRIPT IN FME, IT IS SIMPLE ONE CREATE A RANGE OF NUMBER AND WRITES TO A TEXT FILE IN RANGE LOOP

Best answer by deanhowell

Have you looked at:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/pythoncaller.htm

View original
Did this help you find an answer to your question?

5 replies

deanhowell
Influencer
Forum|alt.badge.img+23
  • Influencer
  • Best Answer
  • July 7, 2020

  • Author
  • July 7, 2020
deanhowell wrote:

thank you for the answer..

BUT NEED TO STUDY MORE FROM OBJECTS AND FUNCATION IN PYTHON.

It is not copy code from ArcGIS help and run it..


ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • July 7, 2020

It's worth considering whether you need to use python at all, often things that you might use python in ArcGIS for can be accomplished without python at all in FME.

If you post more details on exactly what you want to achieve then people might be able to provide more help


  • Author
  • July 7, 2020
ebygomm wrote:

It's worth considering whether you need to use python at all, often things that you might use python in ArcGIS for can be accomplished without python at all in FME.

If you post more details on exactly what you want to achieve then people might be able to provide more help

thank you @ebygomm

 

i am trying to create a annotation layer in fme using python script below.. I want to use the label engine used by Esri. Below is sample code

 

import arcpy

 

arcpy.env.workspace = "D:/QC2017/contour/results/TEST1.gdb"

 

arcpy.ContourAnnotation_cartography("ONEMT", "D:/QC2017/contour/results/TEST1.gdb", "ELEVATION",2500, "ContourGroupLayer", "BLACK", "","PAGE")

Can we achieve this in FME.. without python script.

labeler is there but create to many label on the contour lines..

 


deanhowell
Influencer
Forum|alt.badge.img+23
  • Influencer
  • July 7, 2020
ebygomm wrote:

It's worth considering whether you need to use python at all, often things that you might use python in ArcGIS for can be accomplished without python at all in FME.

If you post more details on exactly what you want to achieve then people might be able to provide more help

I agree with @ebygomm that it sounds like something FME could do. Can you share an image of the result you are trying to acheive.


Reply


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