Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
How can we draw UML of CityGML File using FME? Is it possible to do so?
Hi, I am looking at returning modified JSON requests from a Government geocoding service - the call would be issued from a Geocortex application.Geocortex issues the call (with an address or XY parameter) - the workspace issues the request, receives the JSON response, does a match on an external ESRI geodatabase to draw in an extra key:value pair, appends this to the response and returns the modified JSON to Geocortex.This is all working well, apart from the last bit - which I haven't got my head around yet. I could, but would prefer not to, write a JSON file out for Geocortex to read, although this would add more time.Any help would be much appreciated.Further information: Currently takes around 7+ seconds to run (700k records in the geodatabase, but I am using a 5m radius spatial filter) - a C# routine (using an address CSV) takes less than a second, so any performance ideas would be welcome.This would eventually be hosted on FME Server.Many thanks,Mark
How I can to download all contents from FTP directory included files and subfolder´s? Thank´s
Hi There,I was wondering if anybody knows of a REST API endpoint to automate sharing a workspace as an application (shareable url).There is a new set of endpoints for tokens but I dont see any for creating the shareable url.Is this something that is not yet implemented and possibly coming in future releases?Itay
Layer file in ArcMap is sourced with a shapefile created in a workbench. data is coming from a sourced spreadsheet in Excel. The layer does not update when the spreadsheet data is changed. I noticed that a lock file is present in the folder structure for the specific shapefile sourcing the Layer. I have not run into this before and I am not sure if there is a specific setting in FME options that I am missing. Thanks.
http://localhost/index_name/_search?q=FILING_DATE:gte now-1d&size=100 goes into the Request URL in Httpcaller parameter and it works and only gives me 100 results. But, size has the limitation of only 10000. So, I want to use scroll api to get all the results. How do I do that? I tried putting scroll=500000 after search , at the end of the query. Still doesnot work
Hi all, I have problem with small script removing accents from letters, it worked fine in FME Desktop 2018 and after upgrading it to 2019 gives me errors like:"Python Exception <NameError>: name 'unicode' is not definedError encountered while calling function `strip_accents'API_POI_Name-strip (PythonFactory): PythonFactory failed to process featureA fatal error has occurred. Check the logfile above for detailsBridge failed to output feature on tag `PYOUTPUT'"Why is so? import fmeimport fmeobjectsimport sysimport reload(sys)sys.setdefaultencoding("utf-8")import reimport unicodedata def strip_accents(feature): n1 = feature.getAttribute('Name_1')n2 = feature.getAttribute('Name_2') nkfd_form = unicodedata.normalize('NFKD', unicode(n1))t1 = u"".join([c for c in nkfd_form if not unicodedata.combining(c)])nkfd_form = unicodedata.normalize('NFKD', unicode(n2))t2 = u"".join([c for c in nkfd_form if not unicodedata.combining(c)]) feature.setAttribute('Name_1', t1)feature.setAttribute('Name
I am trying to add a Reader to a OneDrive Excel sheet. When I select 'Add Web Connection' to the 'Microsoft OneDrive (Graph)' Web Service, the Web Service Authentication but the windows is empty and won't load anything? Anybody has had this issue?
I think what I want to do should be simple enough, but I'm struggling to figure out the syntax in the PythonCaller. I'd appreciate any help with the following: I'm writing to an Enterprise Geodatabase using the FeatureWriter, and want to then grant two roles appropriate privileges to these feature classes. This is simple enough in a standalone ArcPy script with something like the below:fcList = arcpy.ListFeatureClasses()for fc in fcList: arcpy.ChangePrivileges_management(fc, "Viewer", "GRANT", "AS_IS") arcpy.ChangePrivileges_management(fc, "Editor", "GRANT", "GRANT")However, I can't figure out how to pass each feature class name to the PythonCaller (in the place of 'fc', above) . As I mentioned, I think this should be pretty simple, but I'm obviously missing something...
I turned off background maps in Data Inspector and not I can't figure out how to turn them back on. Please help.
Hi, I have a workspace which was created using FME 2018. The workspace features a pythoncalller transformer which executes a script (eedc_util). The python file exist in the fmeobjects folder and workspace works fine on FME 2018.I just installed FME 2019.0 (Build 19238 ) and when I ran the same workspace I get the following error:|ERROR |Python Exception <ModuleNotFoundError>: No module named 'eedc_util'Any advice on what should be done?
I could use some help figuring out how to get MapQuest maps loaded in FME. I get a python exception when I try to load any background maps other than a WMS in the preview window and Data Inspector. Python Exception <ImportError>: bad magic number in 'requests.packages': b'\x03\xf3\r\n'Could not create Python Reader `MAPQUEST_WMTS'A fatal error has occurred. Check the logfile above for detailsFailed to open the dataset ''DATASET INFO: DATASET: NUMBER OF PARAMETERS: 2 RETRIEVE_ALL_TABLE_NAMES = Yes _API_ACCESS_TOKEN = 3LjBtfAjxV6mr8nczRSuENeEtSk83gv7 I have an API key for MapQuest that was working in FME 2018, and I signed up for a new one in MapBox and found that I got the same error in FME 2019. I'm sure there is someone here a lot smarter than me who can figure this out, so thank you. edit: I realize the problem is only using 64bit FME. I have a 32 bit version and a 64 bit version installed.I had an error during the installation that said it couldn't shut do
Hi,We upgraded our acceptance FME Server: versie 2017.1.1.2 - Build 17654 - win32 to versie 2019.0.0.1 win32 build 19246.We are trying to restore the 2017 back on the 2019 server but it failed. There is little logging information that I see at an initial glance.We tested the backup on the 2017 environment before we uninstalled and it was successful.We did a 2015 to 2017 upgrade last time and the 2015 backup worked on the 2017 server.Should we be able to restore the 2017 backup on the 2019 server?I have opened a ticket with our vendor here but this usually takes awhile. Has anyone else successfully been able to restore a 2017 backup on a 2019 server?Thanks,Annette
Here is the sample of what I am trying to achive: I think I do have all required data: Orthophotomap, DTM and DSM. The goal is to have different colors next to different heights. There is no classification here going on. I am struggling to find what FME tools should I use, mostly because I am not sure how is that type of map even called in English.
Hi all Just wondering if Has anyone has experienced very slow request times when downloading the licensing JSON request file? We have a new install of FME Server 2018.1 on linux RHEL7. Its offline so we must download the license request JSON file. We requested via the web-ui and it took nearly 10 minutes to return the file. We tested using the REST API test page with similar timings. Other REST calls seems to work fine.We've done a number of installs the mirror this onto different environments with out encountering and delay.The logs do not seems to indicate anything adverse. A bit of a head scratcher but thought I'd see if the hive mind could help. CheersAdie
Hi all.As it says in the title, all I need is to find an API (XML, not JSON) that will convert 1 easting and northing (OSGB) to latitude and longitude. I must not use macros.That's it.I can find API's that convert postcodes to Lat Lon, but nothing so far for East North.My spreadsheet (LibreOffice) has a chart with all the points displayed using using Eastings for X, and Northings for Y.It finds the max & min co-ords, adds them together and divides by 2 to give the centre of all the co-ords in the form 280827,716553 (centering, in this case, roughly east of Edinburgh).It would use the "central" East North to point the user to an Openstreetmap, which unfortunately wants Lat & Long in the format :https://www.openstreetmap.org/#map=9/56.335159/-3.9475065 Nothing fancy, just one East North to one Lat Long. Doesn't even have to be that accurate.I don't suppose there's a formula that would do it...Anyone?
Good morning,I am working with FME AR, and I would like to add attributes to some line work. Is it possible to do that?My idea is I would like to be able to select a line in AR and it would display attributes about the line. Thanks!David
Hi - Keen for some thoughts on this.I'm using an XMLTemplater to prepare a SOAP request and then an HTTPCaller to make the call to a web service. This is working well.The SOAP request takes a BatchNumber which is default 1.The service returns data in batches (if there are more than a 1000 records). With the first return a BatchCount is also returned which tells me how many batches there are in total.With this - If I re-call the service again and set BatchNumber to 2 in the SOAP request - then I'll get the next set and so on.The problem I have? How do I model this? I have the process running perfectly with 1 batch. Don't know how to effectively re-run the process based on the number of BatchNumbers.Any thoughts?Thanks
We are looking at running ArcPy scripts built in ArcGIS desktop on FME Server 64 bit. Server is running ArcPro 3.5 Python. Some Arcpy libraries do not work with ArcPro. Has anyone figured out how to run both ArcPro 64bit libraries and ArcPy 32 bit from a FME workbench on Server. ArcPro python works fine as long as the python was written for ArcPro.
HiI am trying to retrieve JSON location data from a CMX service. If I login using Chrome, I can access a JSON document from .../api/location/v2/clients and use that file as input in a workspace, but I would like to integrate the authentication process as well in the workspace. Any hints on how to achive this using the HTTPCaller?The documentation can be found at https://www.cisco.com/c/en/us/td/docs/wireless/mse/10-2/api/b_cg_CMX_REST_API_Getting_Started_Guide/b_cg_CMX_REST_API_Getting_Started_Guide_chapter_01.html.Magnus
I'm trying to run a job with fmeserver/restapi, calling with ajax method on my own web service. I have FMEServer installed on localhost and on remote machine with its own IP. It doesn't work on neither. My web service is still under developement on localhost. My ajax is as follows:and what I get is:My FME CORS configurations are below:Any idea what might have gone wrong? Perhaps the reason is working on localhosts (web - port: 8000, fme - port: 8000)?I'd be really grateful for any piece of advice.
hi, I am new to the esri portal side of things and i am currently have a small issue. i am using a HTTPcaller to post to esri portal.As far as i understand if i was to manually upload to portal via add item on the portal page this creates a feature service for my data.my issue is when using fme to upload a shp, gdb to portal the feature service link is not been created. (as far as i understand the process)do i need to create a feature service first or perhaps create a feature service attribute within my portal upload? hopefully that makes sense. cheers
Hi Fmeirs, I am not getting datadownload link inside the body of my email. I created a topic and subscription. and everything is configured. and working fine.I used fmeservernotifier inside fmw. And running from fme server. I am getting all plain text and the pulished parameters (variables) as email, But not datadownload url. Can anyone help me where i am going wrong?i attached sample fme script.
The goal is to construct any know URL with parameters to call and return values to FME but FME HTTPCaller wants to mess with it which renders it useless. The problem is that FMECaller messes with the format and messes up the URL rather than using the raw URL and just substituting values: I need to be able to construct various different RESTful API calls and substitute values and not spend a great amount of time trying to predict what HTTPCaller will do when creating the final URL. For example.http://...../api/LSCustom/v1/rtcm2rp/@Value(routeid)&@Value(measure)?@Value(t)&@Value(caller)Should look like this:http://...../api/LSCustom/v1/rtcm2rp/routeid=0100000000000094-I&measure=57.25?t=true&caller=mefmeFME HTTPCaller creates this instead:'http://..../api/LSCustom/v1/rtcm2rp/&?&&routeid=0100000000000035-I&measure=55.555&%3Ft=true&caller=mefme' So it adds to areas incorrectly ....I have no idea what or why it adds the &?&& before
I have a printing/plotting question about a GIS communications network map. Our clients want to plot a large ARCH E map for their wall of a network map. The issue is the network map isn't legible when plotted from a geographically correct land base. Traditionally clients will redraw in AutoCAD so they can print the same size map and read it when printed. For example, instead of the width of a street being 50 feet, they will redraw it as 200 feet and move/redraw the other facility vectors accordingly. I'm looking to see if their is a solution out there that will automatically adjust/scale the map so it is legible when plotted. Since I haven't been able to find a solution, I have tried to attempt this with FME, but haven't been 100% successful. Adjusting the streets is easy and don't have any issues there. I have also had pretty good luck moving points from the original edge of the street to the new edge of the street. The part that I am trying to determine the best w