Using transformers to modify data.
Recently active
I have two polygons which overlaps and I use transformers to have the intersection (I tried Clipper, AreaOnareaoverlayer, spatialrelator and intersection) . So, it created a new polygon (the overlap of the two polygon.) The problem is that this new polygon belongs (in the attribute table) to one of the two polygon (The feature name of the new polygon is the name of one of the polygon) but I would like the name of the both polygon even if it created two overlap (the same but one with the name of the first polygon and one witch the second). Thanks you
Hi, I have to transform a series of points to a line consisting of cubic Bezier curves. I couldn't find a function to do that in existing transformers or the Python API of FME Objects. The Generalizer (NURBfit algotirhm) creates a spline curve, but it's not exact cubic Bezier curves. The expected line has to pass through the both ends of each 3 segments. So, I wrote the following script. Is this the "re-invention of the wheel"? If you know an existing function (transformer or Python function) that creates cubic Bezier curves based on control points, please let me know. ----- import fmeobjects class CubicBezierCurveReplacer(object): def __init__(self): self.set_coefficients(32) def set_coefficients(self, n): self.n = n r = 1.0 / float(self.n) s = range(0, self.n) self.k0 = [(1.0 - (r * m))**3 for m in s] self.k1 = [3.0 * (r * m) * (1.0
is there any Geometry smoothing function in FME needs polygons edges smooth
Hello, I have some polygons which overlaps and every polygon is a featureI succeeded to have in attributes the name of polygons which intersect the feature (the 1st polygon).Now, I would like to know how can I have the name of the polygon which intersects the most the first polygon. Thank you!
Hi everyone, I have a XML question.I got an XML structure from filegdb_polygon via GeometryExtractor (GML 3.2.1) and XMLFragmenter:<gml:Surface gml:id="ID_1" srsName="MysrsName" srsDimension="2"><gml:patches><gml:PolygonPatch><gml:exterior><gml:LinearRing><gml:posList>"list of xy coordinates"</gml:posList></gml:LinearRing></gml:exterior></gml:PolygonPatch></gml:patches></gml:Surface>However, my XML structure should look like this:<gml:MultiSurface srsName="MysrsName" gml:id="ID_1"> <gml:surfaceMember> <gml:Polygon srsName="MysrsName" gml:id="ID_2"> <gml:exterior> <gml:LinearRing> <gml:posList srsDimension="2" count="####">"list of xy coordinates"</gml:posList> </gml:LinearRing> </gml:exterior> </gml:Polygon> </gml:surfaceMember></gml:MultiSurface>I used XMLUpdater to delete the attribute/gml:Surface/@srs
Sorry, I'm new to FME and don't know which transformer to use. I am working on an FME project that is currently getting an XML response using an HTTPCaller. The Output of the HTTPCaller has many "attributes" and then the Output is passed to an XML Fragmenter. The XML Fragmenter output is the same but has one new attribute pulled from the XML response. It then is passed to an XMLQueryExtractor which then adds another attribute. I need to get the value of a tag and I'm wondering if I should add an XML Flattener or Fragmenter or perform this in the XML Query Extractor or some other transformer.an example of what I need is the value in <sub3> in the following XML example and save it to a variable for later use. <Root><sub1><sub2><sub3>value</sub3></sub2></sub1></root> Thank you
I am trying to clip a point cloud using the values of a csv using the reader, but the PointCloudFilter transformer does not accept the @Value() field. I am at a loss now. Any help would be great.
I have an OBJ file that I am converting to a Multipatch in an Esri FileGeodatabase. The process mostly works but the colored mesh in the georeferenced OBJ file appears as a white mesh, with no color, in ArcGIS Pro. How can I preserve the detailed colors?
I am running a workbench to split transactional work orders onto different worksheets in an .xlsx writer using FME 32-bit 2021.1.6 We have hit the 2gb memory ceiling due to the number of rows, as a work around I have installed the 64-bit version, but now i find where before it took a few minutes to write out the .xlsx output in 32bit the 64-bit seems to slowly parse through the feautres as it write them out, its much slower over an hour and I stopped the tranlsation. Is the performance really so different in 64-bit?
I have this workbench in which I combine multiple CSV-files and write out to one Excel-file. the file contains aprox. 190K rows. In the previous FME version (2020.x) I used this workbench it took a few minutes. Now the XLSXW is taking hours to write the output. Did something change in the way the XLSXW writer functions? I did a test by writing to a CSV file, this took seconds to complete, so clearly the problem lies with the Excel writer. Hopefully someone knows about a fix. Cheers, Jaap
Hello, can we convert .shp files, to aixm (.xml) ? and how to convert them, thanks
I followed the steps in Example 2 here to switch my table columns to rows: https://community.safe.com/s/article/transpose-a-table-using-fmeIs there a way to keep the original column order as the new row order after the table is transposed?Using the counter/sorter, as outlined in the example does not give me the desired order of rows.
Hi, The GoogleBigQueryConnector return the error of Python Exception. I'm not too sure what should I do to resolve this exception. I'm using the new version of FME 2022.1. Previously this transformer is working well in the FME 2020.Message error detail:Python Exception <ImportError>: cannot import name 'decodeWWJDString' from 'fmegeneral.fmeutil' (/Library/FME/2022.1/python/python39/fmegeneral/fmeutil.pyc)PythonFactory failed to load python symbol `fmepy_google_bigquery.connector.GoogleBigQueryConnector'Factory proxy not initializedGoogleBigQueryConnector_CALLER (PythonFactory): PythonFactory failed to process feature Can someone help me on this please. Thanks
Is it possible to move files to an error directory when a FeatureWriter fails? Unfortunately, I have not found a way so far. Is there any other way than to use an FMEServer Automation that triggers another FME Workbench in case of an error, which only moves files to a directory? Is it possible to achieve this with only one FME Workbench?
I am using the RasterDEMGenerator transformer to create a digital elevation model. The resulting raster cells cover the entire bounding box of my point cloud. So far so good. What I want to achieve is, that such raster cells, that do not cover any point of the point cloud will have a "NoData" value. I have tried all of the available interpolation methods, but non eof them seemed to work in this respect. Any ideas? Thank you
Hi,FME seems to display a single point from Oracle at the wrong location. I have a simple workspace with a SQLCreator with the following statement:select SDO_GEOMETRY('POINT(163170.864 501575.234)',28992) from dual I would like see the location in the visual preview so I have a background map which is a WMS in the same coordinate system: http://www.openbasiskaart.nl/mapcache/? with the layers {Openbasiskaart}|{osm}. The point is shown at the wrong location somewhere in the middle of the sea. When I add a bufferer with 200 meters it is shown at the correct location. Is this a bug? I have attached my workspace (FME 2021.1.3)
If I write to SDF the 'Has Elevation' of the schema seems to be on 'false' by default. My data has geometry with Z values, wich are visible if i open the SDF file in the data inspector. But the SDF schema stays on 'Has Elevation = False', wich means the Z value isn't shown in autocad map3D. How can I change this?
Hi, I have 2 global counters with the same domain in my workspace (default parameters), but each of them is producing an individual sequence. As per documentation, this should produce for example 0-9 and 10-19, but I'm getting 0-9 from each counter... see the screen attached... am I doing something wrong?
Hi,I'm having this error when I try to write the values in postgres through fme tool. The attribute has 6 possible values (0-6). what is the best way of solving this problems.Value of attribute 'n_lane' could not be converted to type 'int2'. Feature will be logged and skipped.And then at last the tool throws an error of insufficient memory available.I mean I really don't understand how to solve this issue..Please someone help me out with this.I'm attaching a photo so that you can have a clear vision of this error.
I have an 8-bit mixed raster, where there are numeric values from 0 to 100, and then certain values over 200 are classified, 200 = water, 205 = snow, etc.Unfortunately there is a bit of noise in the data where there are single pixels coded as water (200). I would like to remove these individual pixels, replacing them with either a mean or majority filter (of 0-100 values only), without affecting any other pixel including 200 value pixels that are contiguous (so a straight convolution of the raster is out).The closest thing I can find is the Erdas Imagine Clump (to identify contiguous pixel groups) and either Sieve or Eliminate to replace groups smaller than a given threshold. https://hexagongeospatial.fluidtopics.net/reader/fH0o7KrMKUViXGUeoilQuA/cAzM7j6Akx80Fj5zsuhRFQ Any ideas of an efficient way to do this in FME? I have approximate 275GB of data to process.
First, I have straight lines that are connected, then i extract end points and mid point (which I offset in direction of Z axis). From there I use these points to manually draw arc that connects these points. I want to know is there a possibility to automate this process. These lines are representation of wires between poles. I'm new to this software and don't have much of knowledge so any help would be appreciated.
I'm working with the ChartGenerator Transformer to create a bar chart and have two questions:1) How can I change the bar colour so each bar is a different color? I did find a post to change the RGB to (0-1,0-1,0-1), but my entry is still pink, so I can't use that.2) How can I add a label showing the number of items at the top of each bar? The PowerPiontStyler has an option for "Label Data", but I don't see one within the ChartGenerator. Currently, my table is shown like this:Thanks in advance!
In the training examples for converting from ifc to citygml, the site information is not taken into account.How can I keep the site information after converting it to citygml?in another meaningIn the attached file there is a structure in .ifc format and I want to create a writer on FME DESKTOP in CITYGML format. How can I transfer the location information to the CITYGML writer without lossing any of it?
Hello! I have two data set that I want to join spatially and not by attributes because there are no common fields. I want to merge (for example a layer of cities and a layer of population (I want to merge to know how many people they are per city). I tried spatialrelator and featureMerger but I failed Thank you for helping
Hi altruist, I have a set of data MITAB data in LL-GDA94. Which transformer should I use if I want to transform it into GDA94?