Using transformers to modify data.
Recently active
I have an idea about a collection of feature readers and writers (feature reader for DWG can break blocks 1 level. then checking if the entities resulting from that break is geometry ( ill keep the block containing that geometry from before the break) or if its a block (break again). then iterating over that until all i have is blocks that if breaked/exploded only consists of meshgeometry. I would like to hear some feedback on this idea.
I am trying to merge a set of tiles into a geopackage file. The sources have different geometries and schemas. The string transformers are beacuse the sources have (4) unique characters in the beginning that need to be removed in order to do the merging. I have successfully used a similar workspace to merge tiles into shapefiles in the past. This time all is well until I try to write the new file. There are quite a few errors reported but the geist of them seems to be: "OGCGEOPACKAGE writer: No definition found for input feature type 'NNNNNN'. Ensure that fme_template_feature_type is not set incorrectly and that the feature type name is valid". Any ideas on how to resolve this?
What I want to achieve is:colour is split into list attribute colour{}nationality is split into list attribute nationality{}status is split into list attribute status{}size is split into list attribute size{}shape is split into list attribute shape{}etc. in one go. Thanks for you help
Is there a way to test if my incoming lines/polylines have measures attached before I use the MeasureExtractor? If the incoming feature does not have measures - MeasureExtractor fails. I tried GeometryValidator, but this lets the features pass if all vertices do not have a measure.
Hi! I would need to prepare a FME-based flow doing more or less what the "Erase" tool of ArcGIS is doing. As there is no equivalent transformer (correct me if I am wrong), I use a Clipper transformer as shown in the attached workspace. How could the process I came up with be run in an acceptable amount of time (close to the 25 minutes of ArcGIS Erase tool) while preserving the attributes of the layer being erased (which ArcGIS does by default)? Indeed for many projects we need to recuperate a lot of information from those specific roads in order to create them with all the required attributes. Preserving these attributes in the process will have a significant impact on performance (I stopped the process when it was already running more than an 1 hour). Even preserving only the Id and then using later on a FeatureMerger in order to join the original attributes to the remaining roads (after clipping) results in a lengthy processing time (1 hour 19 minutes with FME 2014 sp3 64-
Selected blue area is polygon. Red lines is line.I want to cut the blue area according to the lines and create 3 areas.
The workspace tries to read a CSV from internet and write a feature class in a geodatabase. I am trying to use this workbench with a remote desktop machine, which has all the licenses needed installed. Just a note, the workspace works perfectly well in local when not using the remote machine. It also works when using Open API geodatabase writer or shapefile writer. I though it may be a licensing issue, but then the workspace works when you run it from the beginning to the join and then from the join to the end, instead of running the entire workspace. So I though maybe it was the temporary storage failing, so I changed the temporary files storage folder but the same error appears. BTW, the error is very generic "Error running translation" so I do not know what else to do. I would appreciate any help to solve this issue. Right now I've split the worspace in two, one to read and download the CSV file in the remote machine, and another to read the CSV from the remote machi
Is it possible to set up the spatialRelator, or other transformer, to identify a relationship where the features touch along an edge rather than at a point. I know I can set the spatialRelator to Calculate the Cardinality of Intersections, and then filter the _relationships{} list to remove any elements where _relationships{}.card_line = 0, but that is non-trivial (ie python), and then recalculate the _related_suppliers attribute, but I'm hoping there is a less involved option.
I often use GDAL Warp to minimum sample rasters. I struggle to perform such a resampling in FME and it ends up involving a lot of operations and/or external tools. Does anyone have a tip?
I have a very large conditional I would like to export to text, so far I've tried copy/paste, and can't seem to find any other ways. However it doesn't wok.
Hi; I installed the FME Plug-in SDK for C ++. When compiling the sample solution, 2 files are missing. "fmeplugincapabilities.h" and "ipipe.h". Where are these files located?
Hi, is there a way to find the last OBJECTID in an ESRI FileGeoDatabase and return it? I can do this using SQLCreator > VariableSetter > VariableRetriever > Counter transformers for an Oracle Spatial Database but a FileGeoDatabase is not listed in the Reader Gallery within SQLCreator transformer. My knowledge of FME is pretty basic and would appreciate a 'how to' (if it's possible). Thank you
How to create a Polyline shapefile from CSV/excel data
I would like to know what would be the simplest step to transform the following source: to the following
Thank for the support
I have an Excel Reader and several transformers that follow. I would like the attributes to update when I select a new .xlsx file. Most attributes should be the same but on occasion a file is submitted with one of the column names a little bit different. I was hoping that I would just have to re-connect those. What I have been experiencing is that I have to Update the Reader and then my AttributeManager transformers have to be completely rebuilt. Example:First Run - Fieldnames are CITY, STATE, ZIPSecond Run - Fieldnames are MY CITY, STATE, ZIPCODE Is there an easy way to handle this?
I have been tasked with reviewing another person's FME workbench, which contains a Python start-up script. When I try and run this script (from a PythonCaller transformer) I am receiving the following error i.e. Python Exception <ModuleNotFoundError>: No module named 'fmeutilities' andERROR |Error executing string `#global scope variable definitions / initialisations. The script is trying to import the modules 'fmeutilities' and 'fmeoutput' amongst others, which cannot be found on the server that the workbench is running on. I'm not sure if these need to be added via a localised install of Python or not? I can find an fmeobjects module on my server i.e. in the C:\\Program Files\\FME\\fmeobjects\\python37 folder) but non of the other modules the script is trying to import. I am using FME Desktop v2021.1 and the workspace python compatibility setting is set to Python 2.7 and 3 (see attached screenshots for more information). If someone can assist and
I've played around in Python in an ArcGIS Pro Notebook and like to take that code into FME. Because of organizational reasons, I might not be able to import the modules I need. Is there a way to make the profiles with other transformers? or some other way in Python, maybe?Attached is the code I use in ArcGIS and the testdata used there. Further attached is an example of the profile. The data is organized in drill cores consisting of multiple layers, the thickness is indicated with Laagdikte [mm], the sample data has 3 drill core with 6 layers each. Any kind of help would be greatly appreciated! Thanks! Linda
I want this feature set to be processed per tracknumber. So first all the features with tracknumer 1 (2 features), then with tracknumer 2 (3 features), then trackunmer 3 (2 features).From each subset only one feature has to be selected, based on 2 rulesif all features have 'yes' in their decision attributes, select the one with the most recent dateif one of the features in the subset has a 'no' in one of the decision attributes, select (one of) the no fields, doesn't matter which one.The resulting featureset is seen in knipsel1.png I have tested a Matcher , but then I am stuck more or less. I put the subsets in a list in the Singlematch output port. If I use a Listexploder, I get all the features back in one set. I want to take each feature of the singlematch output port and process the Listelements in a seperate process (in a workspacerunner), but how do I feed one feature (with a list) to the workspacerunner?Other lines of thought are an Inlinequerier attached to
I have some strange behaviour with a Tester on a FME Server Parameter.In a workspace designed to run on server I test if $(FME_ENGINE) has a value. When this passes it initiates a subsection which I don't want to run when I develop the workspace locally.This worked fine in server 2016 but it fails in server 2019. Could reproduce this in a fresh 2019 workbench.FME server log returns:Tester (TestFactory): Tested 1 input feature(s) -- 0 feature(s) passed and 1 feature(s) failedIs this ment to work this way?
How can I convert a sketchup lod4 building model in cityGML format
This seems like a pretty basic question to ask but something we haven't encountered yet with FME Desktop. If we have two datasets and I only want to do a one way synchronization of the attribute values from a new polygon layer to an old polygon layer. How do I do that? I don't want to overwrite the geometry features in the old layer, but I do want to "calculate" the new attribute values over to the new layer. Will just changing the geometry in the writer dialog box from polygon to no_geom and selecting "UPDATE" as writer mode do the trick? It doesn't seem like it would be that simple.
The photo's has a border. I plan to crop these out after the scanning procedure. Any idea how to get this job done ?
Hello, I'm new to FME and want to work out which transformers can be used for this task. I need to query a text field held in a CSV file against a list of values (text) stored in a separate CSV. If these values are present I would like to add a value of '1' to a new field in the CSV. I'm sure this is very basic but would be grateful for any assistance!Chris
I am creating PDF documents with a series of responses, so I first create a multi-line attribute then I pass that through the PDFPageFormatter and onto a PDF writer. The problem is some of the responses run off the page. I am needing to restrict the width of the multi-line attribute using something like a word-wrap function. Any ideas?