Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
I'm looking for ideas on how to get started with converting a SEG-Y file into something that can be readable/visualized by ESRI products. When I input my segy file I get the header and trace feature types but the attributes are similar to the post below. All ideas are appreciated. https://knowledge.safe.com/questions/41451/how-to-read-binary-header-samples-etc-from-a-segy.html
Can you set a background map in FME Data Inspector 2017.1 (build 17539)?I got this error when retrieving feature types for a Background Map.
Hi,In my FME Server, I published a "master" workspace with an admin user called psl. This master process basically invokes another FME workspaces through a FMEJobsubmitter.When I run this process on the FME Server, the username is logged correctly only for the master process, but for the child process the username that is logged is psl.How can I do that it logs the correct user for the child processes too?
I am trying to modify an FME custom transformer to run the ESRI ArcPy clip_analysis function and I'm not sure how to write the script to read the two input datasets needed for the clip_analysis. Here is a link to the custom transformer I am modifying. using-arcpy-for-fme-feature-processingI have each of the datasets going into the PythonCaller and the fme_feature_type attribute is added and populated when they input into the custom transformer.import fmeimport fmeobjectsimport arcpydef processFeature(feature): # Get clipper and clippee FC's and settings from feature attributes dataset = feature.getAttribute("pre_clipped") arcpy.env.workspace = dataset # Set local variables inFeatures = "pre_clipped" clipFeatures = feature.getAttribute("clipper") outFeatureClass = dataset + "/clipped" # Execute Clip using clipper and clippee arcpy.Clip_analysis(inFeatures, clipFeatures, outFeatureClass)
Hello,I am attempting to run different work spaces on different threads using the .NET API. Whenever I call "RunWithParameters" all of the work spaces fire but FME processes them one after the other instead of running them all asynchronously. I am able to run up to 8 instances of FME simultaneously if I open and run them manually but I cannot figure out how to do this in .NET. Is this a limitation of the API or am I missing something?Thanks,Chris
Hello Guys,Salesforce is currently upgrading their security and now they will use TLS 1.1 instead of 1.0.With that in mind, the FME 2017 built-in Web Connector started failing while attempting to authenticate through oAuth----------------Network Error:Requested operation is invalid for this protocol Details:Error Text: Error downloading https://na35.salesforce.com/secur/weakhttps.jsp?l=1 - server replied: TLS 1.1 or higher required<br>Reply Url:https://na35.salesforce.com/secur/weakhttps.jsp?l=1Is there any workaround within FME or is it related to my browser specifically? This is paramount for me as I rely on this connector for all my work.Thank you in advance,John
Hi all,I am trying to set up an imap publisher, but everytime I try to save it it comes up with the error 'Could not find publisher'. The same error applies when I try to validate the publisher. All required fields have been filled in on the publisher.I don't know what the error means as I can't find any reference to it in any documentation. It looks like all my publishers aren't working as the directory watch publisher doesn't seem to pick anything up either. Any ideas?Thanks
Did anyone have experience in publishing a WMS to ArcGIS Server with REST API using FME?Any help would be appreciated.
Hello FME User's,I'm reading a Website ( http://www.rio.rj.gov.br/ ) and through the transformer PythonCaller using Regex to find a value from attribute _response_body.When the Workspace was executed a error is happened like the information bellow:Python Exception <UnicodeEncodeError>: 'ascii' codec can't encode character u'\\xd3' in position 315: ordinal not in range(128) Attached my template file.Thanks in Advance,Danilo de Lima
I have posted a workspace to FME Server that uses the Emailer transformer.In the desktop version I have used Gmail as the email service and everything works fine from FME Desktop 2017. When the workspace is published to FME Server, the Gmail account in the Web Connections needs to be authorized. Under Web Connections, I went to Manage Web Service and selected the Google Gmail service. This is asking for a Client id, Client Secret and Redirect URI.My understanding is that I need to associate the Gmail API with my Gmail account and create the OAuth parameters from Google Developers Console. https://console.developers.google.comIn the Google Console I did the following steps:1. Created a new project (mine is called fmecloud).2. Went to API Manager page and selected, Enable API and selected the Gmail API.3. Selected 'Create Credentials' and then "OAuth client ID'.4. For Application Type, selected 'Other' and named it fmecloud.This generated an OAuth client id an
Something very strange happen in my shutdown python script that uses arcpy.Exists() function. This function test if a feature class exists or not and returns True or False.The following script returns False in FME even if the feature class do exists. I have tryed the same script in a python shell using the same python interpretor, and it returns True. Any ideas why it fails in FME shutdown python?import arcpyprint arcpy.Exists("\\\\cnatrtd8\\geo\\GEODEV011.sde\\GEO09_WEB_MERCATOR\\GEO09E03_CS_STA")
Hello All,I am trying to create the shortest path between 48 points, but FME workbench does not display the path but at the end, I get a spider-like path (No Path) on a map. Please see image below. Thanks
Hi all,FME beginner here. I'm trying to process data from a Dutch government website. One can request data using search keys in the URL (SRU I believe?) - the response is an XML. e.g. https://zoek.officielebekendmakingen.nl/sru/Search?version=1.2&operation;=searchRetrieve&x-connection;=oep&startRecord;=1&maximumRecords;=10&query;=title=%rotonde%I'm trying to put in multiple search strings and process the results / output in FME.What I have now:Excel file with search strings connected to HTTPCaller.HTTPCaller setup:Request URL has "@Value(Search string)" referring to input Excel fileOutput / errors:*EditWhen inspecting the _response_body it seems I do have some XML data. My next question, how to process this data? What transformers should I use next?Many thanks,Ed
Hello Team,My workspace has a transformer HTTPCaller that send request to googlemaps API without problem, its works!I want to demonstrate my customer that is possible to build this URL and send request to googlemaps using python ( PythonCaller ).import fmeimport fmeobjectsimport json,urllibfrom urllib import urlencodeimport googlemapsimport reREMOVE_HTML_TAGS= r'<[^>]+>'def _googlemaps_(feature): url = 'https://maps.googleapis.com/maps/api/directions/json?%s' % urlencode(( ('origin',feature.getAttribute('inicio')), ('destination',feature.getAttribute('destino')),('waypoints=optimize:true|',feature.getAttribute('waypoints')))) resultado = json.load(urllib.urlopen(url)) print urlWhen i run my Workspace the URL result has special caracters and doenst works my request:https://maps.googleapis.com/maps/api/directions/json?origin=+Av%2B+Mal%2BFloriano%2B168%2BCentro%2BRio%2Bde%2BJaneiro+%2BRJ&destination;=+Av%2B+Mal%2BFloriano%2B168%2BCentro%2BRio%2Bde%2BJa
It would seem that Tiles can be made of complete RGB-data (FMERGB24Tile for instance), but the getTile() method seems to be available from FMEBand only, which in turn will only contain a single color channel, as generated from FMERaster.getBand(). Is there some elegant way to generate an FMERGB24Tile from an input raster?
Hi,I have SOAPUI responding fine for requests to the host but when attempting to replicate this through FME HTTPCaller I simply get -HTTP/1.1 415 Unsupported Media Type - http://bckapi.hosted.domestic.test.whitespacews.com/powersuitedomesticwebservice.asmx Here are the parameters defined in my HTTPCaller - HTTPCaller [HTTPCaller]Request: Request URL: http://bckapi.hosted.domestic.test.whitespacews.com/powersuitedomesticwebservice.asmx HTTP Method: POST Query String Parameters: Query String: <not set> Headers: Headers: <not set> Body: Upload Data: Specify Upload Body Upload Body: <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.whitespacews.com/"> <soapenv:Header/> <soapenv:Body> <web:GetAddresses> <!--Optional:--> <web:getAddressInput> <!--Optional:--> <web:AddressNameNumbe
Hi all,Whilst I'm relatively familiar with the basic functionality of FME a recent project has required me to get involved with SOAP web services. Having read some of the online documentation I've managed to setup a work space to contact the web service and receive a response (using a Creator, XML Templater, HTTP Caller and XML Formatter).I've successfully setup a work space to read in NHS local services and using the XML Fragmenter have exposed the attributes from the SOAP response under the ServiceTransferObject element.The NHS the response was cleanly structured (example below):...but the response from a 3rd party web service appears to be structured very differently. There are the expected Envelope and Body elements but the attributes I need to expose appear to be encoded within a single element, iData (example below):Is anybody able to assist with being able to access the attributes held within the highlighted area of the above example (basically everything under the
I want to calculate the length of a line shape file using python scripting. Pls somebody help me do this
Problem: I want to use the arcmap dissolver because the FME dissolver makes some problems.I tried the following:Workbench:PythonCaller Parameters:Python Script inside PythonCaller:I got the following Error-Message: Python Exception <NameError>: global name 'test_output' is not definedError encountered while calling function `DissolveWithArcpy'f_10(PythonFactory): PythonFactory failed to process FeatureI don't know where and how to tell FME what the output is.
I want to convert a set of shape files to ESRI GDB format. And I need convert only the features based on the conditions in python. How to do it
Hello Team,I want to extract a direction of driving between address points using the API from gogglemaps. First i have the Origin Point and i need to find the next address ( point b for example ) from xls file. After from the point B find the next address ( point C ) and repeat this process 10 times. I believe the best way to do this is a loop in python. Attached my template file.Thanks in Advance,Danilo
Which transaction type is better for writing to an archived Feature Class using the Esri Geodatabase writer, Transactions or Non-versioned Edit Session?It's not really clear when reading the writer parameter documentation: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/geodatabase/GEODATABASE_SDE_writer.htm section -> Transaction Types -> "custom behavior."What is exactly meant with "custom behavior"?
Hi users,I have a script that create a route between two points ( start and end ) using library googlemaps.The return is going well to attribute in format JSON.The idea is extract the route information in 'html_instructions'. In PyCharm is work when i execute it:I configured my Workspace and execute ( attached template file), but it brings only the last route between two points.How can i get inside my Workspace all route and turn a attribute? Attached the JSON generated by request googlemaps and Workspace.Thanks in Advance,
I am getting the error when running the metadata function of arcpy function:arcpy.MetadataImporter_conversion (MetadataFile, TargetGenESISData)FME API version of module 'PythonFactory' matches current internal version (3.8 20151127)The user-specified Python interpreter `C:\\Windows\\System32\\python27.dll' is version 2.7Python version 2.7 loaded successfullyFME API version of module 'PythonFactory' matches current internal version (3.8 20151127)FME API version of module 'PythonFactory' matches current internal version (3.8 20151127)Emptying factory pipelineUnhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'GpMetadataFunctions, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified. File name: 'GpMetadataFunctions, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' at System.Reflection.Assembly._nLoad(Assemb