Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
Just as in FME workbench, read multiple *.shp and automatic write into multiple database with dynamic schema. It is easy in workbench. Now I want to do the process in FMEObject. With the code below, open the source and destin dialog. And what strange is that, this works successfully for monthes. Recently, this code does not work as I expect, and I can not remember which change I have made.
Where can I get FME objects API document for java or .NET for development.I can only find the python API documents.Is anyone can help me? Thanks!
Hi everybody, I have a weird problem with my reader. My reader was written in C++ and requires a coordinate system for the reading procedure. So, the FME user clicks "Add Reader", selects my reader as format and a coordinate system (for example EPSG:3493). Afterwards he chooses all remaining parameters and clicks "Ok". The translation process starts automatically. Next, my reader`s open() method starts and fetches all parameters. I use the keyword "_COORDINATE_SYSTEM" to receive the entered coordinate system. gMappingFile->fetchWithPrefix(readerKeyword_.c_str(), readerTypeName_.c_str(), "_COORDINATE_SYSTEM", outputString) My problem: This line only works, when the reader is already added to user`s workspace and the user click on the button "Run or Resume translation of the workspace" (green play button at toolbar). It does not work at the first translation, when the user clicks "Ok" on the "Add Reader" dialog (again, the translation start automatically after the dialog is cl
I am using FME Desktop 2014 build 14430 on Windows 2008Server, and ArcGIS 10.3.1 and ArcServer 10.2.2 (loaded on same server). I have a table with a few fields (table name, featurecount, timestamp, error message, status) in my SQL Server SDE database that Iwould like to have updated every time one of my FME jobs run. Sounds very simple but for some reason Ican't figure it out. I tried using a Timestamper, StatisticsCalculator, Counter,Variable Setter, SQL Creator, and shutdown python scripts. The transformers don't produce errors and nothing writes into thetable. Yes I did fanout the attributes.My SQL Creator script is:INSERT INTO UPDATE_RECORD (LAYER, RUN_TIME, FEATURE_COUNT, STATUS, FAILURE_MSG)VALUES('TEST', CURRENT_TIMESTAMP, 42, 'TRUE', 'SUCCESS');This SQL fails, I think because it is a reader and not a writer?? Also that the ObjectID column flags an error that it can't accept NULLS... I tried doing this as a SQL script to run after translation against this table but in a "no
Hi, I am looking for a way to obtain the FME TEMP directory. As far as I know, FME defines the TEMP directory based on 4 characteristics [1]. My question is: Using a C++ reader, can I get the path currently used as temp directory? Something similar to: fmeSession_->fmeHome() returns the home directory of the FME ? returns the TEMP directory of the FME. Of course, I could try to read in the TEMP environment variable by myself (stored in Control Panel | System | Advanced | Environment Variables). But I think using FME for this would be a better solution. Thanks ben [1] FME TEMP variable
Hi, I have added my web service to FME: FME Workbench -> Tools -> FME Options -> Web Service Connections -> Web Services... I have also declared two parameters for the web services (username+password) Furthermore, my reader uses the GUI type NAMED_CONNECTION [1], so users can set their username and password for my web service. My question is: How can my reader access these values/parameters? During the open method, my reader parses the mapping file, but it only includes the chosen "Connection Name" and not the password or username. The values/parameters are stored in FME, I verified that using again: FME Workbench -> Tools -> FME Options -> Web Service Connections I thought, maybe FME provides some kind of service returning the values/parameters identified by the connection name and web service. Does such a service exist? Or is there another way to access the values/parameters from a given connection name? My reader is written in C++ Thank you ver
ArcMap 10.2.2 FME Esri Edition build 15485 When trying to update features in a geometric network on our SDE I get this error message. Error while updating feature in the table/feature class 'WATER.WTR_VALVES'. The error number from ArcObjects is: '-2147210926'. The error message from ArcObjects is: {},ArcMap 10.2.2 FME Esri Edition Build 15485 This 'fatal error' prevents me from using the FME workspace I worked so hard to build. What do I need to do to resolve the error?
Hi folks, I have implemented a workbench where a published parameter represents a URL. In FME Desktop and when it is published as a service on FME Server it works ok. The service can be used without problems with a normal string as parameter value and when is used a string encoded as URL. The problem is that an other workbench (very similiar to the first one in functionality) which works ok in FME Desktop but not when it is published on FME Server and used as a service. It works ok when a string encoded as URL is used as service parameter value, but not when the value is a normal string. (For example, if you use the URL that FME Server UI generate using the values inserted in the form, the service works ok. But if special characters ("/,"+"...) are not encoded in parameter value the service does not work. In both workbench the parameter definition is the same and along the process the value of the parameter is the same. Thanks!
How to translate a field from Arabic to English and vice versa?, I wonder if there is a way or a command that may help in translation a value from one language to other? Best, Majdoleen
Is fmeobjects mandatory while using pythoncaller, or can i run python scripts from pythoncaller transformer without importing fmeobjects?
Hello I use FME 2015.1.1 to create a GeoPackage. I write the data with dynamic settings and the result seems OK, if I use a SQLite tool to inspect the *.gpkg file. Now when I want to open it in ArcGIS 10.2.2 I first need to run a special ESRI extension function from SQLite3 command line in order to be able to acces it from ArcMap. OK so far, but a bit of unwanted fiddling i.m.h.o. Then I can view the vector data in ArcMap fairly well. Good so far. Now problems start when I want to view tables without geometry. I cannot do that from ArcMap and when I use ArcCatalog it behaves as if tables are empty. I can see the contents of these tables in SQLite tools however. Has anyone out there tried similar things or collected some experience with GeoPackage format ? Will this improve in ArcGIS 10.3 ? Can I change something in FME writing in order to enable alphanumeric tables ? My impression is, that despite official claims by ESRI the support for GeoPackage is a bit limited so far ? Thank
Hello, I'm trying to set up a background map for Data Inspector and when I select a Background Format, the parameters button won't open. Has anyone else experienced this? I am using the ArcGIS Data Interop Extension (10.3.1) and not a full FME license. Is that the issue? Please help - would love to set a background map. Thanks! -Steve
When loading MasterMap can I choose identical schema?
I have the following python script as the Startup Python Script parameter: import arcpy out_folder_path = "C:/output" out_name = "fGDB.gdb" arcpy.CreateFileGDB_management(out_folder_path, out_name) print("Job Finished") When running the translation, FME hangs indefinitely at this point : Using user-specified Python interpreter from C:\WINDOWS\system32\python27.dll Python version 2.7 successfully loaded FME_BEGIN_PYTHON: evaluating python script from string... If I remove the arcpy CreateFileGDB_management function but leave the arcpy import, everything is fine and I see the "Job Finished" string in the console. I tried just setting up arcpy.env.workspace instead of creating a new fgdb, but it hangs there as well. Anyone knows what's going on? Thanks a lot!
Hi guys, I'm working with FME desktop and server 2014. Desktop : In order to write an excel file with the Sheet Order correctly set up (the "sheet order" Format Paramters doesn't work correctly), the only solution I found was to : 1/ Copy a template xls file in the destination (with a filecopy transformer) 2/ Re-write this file with an XLS writer. That works fine ! Server : Once this workspace uploaded, I'm face the following problem (in data download mode) : 1/ The copied file end up necessarily in a folder (either in a folder named "dataset" or in a folder which corresponds to the name given in the workspace parameters) - There is no way to put it just at the root of the zip file. 2/ The xls file writen can only be placed at the root of the zip. I can not specify a folder. ?Then there is no possibility to do the re-writing operation. Home i'm clear enough. Any tipps ? CU
We have an architecture with FME ,ArcGIS and Oracle Sptial and have below issue. I have imported SRTM DEM into Oracle 11g using FME.The block size is set to 128X128.I am able to view the data in QGIS,Tatuk and play with it using GDAl command line.Unable to view the same in ArcMap. ArcCatalog shows me The raster and RDT tables.I get the error "The specified raster column does not exist", when try to drag and drop. I have verified that my DBTUNE parameters are set SDO_GEORASTER. Am I missing something?
Comparing the same output data in FME and ArcMap, with the same WFS Parameters Properties set up on both connections, same applic. schema, I am getting different results for some attributes. I.e in ArcMap I don't get values of some attributes but rather NULL. Likely not reading these values and not recognizing gml structure correctly.
Dear FME users, I have a task to upload survey areas contours for different years from dwg into polygon shape format. And I am using FME for automatic transformation of data into gdb. Sometimes my .dwg contain unnecessary data and my idea is to leave only those parts of dwg that has the majority of objects in it (let's say it's ok if I neglect 10% of data as I need just outlines of survey areas). To be more clear, I attach a picture of original data in dwg and purple margin of what I want to receive as output. Any ideas how I can achieve that? I have a few thoughts, please share your views on that, thanks a lot in advance. kkt
Using this REST-call http://fmeserver/fmerest/v2/transformations/commands/submit/Samples/austinDownload.fmw?detail=high With these parameters { "FMEDirectives": {}, "NMDirectives": { "failureTopics": [], "successTopics": [] }, "TMDirectives": { "rtc": false, "ttl": 120, "description": "This is my description", "priority": 5, "tag": "linux" }, "publishedParameters": [ { "name": "MAXY", "value": "42" }, { "name": "THEMES", "value": [ "airports", "cenart" ] } ], "subsection": "REST_SERVICE" } And adding the services to notify: "NMDirectives": { "successTopics": [ "MYTOPIC_OK" ], "failureTopics": [ "MYTOPIC_CALLED" ] }, and even trying t
My workspace is run as a result of a directory watcher publication event. The event helpfully passes the JSON message about the location of the new file. I have the DirectoryWatcher reader in my workspace to read the JSON message. When I publish to our FME Server 2014 using the wizard, I am able to specify which reader should be used to read in the notification event: this is on the Register Services screen, on the Notification Service line, clicking Edit..., there I can specify the Notification Reader. Similarly, I can specify the writer that will be used for the publish event (i.e. the Notification Writer). In order to do automated deployment, I am using the FME Server REST API (v2). I am able to publish a workspace sucessfully using the API, as well as create topics and manage subscriptions. However, I cannot find a way of specifying which reader/writer should be used for receiving/sending the notification event message. Is it possible to specify the Notification Reader or Notifi
What is the minimum needed files to be able to run Arcpy on FME Server. It should be possible to only copy the related python-files and libraries and not the complete ESRI-stack. Also after looking at this: http://fmepedia.safe.com/articles/How_To/Choosing-a-different-Python-Interpreter-installation it would be very nice to define the python-interpretor in the workspace ithself ie: FME_SERVER_PYTHON = c:\\ARcGISpython\\ to make it ieaser to move between python interpretors and from desktop to server
I'm trying to use the Data Loader for Google Maps Engine and I think there is a proxy issue. The connection to google worked from home but not from my office. The log shows this: Google Maps Engine Raster Reader: Requesting access token from OAuth2 endpoint Google Maps Engine Raster Reader: : Could not connect to server. Check that you are connected to the internet and that no firewall is blocking outbound connections. The error was 'HTTPSConnectionPool(host='accounts.google.com', port=443): Max retries exceeded with url: /o/oauth2/token (Caused by <class 'socket.error'>: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond)' A fatal error has occurred. Check the logfile above for details and I get this dialog: Does anyone have any suggestion?
Welcome to the new FME Community! If you have any suggestions on how to improve the service or you have any issues, feel free to post here or you can email me directly.
The following is stated regarding the dgn attribute igds_element_visibility: This attribute has the value yes if the level the element is on has its display property set to “on”; otherwise, the value is no. My question is where is this display property? I can't find that anywhere! Also, is it possible to set the global display property of a dgn level in a writer, certainly the igds_element_visibility only appears in the reader. Many thanks Dan
Hello, i am using the rest interface to query the server about the job completed. So i am using the url : http://myserver/fmerest/jobs/completed.json?joblimit=0&token=blablablabla But the response doesn't contain the number of features output. Is there a way to get this information via the rest api ? Thanks, Julien