Using transformers to modify data.
Recently active
Hi, I have 2 layers with points features in shp. I want to create a tool that finds the nearest point from another layer of points only if the layer as the matching attributes and then snap to the nearest point, regardless of the distance, only the one that is closer to it and has the matching attributes. Example: 2 points with a oak attribute as sort. Thanks ahead! Isabelle
I was wondering, if there is a difference, how the two things work?I create Lists in a Spatialrelator, and I need to sum over some of their values. As I have a lot of data, I want to remove the lists after summation, and i think feature.removeAttribute('_relationship{}') does the trick. However if I add an AttributeRemover afterwards, under Lists it shows me the _relationship{} List, so it wasn't removed by feature.removeAttribute() ?
Hi. I write data to an excel file using an excel template. I also make use of a Python script to upload the newly created excel file to SmartSheet making use of the API. The program runs perfectly from FME Workbench, but when I run it on FME Server, I get the following error message in the log: "Python Exception <FileNotFoundError>: [Errno 2] No such file or directory:" I have similar files running and working on FME server, but they do not make use of a template file. The error message pertains to the path of the template file, which is in the same directory where the dataset is written to.
hi,I have the following json time series and would like to convert it to a table structure.so per time and value an own row with all station information.Unfortunately I can't find a corresponding example in the FME help. [ { "ts_id": "19690010", "station_name": "Badinghagen W", "station_latitude": "51.084693593981505", "station_longitude": "7.650786142144193", "parametertype_name": "Niederschlagshöhe (N)", "ts_name": "Tag.Summe", "ts_unitname": "Millimeter", "ts_unitsymbol": "mm", "station_no": "13100039", "station_id": "12918", "rows": "4", "columns": "Timestamp,Value", "data": [ [ "2022-03-18", 0.03 ], [ "2022-03-19", 0.00 ], [ "2022-03-20", 0.00 ], [ "2022-03-21", 0.00 ] ] }]
I'm new to FME. I have an attribute that contains an alphanumeric code. I need to use this code to look up a name in an Excel sheet. I'd like create a new attribute with this name. I think that DatabaseJoiner may be the correct transformer but I haven't been able to get it to work. If possible, if the looked-up name equals "No Data" I'd like to get the name from a different column. Thanks.
I have a spatial filter that isn't giving me the correct result. I am trying to determine if a feature falls within a polygon. If it does it should pass. If it doesn't it should fail. I know the feature is within the polygon and therefore should be 'passing' but instead it keeps failing. I'm assuming I have something set incorrectly. These are my parameters: Filter type: Multiple FiltersPass Criteria: Pass against one filterSupport Mode: Support aggregatesSpatial Predicates to test: Contains candidate, touches candidate, intersects candidateUse bounding box: noCurve boundary rule: Default rule Merge attributes is selectedAccumulation mode: Merge FilterConflict resolution: Use candidate Preserves Feature Order: Per output port
Hello, I am looking for a solution for extracting appearance from geometry to get raster's and then adding georeference to it. Full problem:I have geometries that are divided into multiple files that have ortho photo appearance on them, I want to get all the appearances and combine them into one raster. Then Ill read another geometry and append the raster to that one using geometry coordinates.But when I use the AppearanceExtractor no georeference is added so I cant combine them into one or append them to the new geometry. Input geometry Any help would be appreciated, thanks.
PROBLEM 1 if in column TYP the value is PL than do nothing (keep the cell G1, H1, I1 empty) ******************************************** PROBLEM 2 if in column TYP the value is PEthan calculate value in "x1 in (m)" check condition "F is W" or "F is E" or F is S" here the condition is "F is W" so fill in default value from "Y in (m)" to "y1 in (mm)" and from "Z in (m)" to "z1 in (m)" FORMULA to calculate/obtain value in "x1 in (m)" i.e. 1960.85 from the DIM in (mm) always select the first value before "x" for i.e. 600 and convert it from millimeter (mm) into meter (m) i.e. 600/1000 = 0.6 now add the result i.e. "X in (m)" + "0.6" ******************************************** PROBLEM 3 if in column TYP the value is HOthan calculate value in "y1 in (m)" check condition "F is W" or "F is E" or F is S" here the condition is "F
I currently have 2 datasets - one is a set of records with a date attribute. The other is a schedule dataset with 2 attributes indicating the start and finish dates. I am trying to identify how I can query whether a record in dataset one is within the range of the start and end dates of dataset two, and then subsequently count the number of times each record appears in the range of dates The end result ideally is something similar to the statistics calculator where I would see each record with an extra attribute with a numerical value indicative of how many times that date has occurred in the range of the schedule dataset.
I would like to be notified if there is any wrong attribute value in a non-spatial table which is read from SQL database by comparing with an spatial attribute table. In other way, I want to detect change if the attribute of a particular entry/row is different from each other. I have intentionally changed attribute values for two entries so that these two are picked. Both tables have few common fields but the schemas of the tables are not same. I have tried with changeDetector, Matcher and DuplicateFilter but not getting the actual outcome. Any help will be very appreciated. In the attached image, 1 is the non-spatial table and 2 is the spatial attribute table. I have used attribute manager so that the attribute names in interest in both tables are same.
In your experience, would splitting the feature flow and directing it into multiple, simultaneous SurfaceDraper transformers significantly decrease the processing time for a workspace, all else being equal? Let me explain what I am dealing with and why I ask ...I have 730K points (center points of square grid cells) and 2.1K triangular 3D polygons, overlapping with each other in both 2D and 3D. For each point, I must identify the triangles it intersects (in 2D) and identify the triangle that is lowest at that point's location, extracting the triangle's z-value as an attribute. For that, I use a SurfaceDraper -- see the screenshot above. Points and triangles go through a PointOnAreaOverlayer with output of both points and areas, and those two flows are directed through ListExploders to end up with two matched sets of equal size as input to a single SurfaceDraper transformer. Functionally, the workspace works fine, but the processing time is massive. The SurfaceDraper appea
I'd like to find some documentation or information regarding the lookup table attributes 'Type' and 'Mapping type' associated with the Schema Mapper. I have done a lot of digging around the FME knowledge base and cannot seem to figure how to format the values associated with the attributes. This article has many different use cases associated with the Schema Mapper. I downloaded the associated FME Workspace and CSVs. The CSVs have different values assocaited in the 'Type' and 'Mapping type' fields.: https://community.safe.com/s/article/schemamapper-use-case-example?r=1807&ui-knowledge-components-aura-actions.KnowledgeArticleVersionCreateDraftFromOnlineAction.createDraftFromOnlineArticle=1
They have more in common with the Min and Max Extents in the Feature Information window than down below where the geometry coordinates are. Should I expect the indices to align with the existing coordinates? Do aggregates change how the CoordinateExtactor works? It is really mystifying. Any insight is appreciated.
Hi,I am facing a problem while using the realdwg-writer to put out autocad files that include multi-texts (the process running in advance is doing fine). Many of my source files have multiple viewports with different scales (e.g. 1:200 and 1:100). Before writing the data, the values in the autocad_anno_scale list look like this: When opening the resulting DWG file (input DWG is used as template), the aforementioned list includes additional values: Because of this, some multi-texts get different sizes in the viewports in my written files than they have in the original ones. In the case documented by the screenshots, the text is depicted smaller although it should stay the same size, just like it is in the source file. I've tried some workarounds I came up with, but unfortunately without any success. Is there a possibility to control the sizes of texts when writing them to a DWG (or to just keep output sizes the same as input sizes)? Because I have to use my workbench on quite a n
FME Desktop 2022 Build 22304: “GeometryFilter” with and without “GeometryValidator” prior to it shows different results considering that nothing is repaired, I couldn’t figure out why “GeometryFilter” with and without “GeometryValidator” prior to it shows different result considering that nothing is repaired. How come a “multiarea” is detected if the “GeometryValidator” is run before the “GeometryFilter” but never identified if the “GeometryFilter” is run without “GeometryValidator” prior to it? What could be the issue here? The data is attached
My FME translation includes 2 different streams depending on the type of data provided in a zipped file GDB. So the first step before processing data is to test whether it contains a rater dataset/mosaic dataset or any number of feature classes. I don't want to read data yet, just check the data type of feature datasets. What's the best way to check that? Tried a generic schema reader but it doesn't provide an attribute with the format of feature types inside the file GDB.
I would like to make a custom map for Power BI's Shape Map visualisation: https://docs.microsoft.com/en-us/power-bi/visuals/desktop-shape-map When I make a TopoJSON with FME and open it in Power BI I see a completely filled square (basically the bounding box is filled). When I take the TopoJSON generated by FME and process it using the default paramaters of the online mapshaper tool (https://mapshaper.org/) by exporting as a TopoJSON the mapshaper TopoJSON file open's without a problem in Power BI. When I compare the FME TopoJSON files to the mapshaper TopoJSON file using a text reader the only obvious difference that I see is that the parameters are in a different order, but the scale and transformation parameters are similar. I have attached the files to this message. Any ideas on what I need to do with FME so that the outputted TopoJSON files will open in Power BI?
I am trying to extract records from one table based on a series of date ranges in another table. I want all the records from table A, that fall between date ranges from table B. Each table B row has a start date and end date.
Hi.I'm generally use the workspace repository to assign job queue when scheduling job executions, although I have a couple of special queues to enable high importance jobs to run sooner.But jobs that are not scheduled by the FME server itself, instead being initiated via the REST interface, all seem to end up using the Default queue.I've looking into the API example, and it doesn't seem to include a queue name request parameter. And there's no way to create a queue designated for REST initiated jobs.Is it possible to control the execution queue with REST initiated jobs ?Using 2020.2.5
Hi,I have a set of polygons following a line like shows attached figure. The distance between these polygons along the line are the same. Objective: I have to create some polygons at the end/beginning of the line in the same line direction. Line could be in any direction, not only horizontal. Method (FME Desktop 2020): The original dataset is a polygon shapefile, so (1) I have computed a layer with center point of polygons, and (2) I have constructed a Line (LineBuilder) with this ordered points to know the line direction. (3) I generate a new polygon at the beginning or end of this line at some known distance. The size of new polygon is the same as the original ones, and I have to translate the polygon along the line (In fact, I have to generate several (n) new polygons along the line equally spaced (d)): I have extend the line (LineExtender, n*d), split the line n times to get center points,and then I have to create a new polygon in every center point. Question: Is it possible to mak
Hello, I have vector data as gdb with multiple data layers: Communes Building Roads Green spaces I want to be able to cut out this data a bit like a cookie cutter according to the boundaries of the municipalities and group all the corresponding data, eg: Municipalities_01 Building (for this area) Roads (for this area) Green spaces (for this area) Municipalities_02 Building (for this area) Roads (for this area) Green spaces (for this area) Municipalities_... Building (for this area) Roads (for this area) Green spaces (for this area) Do you know how I can achieve this? Thanks very much
We have just upgraded to FME 2020.0.0.1 and are slowly testing our different workspaces. We use the python print command to log different things into the FME log file and since we have upgraded to 2020 all these log statements has disappeared form the log file. Python compatibility is set to 3.7+.Is that somehow a feature or a bug?
Convert GDB to GML Hi I'm a beginner with FME, so I need help because I want to convert a GDB to GML and I don't know how to do it at all. Can you help me ? Thanks very much
Good morning. I have a table with two geometry fields in a SQL Server database. The coordinate system for both of them is EPSG:25830. I've followed this article to be able to write both columns at the same time: https://community.safe.com/s/article/writing-to-tables-that-contain-multiple-geometry-c It works great; but, when I check the SRID of both fields with the function STSrid, I get the 0 value for both of them instead of 25830. Before writing, I set the coordiante system with a CoordinateSystemSetter, so I don't know why it's not stored properly. That doesn't happen with tables with just one geometry column. The data comes from a DGN (v7) file. I'm using FME 2021.1.0.0. Am I missing something? I've found this question with a similar issue from 5 years ago: https://community.safe.com/s/question/0D54Q000080hQwSSAU/multiple-geometries-with-different-srsid-The last answer was by @mark2atsafe saying the devs were going to check it, but no further posts about i
Main workspace:LoopingAndBlocking.fmxThis gives me error: > Custom transformer 'LoopingAndBlocking' does not have a port named 'PrivateInput' which is suitable for parameter 'LOOPBACK_INPUT_TAG' Settings:Enable blocked looping: YesMax iterations: 100Attribute to hold iteration count: FME_LOOP_ITERATION_COUNT Using ALWAYS LINKED Publishing the PrivateInput Port does solves the LOOPBACK_INPUT_TAG problem, but then my feature are outputed through the Incomplete port. That suggests they could not be looped at all? Any thoughts appreciated. Attaching fmw + fmx