Skip to main content
Question

Access to a File on FME Server

  • August 21, 2020
  • 1 reply
  • 8 views

Forum|alt.badge.img

I want to access to an excel file, which is on the FMEServer Resouces Folder. Because i have to read out some values from this excel i put into an pythonscript, which build an XML Filter for a WFS Reader. The pythonscript is in a private Parameter. I have the following code:

 

import fme

import xlrd

 

list_gemeinden =[]

#loc = ("C:\\Temp\\gemeinde.xlsx") 

loc = fme.macroValues["ExcelAuswahl"] #$(FME_SHAREDRESOURCE_TEMP)\\gemeinde.xls is the content of parameter ExcelAuswahl

 

Is this correct or I'm totally wrong?

Best Regard

 

1 reply

nielsgerrits
VIP
Forum|alt.badge.img+55

I would use FeatureReaders instead of classic readers and chain them together.


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