Using transformers to modify data.
Recently active
I'm trying to import a text file without headers to FILEGDB while using the SchemaMapper Transformer to rename the columns. I've followed tutorials and articles but am not successful. Columns aren't being renamed and when I run the workspace no features are written.Any tips would be greatly appreciated. Here are screenshots of my parameters and workspace: Schema Map (CSV):SourceAttribute,DestinationAttributecol0,TYPEcol1,STRAPcol2,SECTIONcol3,TOWNSHIPcol4,RANGEcol5,MAP_IDcol6,CONF_FLGcol7,ADDR_1col8,ADDR_2col9,CITYcol10,STATEcol11,ZIPcol12,DOR_CDcol13,SUBcol14,DSCRcol15,PLAT_BKcol16,PLAT_PGcol17,NH_CDcol18,PCT_SOHcol19,INC_FLGcol20,BASE_YRcol21,ASD_VALcol22,SOH_VALcol23,BLD_VALcol24,JST_VALcol25,TAX_DISTcol26,TAX_DISTcol27,TAX DISTcol28,MILL_CDcol29,SQFTcol30,ACREAGE
So I have multiple columns of data that return a yes or no value. I'm really only concerned with the yes value. When the value in the Cut Grass attribute is 'Yes' - i want to replace the Yes with say "cut grass to 100mm"Then i have another Yes value in Remove Flammable materials column and I want to replace the Yes with "remove materials". Is there a multiple string replacer transformer that I can use. I need to do this for approx 13 different attributes. I have read about string replacer or attribute value mapper. But whilst string replacer can replace multiple attributes to the same replacement text it doesn't allow for differing replacement text individual to a column.
I have set up a python script to run a workspace through the FME Python API using FMEWorkspaceRunner. Python is throwing an error called 'FMEException: 1: Failure running workspace "<my path.fmw>" '. I did some troubleshooting by removing the HYPER writer and replacing with a csv writer, then a gdb writer. Both of those writers worked fine. Also, the workspace works fine without going through the API. Something about the HYPER and the API. Any suggestions or known issues? Thank you, TylerFME 2021Python 3.7
I have time-series data collected at 5 minutes intervals and I would like to summarize or average it to the daily interval. How do I go about it in FME? Thanks
Hi all. I'm reading five feature types from Oracle using a Feature Reader and I want to suffix each of the attributes in each feature type with a text string. The reason for this is that I'm running some line on line and line on area transformers and the attributes from each feature type have identical names. The end goal is to generate a dynamic schema (with renamed attributes) on the output tables based on merged feature types from the transformers mentioned above. Is the bulk attribute remover the correct transformer to be using here? Thanks,Michael What have I missed?
Hi, I need to validade if the sum of the numbers is pair or odd. How to make this?
Hi FME Community,I would like to reproject my file into another coordinate system. I am looking for correct coordinate system. ArcMap gives me a correct result. FME gives me wrong coordinate after the reprojector.the pictures show which coordinate systems I used in FME and ArcMap. In addition, my file belongs to Germany. Thanks a lot in advance
I wonder if aynone has expericence with using asyncio in python FME?I've been trying to decorate with some asyncio.coroutine and do some async def, but I cannot grasp the whole picture on how to combine a syncronized FME project with an async library like asyncio.Anyone who would share their knowledge on this topic would be Awsome!Paal
Table1:table1_id:id-element-1.2.1.1.3(xml_id)id-element-1.2.1.1.4(xml_id)id-element-1.2.1.1.5(xml_id) Table2table2_id:id-element2-1.2.1.1.3.1(xml_id)id-element2-1.2.1.1.3.2(xml_id)id-element2-1.2.1.1.4.1(xml_id)id-element2-1.2.1.1.5.1(xml_id) I want this result:Table3:table1_id table2_id ..3 ..3.1 ..3 ..3.2 ..4 ..4.1 ..5 ..5.1 Thanks
Hi I have a polyline dataset with X,Y values but the Z field is empty. I'd like to generate the accumulating distance of each polyline vertex as the Z field. Essentially I'd like to just add distance as the Z value.
I am new to the i3s ESRI format and am wondering if there is a workflow or transformer or set of steps you need to take to convert OBJ to i3s?
similar post which describes better but there is no actual answer where /how to choose where data is saved on server. I dont mean the zip that works already I mean control where the files that user uploads will be saved. Is it possible to control where the Server App download service will download files? (safe.com) Using FME Data Streaming, the user selects one or multiple files to upload, processes those files and it works so the resulting report is downloaded through a zip. My problem is now what if there are multiple runs at the same time? I managed to use the FME_JOB_ID to create subfolders with my logs. for examplein my fme_server_data_reposatory however all files are always uploaded in some weird temporary guid folder.If I use "upload" files in my app, how can I choose where those "temporary files" should be saved? I then want my job submitter to use those folders to look for the data. This is to separate so the result logs for different runs doesnt read the
I don't know if this is already answered somewhere already but couldn't find it.This is in regards to my previous thread about aligning randomly distributed line geometry as per building footprints. Now, I could find GPS traces as point data to align my line geometry as per the points.In the image below: The black line is the approximate required solutionI tried using NeighbourFinder with 3m distance and then MeasureSetter for putting weights. Ideally, I wanted that points towards the center are weighted more than the outer ones. I have attached some sample data for the same. Could someone help me out with any ideas?Thanks.
I have groups of points (2D centroids) that I want to declutter by removing points so that there is a minimum distance between the remaining points whilst retaining the overall "shape" of each group. The PointCloudSimplifier seems to do this, but is there an alternative for 2d objects? If not, is there a way to convert regular ol' points to fancy point clouds? Or is there an another, better, way to achieve the desired result?
I am trying to do an insert to CARTO table. It is mandatory to not drop the table because it is necessary anytime a table is created to make a specific SQL statement. This table just has to have the last insert values so a truncate command is required. I have tried with a SQL Executor with two statements. Truncate and Insert. What SQL Executor does is a truncate for every insert. At the end I have a table with only one row, the last value inserted. Any ideas?
The error I am receiving just says: Error running translation. Thoughts?
perhaps the easiest way ahead is to explain the bigger picture of what I am trying to achieve. I want to produce individual location maps and block plans for about 30,000 properties. Each plan would be centered its dedicated property but show some detail of neighboring houses and roads etc. I am trying to use the clipper (using buffered property land parcels as the clipper) to clip a base map. Obviously the clippers overlap. The way the clipper works, each clipper takes a bite through the base map, and outputs the result. This means that some properties have many bite chunks removed from their data and their output is incomplete. Ive used FME for over 20 years, but I me not a techy programmer. Ideally the Clipper transformer would have tick box option that says 'retain input clippees for multiple processing' or something....... All suggestions welcome. Regards Dave
Hi everyone, Every time I load a reader into Workbench I get an error similar to this "Workspace generation failed. Parameter file was /private/var/folders/tr/rfmmyq590j17jq9ndl8my5lh0000gn/T/FME_1635634267372_8830." Not sure what the issue is any help would be very much appreciated.
I'm trying to find and replace a string from a text file where the first part is constant, then the second part of it could be anything, then the last part is a constant. I want to change some of the 'last part' text, keeping the first part + the second part (which could be anything) remain the same. I hope the highly simplified example below illustrates what I mean: Input text: This is constant Line 1 *This is anything Line 2* This is constant again and will change, Line 3Output result: This is constant Line 1 This is anything Line 2 This Line 3 has now changed Does anyone know how this could be accomplished? The files being fed in have hundreds of occurrences of the last part so the first part + second part (though this could be anything, a wildcard perhaps?) + last part search should ensure only one result. I hope this makes sense and thanks in advance!
Hi everyone, I'm making a workbench where I try to write to a file GDB. To be able to use a fileGBD FME needs to be able to detect a ArcGIS license. We do have arcmap and arcgis pro, but not on the virtual machine that runs FME. Do I need to install arcmap or arcgis pro on this machine to be able to write to file GDB's ? thanks in advance
I am trying to connect to an Esri vector Basemap through the REST Endpoint but am having difficulty setting up my workspace. Has anyone had any success with this as of yet? I was able to do this with a JSON filter on the older raster basemaps, but cannot do the same for the vectors basemaps. I am ultimately trying to pull imagery from a specified extent. Here is the URL of the endpoint in question:https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer?f=json Any assistance with this would be greatly appreciated!
In the JSONTemplater is there a way to cast an array of strings into an array of intergers? https://community.safe.com/s/question/0D54Q000080hA0SSAU/how-to-coerce-attribute-type-for-jsontemplater?t=1636407693748 answers the question for regular attributes but this does not work with fme:get-list-attribute. {"ids": [(fme:get-list-attribute("_list{}.id"))] }returns {"ids": ["1","2","3"]} I would like{"ids": [1,2,3]}
Hi every oneI have a lot of CityGML files and want to edit the roof type for some of them. After that I want to write it again as it was at first:1-Some normal Buildings and some Buildings containing Building parts2-Each address attached to a building3- roof, wall, and ground surfaces attached to each building But this part of connecting child and parent doesn't work. I attached my Fme file. Can somebody help me? It is really frustrating.
Can anyone explain what I need to do in FME to connect to an ArcGIS Pro Layout to create the PDF Map of the Layout. Do I need the FME Data Interop Extension in ArcGIS Pro to do this via Python? Does anyone have examples of this code?
As stated, I am trying to add both geodb_polygon & geodb_attributes readers, and polygon gets added twice. Everything under General is grayed out and I am unable to change 'Allowed Geometries' on one of them to geodb_attribute. Geodb's were created using Arc 10.8.1