Using transformers to modify data.
Recently active
I have tried to use the polygon path segmenter to get the number of line segments in a set of polygons. I can see that it is creating a segment attribute when I go into the attribute properties on the inspector however I can't seem to get these attributes to come through into my routine. I have tried exposing them in different ways but to no avail. Is anyone able to help please? I'm sure it must be something simple I am missing!Thanks
In a directory I have some textfiles and their names contain a date (xy... 2017-12-13.txt). Each month there's a new file. I want to read only the newest file, but I don't want to change the name in the reader each month. So my idea is to read them all (or at least one record to get the fme_basename), compare the dates and then read only the newest file.So I tried various approaches (first extracting the date out of the filename, then use Aggregator, Sorter, VariableSetter...) but I don't manage to compare the dates of the features as I can't see a way to set the initial value...Any ideas?
Hello All, I am trying to loop through a feature class with 30+ fields, each field having terrible quality data filled with duplicate white space. I am trying to find a way to loop through the feature class, checking each field and then replacing the duplicate white space with single white space. I can do this manually, one at a time, with 30+ StringSearchers->StringReplacers. However, I am wondering if anyone has found a way to build a custom function to loop through each field and replace values? I would prefer to call a custom transformer and loop through all fields than build 30+ groups of two transformers. Currently in the string replacer I only see the option to do one string at a time.
Hello all,I have a series of point features that I need to convert to line features, but running perpendicular within a layer that contains parallel polyline features.I want to convert the green dots in the first image below, into the green lines in the second image. There is no data relationship between the existing point and polyline features apart from their spatial proximity.Can anybody recommend a sensible way of doing this?Thanks and stay safe (and sane),Robin
Hi I'm trying to convert our DTM tiffs to a more weboptimized format.I'm thinking of jpg, png, ecw, jpeg2000. When I try to convert them to gray8 I loose the numbers behind the comma, because the rasterinterpretationcoercer converts from float to integer.That's just not an option. I also tried this: The numericrasterizer gives an error:NumericRasterizer (VectorToRasterFactory): No values were specified for either both WIDTH and HEIGHT or both X_CELL_SIZE and Y_CELL_SIZE. When any of WIDTH, HEIGHT, X_CELL_SIZE, Y_CELL_SIZE, INTERPRETATION_TYPE, BACKGROUND_COLOR, BACKGROUND_ALPHA, BACKGROUND_VALUE, or GROUND_EXTENTS is specified, values for either both WIDTH and HEIGHT or both X_CELL_SIZE and Y_CELL_SIZE must be provided.Also tried the propertyextractor in serie with the rastercellcoercer and kept the attributes. Then I get all rejected in the numericrasterizer.Also this takes way to long. I have a lot of DTM tiles. Can somebody point me into the right direction?I've fou
Hi, I'd like to know how to correctly write geometry called MultiLineString and MultiPolygon using GML writer with known Application Schema and validate Output File set to Yes. I keep getting FAILED message 'Surface' is not allowed for content model '(MultiPolygon)'and'LineString' is not allowed for content model '(MultiLineString)' PS. Prefer Polygons over Surfaces is also set to Yes.
I am trying to build a workbench based on Dimitri's rooftop building smart recognition workbench.My first step is to use a decent resolution raster file from my GIS software I use. Problem is, it is not georeferenced, but does have a text file with the extension RCT or raster coordinate text. It does not have column names, but I was able to use, with and expert's help, a CSV reader, since it is always space delimited as X left, Y bottom, X right, Y top. But I am getting an error that the @GeoreferenceRaster is failingon the first attribute coordinate, X Upper Left. I have attached a copy of the workbench, PNG file, and RCT coordinate text file. Please note that the raster has an extension of JPG, but is really a PNG.
I have an Address: "198 whitten farm Apt 3". I would like to count the number of blank spaces in the address. if it has more than 3 blank spaces I want to eliminate whatever is there after the 3 blank spaces.
When there are duplicates present in the Update Detection Key Attributes, FME sometimes detects that there are two updated records, when in fact there are no changes. So it will report that 1 change as originalValue = apples, revisedValue = pears and a second change as originvalValue = pears, revisedValue = appleswhere all other fields are identical, i.e. if you put them through a matcher you would get no unmatched recordsIn these scenarios how is the comparison controlled? Does it relate to feature order? In an ideal world, a key value would be unique, but the world is less than ideal.
Hi, I have a FileGeodatabase and want to change some Z-Values from Line and Area Features (with all kinds of Geometry).For Example i just want to set all Z-Values which include 99 or 0.153 to 0 and keep all other Vertex Z-Values.The Elevation Extractor gave me only the first Z-Vertex-Value to manipulate. The 3D- Forcer changes every Z-Value. The Offsetter is not the right one either.I tried the Coordinateextractor an Coordinatereplacer but i dont know how to put my changes to every list element. I dont want to destroy the geometry (with Chopper or something else). I just want to add these simple changes for the height.My further suggestion are maybe some FME-Feature-Functions tricks with Expressionevaluator or a Python Skript?Can you help me or give me hint? Thank you Richard
Hello,I'm new in FME and I want to put, in a polygon, the minimum value (from a raster) in this polygon inside this polygon. I use :"RasterToPolygonCoercer" to extract data,"AreaOnAreaOverlayer" to transfert data to polygon.But I cannot think how to do this.
Hi.I'm trying to write features to some MS/SQL tables, and my translation is apparently successful, and the log file shows lots of features written. No errors are reported.However, the database tables in question are completely empty !I have a few constraints on my tables, and some fields which may not be NULL, so that may be the cause, although I should have handled that. But where do I see what the actual problem is, since FME doesn't include any error message from the database in the log file at all.Cheers.
Hi, I'd like to create an empty folder in zip file that my files are going to be written. zip file location is defined as published parameter and used as prefixed parameter of every writers destination parameter, e.g. $(zipfile_location)\\lines.gml AND $(zipfile_location)\\data.dwg) Cheers, Želimir
could i save inspector as file that i can open it anytime ,i want to show the result without running again the workspace,if yes, what is the method
I am receiving geometries from MapInfo .TAB-files. They are then to be passed on to a server in a XML-file. I parse the geometries using GeometryExtractor -> GML 3.1.1. No problem - the GeometryValidator -> DonutBuilder -> GeometryExtractor seems rock solid. Today I encountered this geometry which I can't seem to pass on. It fails OGC and GeometryValidator fails to repair it. For now my workaround is to add a small buffer, but does anybody have a better method?Attached is the geometry as TAB_file.
Hi community,I have something very simple so it seems, but I can't figure out how it's done. I have area features A and area features B. I would like to calculate an attribute per feature from A which contains the calculated from the overlapping feature B. This should be very simple and it normally is. I would use the Clipper en calcultate the areas comming from the inside port. Or I would use the AreaOnAreaOverlayer and test the number of overlaps > 1.The problem is that within A features can have overlap. Features B don't overlap themselves. So some area's of B have to be calculated per overlapping feature A. The Clipper doesn't give me overlapping areas and in the AreaOnAreaOverlayer I can not distinct A from B. Anyone any idea how to solve this? Greetings,Arno
I found this list of most used Transformers (https://knowledge.safe.com/questions/2367/most-used-transformer.html ) but is there a list of most used Formats also?
Hi,I am in new in Json file formatting and I have a flat file that contained data to be used in HTTPCaller to an API that need structured Json formatting file. I am struggling with converting my flat file into structured Json format. I tried many options and can't get it to work. I have attached my input and desired output filesThanks for your assistance.
Hi FME python experts, I'm working on a problem where I have 3D objects returned from a python library. Thanks to @david_r and @gerhardatsafe's help I've been able to successfully port the geometries I need in most cases to FME Geoms which I'm super happy about. Now I am trying to take it a step further and create the appearances - for non-textured appearances I've got a fairly decent working method, however, for textures the only way I've been able to get it to work is to dump the textures to files (JPEG/PNG) and then read them back in with FME before creating textured appearances and applying them with the SharedItemSetter. As you might imagine this is a little slower than I would like given the data are already in memory.The images seem to be in the form of "PIL.image" ("C:\\Program Files\\FME\\python\\python37\\PIL\\Image.py") Has anyone attempted this? Any hints on how I might be able to do it? It seems like the fmeobjects.FMETexture c
Hi, we are using fmeserver 2019 1.3.1. After starting the backup the server is generating files in the temp directory in a compressing way. So the temp directory grows up to 2.3 GB till finishing the backup. How can the fmeserver directly does the job on an SHARED_RESSOUCE backup without caching files in a temp directory? Best regards, Matthias
Is their any document or link which can help us understand intergraph gtech electric data model.
I have autocad files i am pulling some polyline entities from. i am currently using the PointVertexReplacer to extract the coordinates of the polylines.The problem i am having is that i began expecting 3 vertices; (a begin, a vertex, and an end). I encountered a line with 4 vertices. Previously i just iterated with AttributeFilter through 0,1,2 as these 3 vertices.But because 1 line has 4 vertices the 3rd vertex is not the end. (it would be nice if there were a begin/end attribute that could be grabbed.)I am trying to figure out how to filter these prior to this and can only come up with using the feature information but cannot expose this information. I can see the number of vertices value but it is not exposable. I assume i could do a count but it seems that would require quite a few more transformers.Can anyone suggest how to accomplish this?
I have turned my roadnetwork in a LRS (linear referenced road network) with measures. Now I have a table with roadaccidents without coordinates, but with the measures corresponding to the LRS (e.g. km 12.90). Is it possible to locate these locations on the map, using the LRS, and thus find the coordinates? The best solution I've found so far is to extract the nearest measure values, but these dont get close enough.
HiA colleague is making maps in QGIS and is using an Open Street Map WMS layer to provide the background mapping. However, the exported map does not match what is displayed in the QGIS project. It appears to be a different zoom and the labels are hard to read.I'm looking at using FME to export the area of interest to a raster file. I'm using the WMS reader as my input and set a search envelope. But the exported image is not at the required zoom level.Is it possible to change this behaviour?If required, the WMS feed I am using is https://ows.terrestris.de/osm/service? and the layer is OSM-WMSThe bounds are:Min x: -59.9741977894788221Min y: -14.7534977323780918Max x: -54.6051733096797207Max y: -11.1201081643435327EPSG 4326FME version: 2020.0.2.1 (20200511 - Build 20238 - WIN64)Many thanks.
Hello, I am having some issues getting the proper format of a table I am trying to transpose. I attempted a couple of methods using the FMEHub AttributeTransposer and did not get the required results. If you see it is almost a half transpose, I need to get the records in the first sheet to line up like the records in the second sheet in the attached spreadsheet . I have hit a roadblock.