Creating and organizing workspaces. How to use Workbench.
Recently active
I used the transformer MapnikRasterizer to create a raster for a specific data set. I want to combine this raster with a list that has the same the same unique ID into a single document. How can I create this list and combine it with a raster into a single document? For example, in the photo below:I want a list showing the records of BW #SW-0127, BW# 316002, and BW# 318003 on the first page,with a raster of the spatial extent (created with Mapnik Rasterizer) on the second page if possible
I have a table like below select red highlighted data and replace at once without case sensitive I need to change as like below table Thanks in Advance.. _/\\_..
How to check if an object's attribute eqals with one of the list elements? (The different features contains different numbers of list elements and I want to compare with the all)
Hi list.This is more an administrative question than a technical one, but I need some insight into what's best practice.My installation has multiple FME versions (2016-2019, x32+x64), and most of these versions are still being used in regular tasks.I have a "Shared FME Folders" site defined on a network drive, and this is shared by all FME versions via FME options.I have created a substantial number of custom transformers in here, and they all run with the embedded Python interpreter.So far I'm using Python 2.7 in all FME versions, which luckily is still an option in 2019 (although deprecated), but I would like to upgrade them to Python 3.x.My problem is, that since all transformers are shared among all FME versions, it looks like it needs to be an "all-or-nothing" update. There's no provision for a separate transformer repository for each Python version, nor for each FME versions.I.e. all transformers need to be updated to Python 3.x all at once, and al
I have a process running for little over a week now, up to yesterday it was at about 50%. FME workbench was 'not responding' yesterday after I tried opening another workbench in a new window and it stayed that way until this morning. I seem to have now closed out my translation but can see that the memory usage is still the same for the fme.exe process. Is it that my process is still running and if so, how can I get to see the progress again in workbench? Or is it that I have to start again from scratch and have essentially lost once week of processing? HELP!
Maybe this is can be done in a very easy operation, but how can I create a general custom transformer?I created a custom transformer in a workbench to process data A, it worked fine. Then I wanted to use it to process data B which has different attributes from data A, after I linked data B to custom transformer, it became a incomplete transformer, it can't read attributes from data B, how can I solve this problem, there's too many data I can't create custom transformer for every data.
Hi,is this possible to pass User Parameter into function argument as a second argument inside PythonCaller ?Putting it like that, does not work:def processFeature(feature, FME_MacroValues['SomeUserParameter']):Thanks,Submi
Is there a way to have a parameter used to kick off the workspace?What I want is to be able to run the workspace and have the user enter a value or list of values that are then passed to a bunch of tests which then control the running of the rest of the workspace.
I have recently refreshed computer with windows 10 professional x64 and i can not run any fme workspace on it anymore. msg said "FME EXE has stopped working.. A problem cause the program to stop working correctly. please close the program" (see screenshot below). but if I publish it on the server and run from server, it was fine.
I have two feature classes. one is Table-1 and another is Table-2.Challenge: Select data from Table-2 based on NICKNAMES which is matched with last NAMES matched. I need output LIKE FINAL TABLE. NOTE: need to select red colored DATA need not to select green colored DATA
Hi All, This seems like a straightforward issue, but I am struggling to come up with a solution for my workflow. I have created a set of lines within a polygon shape, the set of lines have inherited a '_count' attribute from the parent polygon. Using StatisticsCalculator I have calculated the '_numeric_count', '_sum' and '_mean' for the Lines, grouping using the '_count' attribute. However, when looking at the results I have a need to remove Lengths such as the one highlighted. If any Length in the group is >= 10, for example, how do I exclude the entire group of values? In this case the entire '1947' _count group would be removed and would not pass to the StatisticsCalculator. Thanks in advance Andrew
Hi,I'm relatively new to FME but am interested in running a workbench that loops/iterates parameter values (Neighbour Finder distance, Bufferer distance, and a number value in a tester) multiple times.E.g. I want to generate outputs with a buffer distance of 5000, 10000, 15000, neighbour counts of 4,5,6 etc. What is the best way to set a workbench running, that will generate multiple different outputs, based on iterating through parameter values, naming outputs accordingly? I wish to end up with multiple outputs in a format similar to output_$BufferDistance_$NeighbourDistance_$NumberValue
Hello all,I have 1721 point features, which I am combining into a single line using LineBuilder.Each node has a datetime stamp, and I want to populate the line with the attributes "start_date" and "end_date" drawn from the "date" attribute of the first and last point feature.In the LineBuilder I have ticked the parameter Generate List, so I have a list with 1721 elements.I can use the Attribute manager to create a new attribute "start_date" with a value of;@Value(points{0}.date)However, I fail to do the equivalent for the last element in the list.@Value(points{-1}.date) is not accepted by the Text editor or the List Element Selection: points{}.dateI thought I might solve it by using ListElementCounter, which does create a new attribute with a value of 1721, but again the List Element Selection: does not accept an attribute value as an input.
Hello therewe have data structured this way PlaceAttr1Attr2P1213P2104 and we want to convert it to this structure PlaceAttrP1attr121P2attr110P1attr23 P2attr24 Any idea, pleaseThanks
Hi,I created some user parameters and want to set their values programmatically some time later (when some data is processed). Is this possible? Or I must set their values initially?
I have a feature writer transformer that exports to .csv. For the dataset parameter and CSV File Name I have an attribute "_dirpath" and "_outputName" that are both dynamical created based on the input and the time.The problem is I want User Attributes to be set to "Automatic" but at the same time there are certain generated attributes that I don't want showing up in the output.I can use an "Attribute Remover" on most of them with the exception of "_dirpath" and "_outputName" as I need them to tell the feature writer where to write the file to. How do I get out of this catch-22 of having "_dirpath" and "_outputName" available to the feature writer but NOT outputting to the file?I tried using "VariableSetter" and "VariableRetriever" to assign the attribute to a Private User param but this does not work as I later read that "FME configures user parameters before starting the translation, and their values cannot be changed in the workflow later." Having a global variable also does not wor
In workspace 1 (WS1) the "_dirPath" and "_outputName" is derived from the input and a timestamp. For example: Input: C:\Temp\MyFile.csvOutput: C:\Temp\MyFile_2019-8-22.csvThese values are then passed into a custom transformer (WS2) so that _dirPath and _outputName show up as User Parameters.This is done because :Answer by takashi · Feb 14, 2018 at 02:56 PMFME configures user parameters before starting the translation, and their values cannot be changed in the workflow later. SourceIn WS2 I have a Feature Writer that exports to csv. The Feature Readers Dataset is set to, $(_DIRPATH) ie. the user parameter that is set from "_dirpath" in WS1 and the CSV file name is set to $(_OUTPUTNAME).Now, this all works fine. The problem is I want the feature writer to have it's User Attributes set to "Automatic". Yet, at the same time I don't want the attributes of "_dirPath" and "_outputName" showing up in the output. While the user params of $(_DIRPATH) , $(_OUTPUTNAME) should be set at the st
Hi, I have an urgent question.I have a point file. Each point has a rank number and a circle size.Basically, what I am trying to do is to:1: Find the point with the highest rank and add it to the selected list.2: Find the next point with second-highest rank & draw a circle (using circle size), the point is selected and added to the list if there are no selected points (from 1) from the list inside the circle.3: Find the next point with third-highest rank & draw a circle (using circle size), the point is selected and added to the list if there are no selected points (from 1 & 2) from the list inside the circle.4: Repeat the process until no points left.Thank you so much in advance.
I have to sample a large area with high resolution: A country with a resolution of 1 Meter. I will use points for this which eventually will be written to a database.I will have to split up the calculation, e.g. 50 by 50 km which would result in 2.5 billion points per run.Can FME handle this? Or would it be better to split the calculations to smaller parts?The computer has 64 GB of RAM.
For some reason I can not get this to work, and its driving me nuts. I am using a File & Directories reader in conjunction with a Workspace runner but am unable to get the writer to function correctly. The data is a bunch of shape files (point, line, polygon). The usual method of using fme_feature_type with a dynamic schema does not seem to work. If I use path_rootname for the outgoing file names it does save the files, but they are empty. Any ideas?
When running my workbench locally, there are no issues/errors. However, when I publish to the server and the workbench gets triggered by an automation, I get the following error in my log:The clause 'TEST @Value(fme_rejection_code) != FEATURE_TABLE_SHIM_SUPPORT Yes' within 'FACTORY_DEF * TestFactory FACTORY_NAME Date_Converter_Rejector INPUT FEATURE_TYPE ___TOREJECTOR___ TEST @Value(fme_rejection_code) != FEATURE_TABLE_SHIM_SUPPORT Yes OUTPUT FAILED FEATURE_TYPE Date_Converter_OUTPUT @RenameAttributes(FME_STRICT,fme_rejection_code,___fme_rejection_code___)' is incorrect. TEST must look like: TEST <value> <operator> <value> [ENCODED]Edit:Just fyi, may have something to do with it: The DateTimeConverter is followed by a matcher. Any help would be appreciated!Thanks.
Today I ran into a problem executing workspaces containing multiple versions of a custom transformer, which has parallel processing 'turned on'. I was wondering if someone has some thoughts on the matter I found.I am using FME 2016.1 build 16494.With all the instances of the transformer embedded the workspace runs fine, and reacts to changes in the parallel processing level (and the amount of groups the data is split into) quite like one would expect.When I have the same custom transformers 'linked', the whole thing crashes and / or does not function at all.As soon as the linked transformer is read, it requests for the amount of threads regulated by the default value of the Parallel Processing Level of the Public parameter I use to set the level. The value of the parameter in the workspace from which the transformer is set does not seem to affect this initialisation-value.When set to moderate it means every transformer requests four threads, with six instances embedded
Dear FME Community,since recently i have trouble with FME on parallel processing. When the first feature enters any custom transformer i get an FME appcrash. Also, I get different error messages on the same workbench, which is very unusual. -------------------------------------------- Error_msg begin ------------------------------------------------------------Error 1(most frequently):|WARN |0arning: not all FMESessions that were created were destroyed before shutdown. This may cause instability |WARN |Warning: not all Stashed Objects that were registered were dropped before shutdown. This may cause instability |FATAL |Precondition failed at stfspec.cpp:1152. Expression: aFeature != 0Error 2:|ERROR |This FME edition does not recognize the `TransporterFactory' factory. Please ensure that the current platform supports this factory, the factory name is spelled correctly, and that you have installed all required plug-ins |ERROR |A fatal error has occurred. Check the logfile above f
In my company we have installed the FME Server on a server only accessible from inside the intranet (so no internet connection). I want to publish some workspaces to colleagues without the need of signing in, so I built a simple html file with a JavaScript form in it, based on the FME Server playground examples. My goal was to place a html-file accessible for all relevant colleagues, they can open it in their browser and submit a job. Unfortunately it doesn't work because of the CORS policy, which throws an error.Is there a simple way (maybe another?) for "publishing" workspaces inside a custom environment (like an own HTML file) in local networks without the need of changing the CORS preferences?
In pre 2019 versions of FME I often used a python scripted parameter to generate a timestamp which I used in the filename of a File Geodatabase.All I used was:import datetimereturn datetime.datetime.now().strftime("%Y-%m-%d %H-%M-%S")Now I can't get it to work anymore. The moment I add the parameter the workbench is done:2019-08-19 11:26:35| 2.1| 0.0|FATAL |GEODATABASE_FILE writer: An unknown exception occurredI suspect it has something to do with the deprecation of python 2.6? What configuration do I need to set to get this to work?My Python skills are nonexistent, so it might be something obvious but I can't find what I'm doing wrong.