Using transformers to modify data.
Recently active
Hey All. I've been looking through the tutorials to set up custom transformers because I wanted a programatic way to define workflows and I was planning on encapsulating/stitching together a Reader, GeometryFilters, and Writer into one custom transformer that took input files, output folder and various other runtime arguments as parameters. The reason for this is to be able to dynamically define the links between workflow steps, whereas now it would require a lot of manual UI work to define a workflow that worked for a file with 1 specific set of features. Is this the right way to be thinking about this problem?
Hello, I'm trying to snap two line feature layers to one of two separate point feature layers. In the line layers there is a owner1 field and a owner2 field, on the point layers there is a ownerid. Hopefully the screen shot below helps clear it up a bit. I tried using the anchoredsnapper using the owner1 and owner2 as the group by and a snapping tolerance of up to 75 feet which is much larger than I should need. I had the line layers going into the candidate and the point layers in as the anchors. I have not used this transformer before so I'm not sure if i'm using it correctly. I'm getting features to snap, but most com out as untouched. I expected that to have far more of the lines snap. Any help of ideas would be appreciated, thanks. field. I want the point features to be what the lines snap to. Either of the owner fields in the line layers can match the owner field in either point layer.
Hello I have a number of connectors which touch a main line but do not split it. I want to be able to select the connectors that are not currently attached to a node and snap their vertex to the closest node point as shown by red dashed lines. I assume I have to form a relationship between the connectors and the main line and then the main line and the node points? Or can it just be undertaken using X,Y co-ordinates and proximity. Any help greatly appreciated.
i would like to ask :i want to snap several small lines to closet point ,i have around 20 point but i have problem with only 2 point .each small lines connects to different lines around each point First point : 6 lines around 1 point around 1.30 mSecond point : 5 lines around 1 point around 1.50 m For First point : i used snapper but i got the problem ,i have to use maximum 1.3 because more than it ,it will snap the second line instead of the first line close to the point . but i need to use value higher than 1.30 ,around 1.5 to snap the second point but it is not working well with the first point , because it snapped wrong lines . i tried neighbor finder with generate list ,i found it gives me alll lines around it and each line that i have around this point small line connects to lone line and it give me each lines connected around this point . i tried alot but i am not sure how could i manage snapping between this 2 points FME Version 2018Thanks in advance for any help
I am trying to write ArcFM data to an ESRI file geodatabase. I have created a workspace that reads a feature class, a relationship class and feature linked annotation and writes it directly to a file geodatabase. There are no transformers. I am trying to preserve the relationship between the feature class and the feature linked annotation. I have added a python script that checks out an ArcFM license so that I can write to an ArcFM object. The annotation writes the data just fine, but the feature class gives me a 'Table not found error'. I also import schema from the source database. The writer also has the Create Table If Need option selected. I have attached the log file. Any help would be appreciated.
Morning,I'm using the SpatialRelator to find what points (a site) relate to lines (sewers) to find the type of sewer is joined to the site.Despite configuring the SpatialRelator to Requestor intersects / touches the Supplier the output is showing no relationships: Can anyone let me know if this is correct? Do I need to apply a tolerance?Both features come from the same GIS system, with the same coordinate system, and that GIS does not allow features not to join each other in the connected network, so there is definitely a relationship between the point and line. Cheers
I have some workbenches authored in FME 2020 which contain a FeatureReader to read a SpatiaLite database. The spatial filter is set to read features that intersect with the initiator (a simple polygon). This was working well in FME 2020. When updating my workbench in 2022, the input format has to be updated from "SPATIALITE (GDAL)" to "SPATIALITE_NATIVE". When the featureReader is updated, the spatial filter no longer works. Is this expected? ===UPDATE:On further testing I found that spatial filter works if I specify a table to read in 'Feature types to read' but does not work if 'Feature types to read' is empty. If this parameter is empty I would expect the reader to read all tables. Is this a bug?
Using the CKANConnector to Create Resource on OpenGov, works great the issue I'm having is how do you reorder the resources ( or place the new resource at the top of the ordering) by default the sequence number is Max + 1 placing the new resource at the bottom of the listing. In this case we have a few hundred Resources under that one dataset.
Hi all, Good morning, The challenge we have is: to put a signature (image) in a particular cell in a table in an MS Word document. We have got something working, but we would like to have your kindly advice. Situation:The signature is read from an AGOL attachment as a blob and with a RasterReplacer and a RasterResampler it is turned into a JPEG (which is visible in the Graphics window). To put this image into the Word document we could use an MSWordStyler where we set Image Source to From Feature.But because of the very specific location of the image in the doc (in this particular cell in this particular table) we use a Python docx solution in a PythonCaller. Question:The solution we have now is to temporarily store the image and then retrieve it to put it on the right location in the doc. And this works... But, but, but wouldn't it be possible - inside the PythonCaller - to read the image "From Feature", like in the MSWordStyler...Any ideas would be highly appreciated. C
counter_Expressions
Hello all, I am trying to merge two different layer data from DWG file. In that one layer is line geometry and another layer is point (text) . Here I wish to connect text to nearer line geometry but I tried different transformers but I could not !FYI - I tried spatialfilter, Neighbourfinder Thank you for advance!
Wondering how to create a hyperlink that will show the blue underlined text value in a field and when you hover mouse over the text you will be able to click on a url. My Writer is to file geodatabase. I have a single url that I want to associate with the text values in a field. Attached is what I have done so far using the AttributeManager Conditional Parameters. I do not want the actual URL to appear in the field.
I have a bunch of CSV spatial data that have no street location allocated to them. I was wondering if FME can import a basemap of google earth or google maps of my location and using an attribute apply a street name to my csv points?
My Reader is Excel. My Writer is ESRI File Geodatabase. I use AttributeManager to rename the fields. How do I add field name aliases to the Writer in this situation?
I am struggling to convert a polyline ( 2d & 3d ) to Esri feature class. I have used a geometry filter + Elevation Extractor + 2d Forcer + Area Builder. However half of the result of Area Builder transformer appears to be incomplete. Any idea as to how to convert all the polylines in to a polygon successfully....? Thank you
Hello, I'm using a string searcher to find "Dates" out of a "Comments" field. I have a column of all matches (Screen shot attached). How can i extract the most recent date out of all matches? Probably would help if I change "/" to another symbol.
I need to scan an existing but unpopulated (i.e. no data) file geodatabase (GDB) and determine which feature classes have attributes whose names match a given regular expression. I then need essentially to extract the pairs of feature_class_name/matching_attribute_name and in some way to use those pairs subsequently in the translation. So:What transformer would I use to scan an unpopulated GDB for attribute names matching a regex?How best to configure and to capture information from that transformer to use subsequently in translation?[Related to the beginnings of a solution idea in my head ...] If I use, say, a FeatureReader to extract schema features from an unpopulated GDB with Ignore Relationship Info unchecked, will the schema features carry format attributes (similar to geodb_feature_has_relationships on data features) indicating feature classes and attributes that participate in relationships? Thanks, all, for your ideas on this.
Hi, I have a raster in GRAY8 that have cells ranging from 0 to 255. Additionaly I have a translation table with values as such: T pixelvalue≤ -22 0-21,92 1-21,84 2-21,76 3-21,69 4-21,61 5-21,53 6-21,45 7-21,37 8etc...I would like to replace every pixel value with its corresponding value in the T column. I have tried to do the following:1) Trim the "-" sign2) Round the attribute in the T column to remove the decimal values. My thought after that was to use the attributecreator with:if(A[0]=@Value(pixelvalue),@Value(T),And then the aggregator and merge them with concatenation. Then finish it of with brackets to something like this with nested if statements:if(A[0]==0,22,if(A[0]==1,22,if(A[0]==3,22,...And feed it into the RasterExpressionEvaluator. This workflow does not seem to work since I can't get the RasterExpressionEvaluator to accept my nested if statements and write many different colors. Any suggestions on how to achieve what I am after? Color my raster based on the matching valu
I have JSON files that I am reading and using GeometryFilter to create points. GeometryFilter is looking for the coordinates as long, lat. Some of the points in the JSON input are incorecly entered as lat,long. Is there are way to read the JSON coordinates and switch the coordinates to long, lat if they are incorrectly set to lat,long? For example:CHANGE FROM"geometry":{ "type":"Point", "coordinates":[ 29.32991754843333 , -82.16997782090549]TO"geometry":{ "type":"Point", "coordinates":[ -82.16997782090549, 29.32991754843333 ]Thanks,David
Value in Source Data:DWGNAME,OLDHANDLE,NEWHANDLE,X1,Y1,TYPE,NEW_IDBDCV.dwg,3F7,16354,2181887.040872167,12004078.93869873,ROUTE,1233345The String replacer is defined like $(DrawPath)@Value(DWGNAME)Output from transformer:If DrawPath Parameter=C:\\ClientMaps\\C:\\ClientMaps DEFAULT_MACRO FME_DATA_REPOSITORYBDCV.dwgif DrawPath Parameter=C:\\ClientMapsC:\\ClientMapsBDCV.dwg I need the output to be C\\ClientMaps\\BDCV.dwgThanks
I'm using the HTMLReportGenerator to display a map with points. In the "Label Attribute" setting I've combined several attributes. I want the points that contains a certain word to be in a certain color. In my example I have two different words that should determine the color, "KFF" and "SBF". The label attribute is a long string containing these and some other values ("Example: {3553} KFF). Is there a way you can achieve this with StringReplacer? If feature.properties.name contains KFF than set the color to red else set the color to green.
I want to copy files from one folder to another in BIM360/ACC with AutodeskBIM360DocsConnector, and in BIM360/ACC there is a Default Attribute column for Description. And when I copy them in FME the Description does not come with. In AutodeskBIM360DocsConnector there is no option in Attributes to Add called Description. Any suggestions for how I can get the Description in the copy process? 🙂
Im trying to change the crs of a shapefile. It needs to be in the same as below:When using the Reprojector transformer Im getting an error Transformer parameter:After running the workspace Im getting the following error:Reprojector (TeeFactory): Reprojector: Reproject: Could not reproject the geometry of the preceding feature: Unknown coordinate system 'EPSG4326' specified - abortingReprojector: Reproject: Could not reproject the geometry of the preceding feature: Unknown coordinate system 'EPSG4326' specified - abortingTranslation FAILED with 4803 error(s) and 2 warning(s) (0 feature(s) output) When using the EsriReprojector transformer the workspace runs succesful but the srs is as follows: Question: Is there something wrong with my FME? Or am I using the wrong parameters. Thanks.
I'm processing a point feature class (21 million approx points) I'm fanning them out into shapefiles, smaller than the 2G limit. It produces shapefiles, missing the .prj file. Any thoughts on why ?
Hello, I would like to ask how to solve this problem,that there are several databases. In line, polygon, point and text formats. The question is whether it is possible to create an excel file that contains all database names, as well as what attributes are there as well as attribute names and alias names. In addition to this, what are the results in the attribute table and the corresponding domain names.And export it to xlsThanks in advance