Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
Hi everyone,I modified the FilePropertyExtractor created by Takashi Iijima to suite my needs but it doesnt seems to store the attribute value correctly.The Python code in PythonCaller below is to get multiple file from a folder and get the file's creation date (modified, etc.....) It runs without error. Since the files in my folder was of different creation dates, I expect the output will follow accordingly as well but somehow only one date was shown for every outputs rows.The print statement does show different value though.I suspect that I must have missed the part that ensure the values are properly stored and returned.Pls help me to correct it.# Original Implementation by Takashi Iijima, 2016-05-25# This a modified versionimport fme, fmeobjectsimport osdef extractFileProperty(feature): try: path = feature.getAttribute('__filepropertyextractor.path') for file in os.listdir(path): fullFileName=os.path.join(path,file) if os.path.exis
Hi,I have HTTPCaller in my workspace, and two urls to retrieve from server which requires NTLM authorization.Now, the retrieval of second url always fails, and I see in logs that libcurl doesn't send NTLM auth info on second call. I tried to enable Save Cookies, but it didn't help - server asks for auth on each request.FME(R) 2015.1.3.2 (20160108 - Build 15575 - WIN32)Any suggestion other than putting httpcaller in separate workspace and run it with workspacerunner? that time it will create separate instances of HTTPCaller for each url.
I need to download some data that's only available through a Map Service on a public ArcGIS server. I was thinking of downloading the data 1000 features at a time using JSON, but in order to do that I need to get the list of ObjectIds. The list of ObjectIds gets returned in a query request and the response looks similar to this:{ "objectIdFieldName": "OBJECTID", "objectIds": [ 1, 2, 3 ] }I could parse this using Python, but I would like to be able to do it in FME 2014. When I use the JSON reader, each objectId gets read as a separate attribute and FME ends up hanging because it's trying to read tens of thousands of attributes! Is there a parameter setting or a better reader or transformer that would help?
Hi all,I have (another) issue concerning ArcGIS relationship classes. I created in ArcCatalog a many-to-many relationship class between two feature classes. I didn't use the ObjectIDs für this relationship, as ESRI itself advises againt that. Instead, I used a FeatureID-attribute and filled the actual relationships into the relationship class by using Arcmap. Thus, the relationship class contains the attributes 'RID', 'FID_origin' and 'FID_destination'.When I read the associated Feature classes together with the relationship class into FME (Reader: "Ignore relationship info" deactivated), I get only 'missing'-values for these three attributes. When I expose the Format attributes 'gdb_rel_origin_oid' and 'gdb_rel_destination_oid', however, I see the ObjectIDs of the associated features.How can I get FME to read the values of the FID-Attributes? Because I have to update the relationship class regularly based on a attribute tab
What I need to do is first set the flow direction for the pipeline and from there I can use transformers to copy attributes from a point feature and copy it to the line feature that is behind it (flow direction). The line segments are not collected in a numerical object id order, so I can't figure out how to set a flow direction to be able to set attribute values that both feature classes share and should be the same.*GDB feature classes*Example:
Hello,How can I create a cross section with FME Desktop 2016 please. Best regards Olfa
Hi there. Have an HTTPCaller making a SOAP request for me as a moderately complex security header was needed and I couldn't figure out how to drive the SOAPSender to do the same, but that's not my problem. The return response, when saved to a file, can be opened in 7z, and the properties show it as a zip file, containing an XML file (the honey pot I'm after). The problem is looking at the actual file in notepad++, it looks like it's a multipart MIME message. The first few lines are:------=_Part_11980_1370403347.1468922126650Content-Type: application/xop+xml; charset=utf-8; type="text/xml"<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="XWSSGID-1467538852463-1879353698"
I am a web developer and I need to convert maps, on regular bases, from CAD files to web map tiles for google maps. there are few resources regarding the subject. I found one youtube tutorial from the company and it was poorly explained. I tried to do the same but failed convert the files. here are the files I am working on, it would be nice if you can take a look at them: https://drive.google.com/folderview?id=0BwMirpbclFbrY1loNVNuSUFzQ2ctake it easy on me as I know little about CAD/FME/civil eng.thank you for taking the time to read my problem.regardsSami
Hello all FME`Users,About the transformers FMEFunctionCaller, when is the indicated to use it?Thanks in advance,
I have four different feature types that I want to merge into a single feature class. In ArcGIS, the merge tool will keep all unique attribute fields, which is what I want. I have looked into FeatureMerger, but I don't think that will work, since I am not trying to join anything. Are there any transformers that can perform this operation?I am using FME 2016.
When I want to create conditional values on the request-URL parameter of a HTTPCaller. FME Desktop crashes instantly. I tried it on a blank workflow with only one new HTTPCaller transformer, but again instant crash. I have: FME(R) 2016.1.0.1 (20160516 - Build 16494 - WIN64)
Hi,I want to build a small (Python based) transformer, that utilizes a small SQLite db for syncronization purposes. This functionality I think I have covered.However, I want it to use resources inherently local to the current session, so multiple workspaces can utilize this same transformer without colliding. I thought that the current session might have a function to return a unique ID (e.g. as a GUID), that I could use to prefix tables in SQLite, but I can't find it in the documentation.It's probably a no brainer, but I'm still figuring out how to handle FME Objects properly.Ps! Is the "current" session started automatically by FME running the workspace, or must I initiate it myself in my "init" routine ?Cheers Lars
I am trying to use either the FTP caller or the HTTP caller to post/send a file to a sftp site. I have tried multiple settings and no luck. In FileZilla I can go into site manager and choose SFTP-SSH file transfer protocol and put in all information and it works. It calls the address https:// instead of sftp:// but works and connects. My goal is to automate this so I do not have to manually connect and upload the files to the SFTP site. Any help on the settings I need to use would be greatfull:In FTP caller I have used set the URL to sftp and ftp. it stays red when I try to use https. Is their somewhere that i can declare it a sftp so it will be https?In httpcaller it will accept https but fails out. I use http authentication but will not connect still. I am not sure what else i need to do to get it to connect. My goal is to have FME send the files to this sftp so I do not have to manually do it.
Is it possible to develop a tool in FME desktop which will open an UI with 4-5 interactive transformers of automation that can be later published to FME Server?
Hello all, I am new to the FME server JavaScript API. Hope I can find some help here. What I am doing is pretty straightforward. When I click a button, it fires runDataDownload() and adds a data download link on the web page. But what i got was job failure status with an error "message": "Authentication failed: Failed to login". What did I miss here? Please help. <div> <input type="button" onclick="runDataDownload()" value="Request data"></div><scirpt>window.onload = function() { FMEServer.init({ server : "https://demos-safe-software.fmecloud.com", token : "568c604bc1f235bbe137c514e7c61a8436043070" });};function runDataDownload() { var params = { "publishedParameters" : [ { "name" : 'GEOM', "value" : 'POLYGON((-123.00399475097656 49.32606781005859,-122.9785888671875 49.22444427490234,-123.15643005371093 49.1509732055664,-123.00399475097656 49.32606781005859))' }, { "name" : 'THEMES', "value" : ['BusRoutes'] }, { "name" :
Hi. I have FME Workbench and FME Server installed and have uploaded a workflow which puts out a single output file. I simply want to be able to download this file using the restapi. How can this be accomplished?
I know about the WFS and the WMS, that they are included within the FME Server - what about the WCS?
I have a script with one database (PostGIS, Oracle or SQL Server) reader and with a PythonCaller which depends on the order of the features. I run my script with FME 2016 and noticed that the order of features is different.So i wonder if something change deliberately or the order depend on something that FME can't control ? I didn't see a related subject in the changelog of the 2016 release.
How I can retrieve the CURRENT TOKEN via REST ?
When using FME Desktop, you can use relative paths or the FME_HOME system parameter in the workspace to locate a data source or other resources in relation to the FMW executable location on disk. However, when using the Data Interoperability extension for ArcGIS, the FMW executable is stored in a different folder than the toolbox - for example my data interop toolbox is located in D:\\data-interop, but the actual FMW file is in C:\\users\\myuser\\AppData\\Local\\Safe Software\\Interoperability\\ArcCatalog in an ArcGIS-managed folder that seems to change names.Is there any way to use the toolbox location path in a data interop workspace, or create relative paths using the toolbox location?
Hello,I'm trying to use a workspace + HTTPCaller transformer to enable/disable an existing schedule and I'm receiving an error through the rejected port.FME Server version: 2015.1.2.My HTTPCaller parameters:And the resulted feature in the FMEViewer:Can someone tell me what I'm doing wrong?Some more information...I'm using PUT because of the API documentation:If I use POST, I get this error:HTTP/1.1 405 Method Not Allowed - http://fmeserver/fmerest/v2/schedules/Foo/Bar/ena...If I use GET, I get this error (I had to add Query String Parameter value=true):HTTP/1.1 405 Method Not Allowed - http://fmeserver/fmerest/v2/schedules/Foo/Bar/ena...Case opened with SAFE (C114269).Thanks,Larry
We are starting the conversion process for the ESRI Local Government model and was wondering if any one has a workbench that they used to get me going in the right direction? The process is pushing our data into ESRi`s with out changing there format. Seems to be a pretty straight forward process, but struggling with it. Any help would be much appreciated.
I am new to FME Server. Hope I can get some help from here. I want to get a list of completed jobs with status and username from our FME Server. I can get jobs with status via a http call - /fmerest/v2/transformations/jobs/completed. But I didn't see the username info exposed through this rest endpoint. I know the postgresql fme_job_history table stores the username info. How can I retrieve it through a http call?Thanks all for your help.
Hi , Is there a REST API that can help me access the job history in FME server (2013) . I am trying to get all the FME workspaces that have executed for the day/timespan