Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
I am trying to upload files to Sharepoint and i am using HTTP caller. I am Struggling to use the correct URL as i believe REST API is required would any one have any insights or examples that could help me? Thank you
Howdy, I'm trying to connect to an API using this documentation: https://github.com/ubahnverleih/WoBike/blob/master/Bird.mdIt seems to work fine through Postman and other API callers, but not FME. I keep getting a bad request on the POST portion.
I know I'm being lazy by not thoroughly researching the available documentation, but maybe there's a simple yes/no answer to my question: can I directly export a .fmw workbench transformation to a Python module(s)? The closest analog I can think of is like in ArcGIS, where you can export a ModelBuilder diagram into a Python script.
I have a Python Script within Python Caller that keeps through import error as: Python Exception <ImportError>: No module named ldap. Can anyone help with how to get around this?Thank you
I have a link which gives me rain gauge sensor information. Everytime I refresh the link I get new readings, however I want to set up my workbench to keep the current readings in one table and it to store previous readings in a history table. This is what I have set up, however I don't know what to use to log previous readings. The current and history keep updating with the same current values.
Hi, "Shutdown python scripts can make use of FME Objects by using import fmeobjects" -- Startup and Shutdown Python and Tcl Scripts However, when I try to create an FME Object (e.g. fmeobjects.FMELicenseManager) in Startup or Shutdown Python Script, FME always shows this warning message in the Log window finally. Warning: not all FMESessions that were created were destroyed before shutdown. This may cause instability The workspace works without errors, just this warning occurs. May I ignore this message? or Creating FME Objects is not recommended in Startup / Shutdown script? Takashi
How to find a line among a group lines which is the closest to a known point (lat,long)
Hi ,I have a script Python to read the Hierarchical from a format. First I extract this format with the library and after try to read the folder. In Pycharm is works:result = Format [subfolder]My question is: how can I do this structure in PythonCaller? I did try without success:feature.setAttribute('Format[subfolder]',result) Thanks,Danilo
Hi,we have a proxy which can't understand HTTP 1.1.I think that the HTTPCaller uses HTTP 1.1.How can I configure the HTTPCaller to use HTTP 1.0?ERROR: HTTP/1.1 Expect: feature is being asked from an HTTP/1.0 software.Best regards,Matthias
I have a workspace running in FME cloud and I would like it to send a response email to the person that submits data through the FME server email address. I am having trouble finding the senders email address so it can be passed as a parameter.
Recently upgraded from FME Server 2017 to 2018. Used a back up from 2017 to restore in the 2018 install and everything seems to work fine except the Resources. They exist but there is nothing there when you navigate to them. I tried to add a new Resource and it gave the below error. Error. The settings for this Resource Connection are invalid. Do you still want to save? Path does not exist: [path] We know the path exists but not sure why FME Server cant see it. Any help would be appreciated.Environment:FME Server 2017/2018Windows Server 2012
how can I query the feature count for each dataset in theI think I have syntax problem , I have been referedto this document https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htmbut whenI put in the where clause in the reader : returnCountOnlybut I am getting an error
I’m trying to access an API and extract data using python caller where I’m using url lib to get the response . Since it’ll in works synchronously the process takes time. Now I’m planning to use http caller and I need to know how it handles the requests? Is it synchronously or asynchronously?
This describes WRITING SUBTYPES from ArcSDE: https://knowledge.safe.com/articles/23883/working-with-geodatabase-subtypes.htmlHowever when I read data from ArcSDE using the Legacy ArcSDE-reader it only reads the integer SUBTYPE CODE and not the Description / Value.If possible: Dont use python-script workarounds or manual exports from ArcGIS
I used the httpcaller transformer call the Baidu NLP api using the post method. But I have got a uninteded result.Baidu NLP API: http://ai.baidu.com/docs#/NLP-API/topNow I use the lexer for example.Http method: POSTRequest url: https://aip.baidubce.com/rpc/2.0/nlp/v1/lexerUrl parameter??Valid for one month?access_token=24.04f6c0626853e9c8b18ffbbaf5a0743b.2592000.1532943274.282335-11467307Header : Content-Type=application/jsonBody:?json,requires gbk encoding?{"text":"??????????"}If called successfully , it will return a json(encoding in gbk?,just like below.{ "text":"??????????", "items":[ { "byte_length":4, "byte_offset":0, "formal":"", "item":"??", "ne":"ORG", "pos":"", "uri":"", "loc_details":[ ], "basic_words":["??"] }, { "byte_length":2, "byte_offset"
Hi guys,I've been trying to auto-generate cadastral parcels using the start and end coordinates and radius values, and the process is working, but the python caller seems to be using the wrong centre point to generate the arcs in some instances (as there are always two potential points in trig). I'm using the init(twoPoints, radius, counterClockwise) function, where the sign of the radius indicates direction. I'm attaching a workbench which contains the generation of a section of blocks and the corresponding section area, and the outer boundaries of the two should match, but don't. I believe this is a trigonometry issue, the math behind the caller isn't working for an arc that's greater than a semi-circle. Does anyone have any ideas on how to fix this? Build 2017.0Thank you in anticipation,Katrina
Previously we had no issue publishing to FME Server (2016 and earlier) with connections set to access web services on our ArcGIS Online for Organizations account. Now we can't seem to get our "one" ArcGIS Online job to work on FME Server 2017. When it asks us to authorize the connection after upload (Which works just fine on Desktop we simply get an error telling us "Invalid client_id Error:400"Has anyone else encountered this issue yet? Do you know what the solution to it is?I'm attaching a copy of the error message and what bothers us is it shows the generic https://www.arcgis.com URL and not our organizational account.
Hello, im searching for the possibility of running multiple workspaces at the same time (not queued jobs) making use of the python fme objects fmeobjects.FMEWorkspaceRunner() . I was kind of hoping that i could pass a list of dictionarys as 'parameters' argument to runWithParameters(workspace, parameters) ... I was expecting the same behaviour as seen in workbench transformer WorkSpaceRunner, where you can set wait for job to complete = No and the amount of jobs to run (max 7, i suppose) run in parallel. Im i missing something wiht this object, or im really suppose to implement some python multiprocessing technic to acomplished the parallelism needed ? What your thoughts are ?Regards,Jorge
Skipping Shape and FileGDB. And skipping databases. What is the best / most feature rich file format to open in ArcGIS ? GeoPackage? SQLITE?
I have a powershell script that uses Invoke-RestMethod to generate an FME token. It's using -UseDefaultCredentials to run the Web call because I don't want to hardcode the user/password information in the -Uri request. I get an exception from the FME web service saying that I haven't provided the user/password information, BUT it still works and retrieves the token using UseDefaultCredentials. Is there a way that those parameters can be made optional for the web request so that I don't get an error?Thank you,Susan
I am new using Oauth2 authorization protocol, so please, don't blame on me if I make sillyquestions.I am triying to access the API of Idealista (a real state company) to get information about the offer they have about offices, warehouses, etc. I got from Idealista an Apikey and a secret and I used this information to get a token making an http request like this: POST https://api.idealista.com/oauth/token?grant_type=client_credentials&scope;=read HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: multipart/mixed; boundary="----=_Part_7_1090412765.1526401548680" MIME-Version: 1.0 Content-Length: 45 Host: api.idealista.com Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) Cookie: APIPUBID=3d5ed4374026f476|WvsKD|WvsKD Cookie2: $Version=1 Authorization: Basic anFndmhtaGRxNmZmazBtNWY1cjZuNG1hNGYzdTNncG86bmw3VHhqQ2cybWU3 Once I get the token as a result of the previos http request, I can make a new request in order to obtain the information I am looking
Hi all,During a translation process, I am writing some curved lines to a file geodatabase using the 'Esri File Geodatabase Open API' writer (the red lines in the screenshot). When inspecting the outcome, I noticed that the shape of the lines have changed. The lines were slightly moved and/or changed shape completely. When writing the same to (for example) a shapefile, I don't have this issue.Note that this is already occurring on a large scale: the red line in the screenshot is the distance of 0.0002 units. Is this a known issue? Or am I missing something else here?
I'm afraid that this code in the "Getting Started Working with rasters" section is wrong. # creating the new FMERaster rasterProperties = fmeobjects.FMERasterProperties(numRows, numCols, xCellOrigin, yCellOrigin, xSpacing, ySpacing, xOrigin, yOrigin, xRotation, yRotation)According to the API reference, the order of parameters should be: # creating the new FMERaster rasterProperties = fmeobjects.FMERasterProperties(numRows, numCols, xSpacing, ySpacing, xCellOrigin, yCellOrigin, xOrigin, yOrigin, xRotation, yRo
Hello All, I am posting this question to try to gain an in-depth understanding of the functionality of FTPCaller vs SystemCaller.I designed a script that used SystemCaller to call on CoreFTP in order to upload and overwrite a file to a certain site and log the results in a text document. This is the SystemCaller command: ""C:\\Program Files\\CoreFTP\\Coreftp.exe" -O -u @Value(file_path) @Value(site_command) -log "@Value(routinglogdirectory)@Value(_rootname).log"The command worked successfully. It took 12 seconds to run. I switched to an FTPCaller to run the same function. The time was reduced to 1 second.Just for my understanding, I am wondering what is FTPCaller doing differently in the background? Would love to hear some insights from FME. Thanks, Fariya
I need to read from an image server but the reader is gray and the notification:The "Esri ArcGIS Image Server" format requires the ISClientC library to be installed and licensed. Please visit http://www.safe.com/support if you require additional assistance. Google does not help me find the dll that i seem to need..