Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
How can I send a query to a webservice from FME Workbench?
I have found the nice example of sending source data to fme server via post in this article: http://fmepedia.safe.com/articles/How_To/Send-Source-Data-to-FME-Server-with-HTTP-POST I have tired I have tried to use the rest interface of FME server 2013 instead, but this does not work. Is this not supported, or am I missing something? Works: POST /fmejobsubmitter/<repository>/<workspace>?... Error: POST /fmerest/repositories/<repository>/<workspace>/run.json?...
Hi, I have FME 2014 SP1 (32 bits) and ArcGIS 10.2 (32 bits) installed on a Windows7 64 bits. I have the following code that I am trying to read into the Shutdown Python Script : import sys import arcpy output_location = "\\\\MYSERVER\\MYGDB.gdb" arcpy.CreateRelationshipClass_management(output_location+"\\DATASET\\LAYER", output_location+"\\TABLE", output_location+"\\DATASET\\rRelation", "SIMPLE", "TABLE", "LAYER", "NONE", "ONE_TO_MANY", "NONE", "FKEY", "PKEY") My problem is that I get this error : Python Exception <ImportError>: No module named arcpy I tried to add environment variables in PYTHON and Path as described here : http://fmepedia.safe.com/articles/Samples_and_Demos/Using-a-Python-Startup-Shutdown-Script-to-Perform-Geoprocessing-with-Arcpy#heading_toc_j_5 I tried several solutions from here : http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7/4855685#4855685 I just can't find the way to make this working in FME. My script is wor
I play around with FME Cloud. The workspace works. I would like to start this workspace with an example from the playground: http://playground.fmeserver.com/code-samples/general/populate-forms-dynamically But I have the following problem: CORS http://playground.fmeserver.com/getting-started/cross-domain-requests 1. Can I upload my .html pages somewher to FME Cloud and access to avoid CORS(If I understand it correct)? or 2. Can I change the settings to allow CORS with the FME Cloud? Thanks
When I bring lat/long data stored in SDE (NAD 83) into FME and run it through all of my transformers associated with doing an AreaOnAreaOverlayer the output appears to shift when I compare it to the original data in ArcMap. Here's a zoomed in area. The light purple color is the FME output. Any ideas why it would not maintain the exact integrity of the input data?
I have a batch written in python that logs into a ftp site, checks a directory for a file, validates whether the date is newer than the last newest file (for which it downloaded the zipped shapefiles) and then downloads the zip if it is new, otherwise it sends a logfile, exits and waits for another day. I'd like to redo the python batch into FME. I know I can add my ftp paramaters in the Add Source Data in FME, but is there a way to check whether the data is new (has not been added before) and if so download it, unzip it, read the files and update the geodatabase, otherwise exit and send a log file. The ftp features are "undocumented according to the documentation" (ironic) in transformers like HTTP Fetcher, so not sure if that is the approach or just a simple workbench with the ftp coordinates in the add data parameters with some attached voodo. I'm sure someone out there does the same thing and has some code to share... pretty please. thx G.
Hi@all, I am having major troubles with FME Server 2013. Everything installed fine on our dev-servers, but on production, I am facing the fact that FME is running, accepts connections from workbenches etc. but it is NOT showing the login boxes etc. in the web-interface. In Tomcat, I can see many of the following logs... anyone of you has an idea how to fix this? Regards, Martin Mar 4, 2014 2:23:40 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /fmerest threw load() exception java.util.MissingResourceException: Can't find bundle for base name clients.fmerest.fmerest, locale en_US at java.util.ResourceBundle.throwMissingResourceException(Unknown Source) at java.util.ResourceBundle.getBundleImpl(Unknown Source) at java.util.ResourceBundle.getBundle(Unknown Source) at COM.safe.utility.i18n.FMEPropertyResourceBundle.init(FMEPropertyResourceBundle.java:45) at COM.safe.utility.i18n.FMEResourceManager.getResourceBundle(FMEResourceManager.java:65) at COM.safe.ut
Hi! After upgrading to FME 2014 (build 14230) the drag-and-drop feature from ArcGIS desktop has ceased functioning. I'd like other users to confirm this. I spoke today with FME support in Sweden who acknowledged the error. Previously, it was possible to drag an ArcGIS Desktop layer from the AG TOC into the FME main window. This was tremendously useful, particularly when reading sde data, because the entire database connection was included in the drop. You can still setup an sde reader, but will have to enter server name, user credentials and so on. Was this a deliberate decision, or some syntax change on either side thas has stopped the drag-and-drop functionality? Or maybe the new workbench GUI library? (this is a 32bit environment). I have an FME 2013 sp4 in parallell, and the drag-and-drop works there
HI, I have machine A : webservices/core running machine B : Engine running The services on both machine are running under the same domain account. Now, the machine A starts fine, but the FME engine on machine B doesn't start ( it would start and stop again ) . Basically, i am not able to connect the FME engines to core. -varun
I upgraded FME Desktop from 2011sp4 to 2014. When I choose an Esri MDB as a reader the geodb_subtype_name is not found. I have checked the Additional Attrubutes but its not in the list. However it shows the geodb_subtype_name data when I look at it in the Data Inspector. Same machine I've been using for over 2 years with Esri Runtime and FME Desktop2011. Any thoughts Chris
Hello, I have used the sample REST C# code supplied by Safe to create a simple application. The sample code provided can be located here: http://docs.safe.com/fme/html/FME_Server_Documentation/Content/REST/FMEServerRestAPIdemo.cs We have two FME Servers here, one in a test environment, and another for production. I have written my code against the test server, which uses standard security, using user and password managed by FME Server. Everything works fine. However, when I use my code against the second server, which is secured by the Active Directory, I always get error 401, access denied. Is there anyone out there that has used the REST API with Active Directory security? Here is an example of the code I use to fetch a token: private string GetFmeServerToken() { string fmeTokenUrl = this.Serveur + "/fmetoken/service/generate"; NameValueCollection parameters = new NameValueCollection(); parameters["
Hi Im looking for a way to automatically post a new subscription, preferably in a python startup script. Is it possible to use the REST API for this task?
Guys, This question may be supid, but I'm trying to get values of attribute within a python script. Basicly, I've written the following code : def processFeature(feature): txt = feature.getAttribute('text_log') pass And I want to obtain the variable "txt" to used it later on (... log.write(txt) ...) How do I access to the function ? Any suggestions ? Thx regis
Is it possible to load MasterMap COU data using FME into ArcSDE? Has anyone created a model for this? I seem to have a lot of probems with Productivity Suite these days! Any links to existing FME workspaces used by others? Regards Kam
Hi there, Just wondering, has anyone done some python programming to make FME Desktop and QGIS interact? Simply to select a layer from QGIS/ process it in FME and load the results automatically to QGIS? Thanks. Lyes
We are using a PythonCaller to get some simple info from an input file to be used to validate the file is OK to process: import hashlib import fmeobjects def fileInfo(feature): log = fmeobjects.FMELogFile() try: dir = FME_MacroValues['SourceDirectory'] fileName = FME_MacroValues['SourceTileId'] file = dir + "\\\\" + fileName + ".TIF" digest = hashlib.md5(open(file, 'rb').read()).hexdigest() fileSize = os.path.getsize(file) >> 20 feature.setAttribute("actual_fileSize", fileSize) feature.setAttribute("actual_md5", digest) pass except Exception, e: log.logMessageString(str(e), fmeobjects.FME_ERROR) Even though this works and we can test on the 2 attributes created we get the following errors: Bridge failed to output feature on tag `PYOUTPUT' Python
Hi, I would like to use the httpfetcher to grab a websites source html. But since it does not support POST, I am limited to only reciveving the first 512 signs.. Any workaround available?
Hi, My version of FME is: FME 2011 WIN32 in Windows 8 My intention is to transform the records of certain tables in Postgres 9.2 in Smallworld 4.1database records. To create the Readers / Writers gives me no problems but when I run the workbench: I get the error I mention in the Subject, and also adds the following: "Program: E:\\apps\\FME\\fme.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information" And I do not know why this happens to me or how to fix it I would be very grateful if someone could help
One question. How can I make sure that a workspace only runs if it has an ArcInfo license available? That is - I want to check out the license before running the workspace (For instance in the python-script) ? Not sure if this approach GUARANTEES that the license will not be used by someone else between the startup script and after a long processing (1 hour) starting the writer? Related: http://fmepedia.safe.com/AnswersQuestionDetail?id=906a0000000cgTFAAY
Hello - I've built applications using FME Objects in previous versions of Visual Studio, first back in VB6 then in VB.NET in VS 2005. I'm now trying to use FME Objects again in C# within VS 2012 and am getting stuck. Stuck at the very beginnging. If I try to include this in a class library I get an FMEOException when it tries to create a session. The operative part of the code is below. IFMEOSession m_pFMESession = null; System.Collections.Specialized.StringCollection pSettings = new System.Collections.Specialized.StringCollection(); pSettings.Add("FME_DEBUG"); pSettings.Add("BADNEWS"); pSettings.Add("FME_USE_RICH_GEOMETRY"); pSettings.Add("yes"); m_pFMESession = FMEObject.CreateSession(); // Fails here I've been told that FME Objects was built with an older version of the .NET library so I need to include an App.Config to reference the old runtime. My App.Config looks like this: <?xml version="1.0
Hi, I have a very complex workbench with a lot of different scenarios where I run only one or two or maybe more parts of it sometimes, while others are disabled within bookmarks. Maybe It could be done differently (splitting in few workbenches, simplifying, ..). But let it be like it is:) Working like this, I realized that It would be very nice if there will be some option which hides all disabled parts ofthe workspace (i.e. transformers, connections), not just coloring them light gray. One simple click on the icon "hide/show":) And I get better and cleaner workspace overview.
Hi, I'm using pythoncaller in FME2013 to manipulate an xml (it's a legacy workbench I have to maintain). I use the python interpreter that is installed outside of FME. Since we upgrade to FME2013, I get an error when importing external python libs that depends on .dll or .pyd files. I get this error: Python Exception <ImportError>: DLL load failed Is there a specific limitation of FME2013 with libs that contains .dll and .pyd? Thanks Jean-Sebastien
Hi , Tried running few workbenches in built in desktop 2012 built on 2013 had macro issues hence translation failure.Had few question regarding interoperability and compatibility of desktops and servers. 1.Is there a tool/way to migrate a 2012 workbench to 2013 ? 2.If we use a 2013 fme server would that seamlessly support 2012 workbenches? 3.Eager to implement transaction support for oracle spatial ,is there a suite for the same in desktop 2012 ?
I do realize it's possible using the startup script, but it would be nice to have the time/date recorded at the beginning of the log when a translation is started. If a user wanted to know during a translation when it was began, they would have it in the log. Maybe it's there, and I'm overlooking it?
Hi, We are in the process of porting our Java FME Objects API based application from Solaris to Windows Server. In a Windows Server (2008 R2) environment, what is the latest version of Java7 that the FMEObjects Java API can be used with? Cheers, James Crone