Using transformers to modify data.
Recently active
I have a script that strips a bunch of feature layers out into a GDB database that is then zipped. I then made a Creator that attached to ftpCaller. I set in the properties 'create at end' to be yes. This seems to work, however i notice it seems to still be doing the upload while other features are writing to the gdb. how can i say that i want to run the creator and the ftpcaller after every other feature has been written to the gdb? thanks
How would I go about copying the name of a column and using it as an attribute?
What is the best way to join 2 ArcSDE layers and then add a whereclause on the joined data?
Working with ArcGIS SDE Enterprise and feature classes. I am looking to create a back up of feature classes every month. The gdb changes every month and feature classes get added. Is there a way to automatically add readers based on those additions?
Hello, I am looking to convert RGBI (four bands) tiff files into JPEG2000 format and maintain the RGBI data. I cannot seem to work out how to maintain the infrared band as the write format seems to allow for that.
Hello please advice. How do I view these attributes? They are not visible in the workspace. I only see them in the data inspector. Thank you
Is there a work instruction to sort a text file then export as a Excel? I have attached my current workbench and file as ZIP. I need to sort into 0-500, 501-2000, 2001+ sections.
Hi All,I am just starting with FME and so far it is amazing! I downloaded a CityGML file for the sidewalks of NYC (see attached) and want to export it to Unreal Engine. ( I already did the same with another cityGML file and it worked great) Yet with this particular model (it is 800 mb, so I have to use google drive link here: https://drive.google.com/drive/folders/1Ov3Y_y2IVs_MPiazpZO1o2xNnMWiTEju?usp=sharing ) it exports empty file and the geomerty is not showing up in FME Workbench, while I can see it in FME Inspector. At this point I am pretty desperate and cannot find any solution on how to address this..Please let me know if you know how to resolve it! I really appreciate your time and help!
Hey - I have to transform a lot of DWG Files into a custom coordiante system. The transformation works, but I have a problem doing so when a file has external references (in this case the reference points to another DWG in the same directory, which therefore has to get transformed as well). Following my first thought, I tried to transform all files but leave the insert points for the references untouched, but this didn't work. Even when discarding the RealDWG reader Option "Read External References" or trying to filter out everything that has the value "autocad_xref" for autocad_entity with a test filter and letting these objects bypass the transformation process in my workbench, I'm getting the same result: The insert points for the references are transformed too and therefore seem to be shifted double the distance in comparison to other objects. Do you have any advices for me how to solve this problem? Thanks a lot! :-)
Hello! I need to open a raster and use it as a reference to create a larger one (a few inches bigger on the height of the initial image). This procedure must be done for a set of images of varying sizes and not georeferenced.Later on combining the two files, the original and the other that was created (I thought use the RasterMosaicker), I would have an additional blank area at the bottom of the image where I could add a text box. I'm having trouble with:- creating larger images that have as reference a set of images of varying sizes- adding the text box with message in the fixed position (the bottom border that were added in each resulting image). Does anyone know any transformer or transformer set to solve this problem? Thanks for help!
Hi, i'm trying to use the to rename the attributes. What i want to to is replace a part of the attributes with the values of a string but nothing seems to happen.If i use a regular string (f.e. "_1987") it works but if i use the expression @Value(_listJ{0}.J) nothing happens. Is this allowed? can i use a list in the field string?
I have a SHAPE-dataset with lines that I turn into polygones with the bufferer. Some of the lines are on top of each other, but that was never a problem so far. But now I have a new bunch of lines where for just a few, the bufferer only puts out one of the overlaying buffered areas insead of both. This only happens with about 10 lines while it works fine for the other 300.So far a could not find a common trait for those where it doesn't work compared where it does work.The lines are normal lines with no self-intersections (according to the GeometryValidator)Does anybody have a clue, why this might be happending?Thank you!
Here are some examples:original data497.2594497509648497.3865495.31495.29expected result:497.2497.4495.4495.2And I have another case where I want to round my list of numbers to the closest of four options: integer, ending with .25 or ending with .5 or ending with .75. my examples:original data497.2594497509648497.8865495.77495.45expected result:497.25498495.75495.5thank you.
I'm using the new SchemaScanner before writing shapefiles. Until now, I was using a User Parameter to specify the Dataset (destination folder) of the shapefile. I'd like to switch to an attribute to specify the path or just '$(DIR_output_folder)/something-else' but I'm getting an error: FeatureWriter_4 (WriterFactory): MULTI_WRITER: No dataset was specified for MULTI_WRITER_DATASET or FeatureWriter_4_0_DATASET or SHAPEFILE_DATASETSchemaScanner_3_Output_-1_493_Player (RecorderFactory): MULTI_WRITER: No dataset was specified for MULTI_WRITER_DATASET or FeatureWriter_4_0_DATASET or SHAPEFILE_DATASETTranslation FAILED with 2 error(s) and 0 warning(s) (0 feature(s) output) It's working fine without the SchemaScanner, but not with it. How can I set up the dataset properly? Is it an encoding issue?
Is it possible to set up a reader to have a user parameter? I want the user to be able to input a shapefile of their choice but I can't seem to find an option to have a user parameter in a reader.
I have a problem with the attributetransposer in a workspace that has a couple of httpcallers upstream. In case all the httpcallers get a rejected call (handled with an emailer) no input is going into the AttributeTransposer. I then see the following error showing in the log:AttributeTransposer Input Input Collector (TeeFactory): Cloned 0 input feature(s) into 0 output feature(s)AttributeTransposer_Input1509999976 Input Splitter (TeeFactory): Cloned 0 input feature(s) into 0 output feature(s)AttributeTransposer_ParameterFetcher (TeeFactory): Cloned 0 input feature(s) into 0 output feature(s)Python Exception <TypeError>: Input must be a string or unicode.Traceback (most recent call last): File "<string>", line 86, in closeTypeError: object of type 'NoneType' has no len()During handling of the above exception, another exception occurred:Traceback (most recent call last): File "<string>", line 99, in close File "<string>", line 24, in throwTypeError: Input must
Currently I run a testfilter that checks the name of a fme_feature_type which has layer names from the drawing. So basically my testfilter is full of if statements like "if @value(fme_feature_type) LIKE %P-STM-MH" and output each if statement to its own output port (Ie 'Manholes' or 'Storm Mainline'). from there i run an attribute creator on each output. the attributecreator looks at the field_name and i add it to a field in my shapefile but named differently. So if field_name is STM-MH its added as an attribute in my shapefile as 'Storm Manhole'Is there a more efficient way of doing this vs what im doing? I feel like I'll have a lot of layers and there for a lot of outputs where I might need to run 10+ attribute creators.If theres a better way of doing this I'd love to know it. Thanks
The workspaces receives a JSON message with information about the columns & geometry (where the user is interested in). We use the geometry in the FeatureReader (Spatial Filter) that is working fine, but the user only wants the attributes: "test1", "test2" in this example. How can i filter the feature class only to: "test1" & "test2". And how can i make this dynamic because it is every time different (attributes)? The output is an excel file. thank you.
I have a simple FME 2021.2.1.0 workspace which isn't very usable - its just for giving a simple example: My custom transformer looks like this: I am trying to create the custom transformer so that it takes one user parameter from the main workspace and use it for the bufferer. I would like the Anchored Snapper to use a fraction (10% as an example) of the my_value user parameter as the Snapping Distance. The problem is that the Anchored Snapper can only use a hard coded value or a user parameter as input. In the custom transformer I can create a "Number" user parameter but I cannot assign it the my_value user parameter and multiply it by 0.1.I can create a scripted python user parameter but when I use FME_MacroValues['my_value'] to return a new value FME_MacroValues['my_value'] just returns "$(my_value)" (I guess it needs to be dereferenced somehow?). I can create another user parameter in the main workspace and give it to the custom transformer,
Hello, for a 3D visualization I would like to assign contaminant data from soil samples from varying intervals (e. g. 0,5 m) into a smaller interval of choice, e. g. 0,1 m. An example of my input/original data and the desired output with a densification interval of 0,1 m is shown here:In our recent example, we have around 350 samples. By now, this is easy to solve with Excel formulas, but takes some time to process . As I am quite new to FME but also in terms of a future automation – is there a quick to do this in FME? Or would a Python script be more practicable in this case? Thanks for any hints and suggestions! Kind regardsAlex
Hi all,I'm having a bottle-neck on a workbench due to the use of the transformer "NeighborFinder". This operation only is taking around 18 hours. The goal is to find around 200K points to the nearest Polygon (having around 10K). Points that I want are quite near, not touching some times. Also, there are some points that are farther and I don't want to have them on the "MatchedBase" output (red ones): These are the transformer parameters: Also, attributes from Polygon need to be transferred.I don't see the option to make the search by Groups, since I cannot foresee which points belongs to certain Polygons beforehand. Also, reducing the number of features is not possible. Any suggestion?Something that could be faster on that search?Thanks!Juanma,
I am developing a leaflet-based web app. I would like to pass the geojson drawn by a user in leaflet through the FME rest API to my workspace in FME server. The workspace contains a geojson reader, topologycalculator and geojson writer. But so far, the geojson reader accepts only a file or URL. Is it possible to send it along with URL as a parameter without the need to create a file. Something likeURL Example :http://desktop-f25rpfv:8080/fmerest/v3/transformations/submit/GeneralizationPredict/networkcalculator.fmw?data = {geojson object}
Hey folks, I am brand new to FME script writing. I have for example, a DWG with sewer, water and electrical lines. The layer names are usually all the same except with unique numbers. eg. HET-32434-WATor HET-23422-WAT-SERor HET-232345-ELECetc I am trying to output each of the categories into their own shape files so I can simply point my script to a dwg and run it. I have no problem doing this manually by adding the DWG into my workspace where it asks me what layers to load into the workspace and I can point those to an attribute creator and output a shapefile. That works fine, I am just trying to figure out how I can have it look in a DWG drawing I specify for the layer names like %WAT% to output all my waterlines into a shapefile. Hopefully I made sense here. Thanks
Hello, To automate some of my tasks using FME, I'm currently trying to make FME download some .7z files and extract their content (composed of subfolders, txt files, pdf and shp). I managed to make FME download the archive and store it into a temporary folder just as I wanted but know I want to make FME extract the content of the archive so I can then sort it's content (I want to go inside the subfolders and only extract shp files, then work on them). I've already tried to use some transformers like "ZipExtractor" or "Unzipper" but they don't seem to make what I'd like... If someone know a way to extract and sort zipfile's content using FME please help me ! Regards,Andy METAYER
FME Desktop 2022: “AttributeCreator” fails to copy a field into another using the arithmetic editor, In the screenshot below, I wanted to copy the “fme_text_string” field to the “F1” but appears not work except for the first record. What could be the issue here? The data and workbench are attached