Using transformers to modify data.
Recently active
I have a non-spatial data, want to compare every 2 rows: if they has A, B columns same then compare Column C Start, Column D End has the overlap, if it overlap with another row, write that row id to this row column. See attached image, any suggestion for the task? Thank you very much.
I have got the following structure: Three Attributes and a feature with three different values Attr1 Attr2 Attr3X Y Z The result should be:Attr1 NewAttrX YX Z In my initial table (Excel) I have more features of course, but this is the way I have to deal with each feature. Any ideas?
I want to move all different sorts of geometry (points,lines,areas, 3D, surface, faces +++) to a local origo. I can find the correct x,y,z and I can use the 3DAffiner to move most of the data to the correct spot. However it seems that the complex 3D-geometries that has a Transformation Matrix does not get updated (https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/!FME_Geometry/Transformation_Matrix.htm) .Is there any easy way to also 3DAffine these Matrixes or do I need to "unwrap" all these geometries and then re-wrap them again. Using deaggregating on all the complex geometires, and then aggregating them again afterwards?
Dear FME community.I would like to duplicate lines who contains a specific character in a specific field and split the attribute of this field.For example in this case I would like to duplicate and split the lines who contains the character * in the filed Field 3 and split it like that :For begining I used a tester for make a filter on the Field 3 who contains the character *Do you know how can I do that ?Thank you.
I have a file GeoJSON. I need upload this file as s BLOB or NCLOB(as just binary file) to column in Azure SQL DB Table. How i can upload this file with FME? Please share you knowledge about it
I'm trying to find optimal area of interest (AOI) polygons to make request for image tiles. I have my service territory (an irregular shape) tiled and each tile knows how many request would be required as a numeric attribute. What I want to do is group the tiles so that each group has as close to a sum of 150,000 without going over. Then the outline of each group forms a polygon that can be used as an AOI.The Dissolver just does too much. All the polygons are adjacent.Or I could have one giant polygon and figure out a way to split it, and if the value (sum) is still too large, split it again. Ideas?
I have a folder with many shape files in many CRSs. When I read each file using "FeatureReader", I can use CoordinateSystemExtractor to retrieve the feature 's CRS, but the returns are not very useful as they are not standard ESRI coordinate system names. Is there a way for FME read the associated prj file and get the standard coordinate system name that I can attached to the feature as a new attribute?
Hi,I'm trying to make an indoor map, to use with this leaflet plugin:https://www.cbaines.net/projects/osm/leaflet-indoor/examples/(data.json is found here: https://github.com/cbaines/leaflet-indoor/tree/master/examples)Input data is complete indoor maps in shapefiles with offices, hallways etc. each object with room numbers. I also have a large table of all employees with name, title, organisation, phone, and room number. These get joined by room number attribute with a Databasejoiner, and because some share rooms, turned into a list attribute. So far so good.I've tried, with very limited success, to use Jsontemplater. As I've worked with geojson only once or twice I'm at a loss how to continue. I have gotten as far as writing a geojson, but not with the right structure. Pleeeeease push me in the right direction as to setup the Jsontemplater.(renamed from .json to .txt because of security(?))Please Update: Below is an example of the result json (which couldn't be a
I thought I could use the data file input and a binary decoder, but I need some help!
Hi, I would like to have access et this page from the FME help pleasehttps://knowledge.safe.com/questions/58672/where-can-i-find-the-csrs-transformation-grids-for.htmlas referenced here:https://knowledge.safe.com/articles/19461/canadian-spatial-reference-system-csrs-high-precis.htmlI am trying to get the transformation grid files for NAD83 et (CSRS)NAD83Thanks, Martin
Hello all, I am trying to use a Workspace Python Startup Script and I get the message from the subject line.I am using FME 2017.1 on MacOS. I changed the Python Compatibility to: Python 3.5+ and I also changed the Translation setting Preferences to "Python Preferred Interpreter: FME Python 3.5+".I am not sure if I need to tweak something in the workspace or it has to do with something it cannot find on my Mac. Can anyone please advise on how to fix this little mishap? I appreciate the help!
Hi, my python code below does not work in python 3, I receive a " Unicode-objects must be encoded before hashing" error message. Any tips? import sys, getopt, hashlib, osfrom hashlib import sha1import hmacimport base64import timeimport requestsimport subprocessimport jsonimport fmeimport fmeobjectsimport datetime def calculate_signature(feature): # get input values from feature attributes api_key = FME_MacroValues['API'] host = feature.getAttribute('host') method = feature.getAttribute('method') shared_secret = FME_MacroValues['SharedSecret'] timestamp = feature.getAttribute('timestamp') #timestamp = datetime.datetime.utcnow() url = feature.getAttribute('url') # set access_key #access_key = FME_MacroValues['AccessKey'] access_key = 'A0F66A0E-0CC9-7ABE-24CC-F8807E2829AB' # copied code from calcualte_signature sig_block = "{}\\r\\n{}\\r\\n{}\\r\\n{}\\r\\n{}\\r\\n{}\\
A workspace has an aggregator that is aggregating features using multiple group by attributes. One of the group by attributes is ordered, but the others are not. Any suggestions on how this could be processed so that the ordered feature could be considered, rather than the aggregator holding on to everything?
Hi All,I have a total number of n (points) spatially divided over a given area. I want to group them into x clusters using y members per cluster. This has to be as spatially optimal as possible.So I would like set the following parameters in the transformer:- The number of clusters- The size of the clusters or the min. and max. size of clusterAnyone got any ideas? I already tried working with the cluster modeller, K-means & RClusterCalculatowith no success. Thanks in advance!
HiI am trying to convert attribute values from PascalCase or camelCase to underscore_separated in FME 2018.1. I've tried StringReplacer in "Replace Regular Expression" mode. Text To Replace is [A-Z] and Replacement Text is _\\1. It is matching the text to replace correctly but rather than substituting the capture group it is replacing with literally _\\1 so schoolCode becomes school_\\1ode instead of school_Code.I've also tried to use @ReplaceRegEx(@Value(name),[A-Z],_\\1 ) on an attributecreator with exactly the same result.Everything I can find (including StringReplacer help) suggests that \\1 is the way to do what I want, but I just can't get it to work!Any help would be really appreciated.ThanksTom
My FMETEMP folder keeps growing. I can free up about 1GB by using the purge temporary files feature. However, my entire temp folder is nearly 54GB. Is it safe to manually delete these files? I was thinking they are supposed to go away when I restart the machine, but they seem to stick around.
Hello, I am looking for a transformer that is much like the "merge" function in ArcGIS. I need to be able to merge two polygons that do NOT touch into one feature. It is possible to do this manually in ArcGIS, is there a way to do this in FME? I cannot add area to either of the features in order to do this sort of merge (ie: bridge them together with a small polygon), since area is a sensitive attribute for this feature class. Dissolver did not work! I could only get it to merge polygons that physically touch. Thanks!
I have been given the following python code but get errors every time i try to run it, anyone know what is wrong...import fmeobjects def FeatureProcessor(feature): to_concatenate = ("buildingNumber", "throughfare", "dependantthroughfare") # Modify as needed join_string = "," # Modify as needed result = join_string.join([feature.getAttribute(attr) \\ for attr in to_concatenate if feature.getAttribute(attr)]) feature.setAttribute("CONCATENATED", result)
I get the following message which I do not understand.fme_expression_warnings{0}.message (string): Failed to evaluate expression '@DateTimeCreate(2018,11,5,6,9,14,0)'. Result is set to nullI tried filling the values as string values and converted to @int() and get the same result. Also tried with -0 as the last value.
Hi,I am needing help determining the best way to dissolve all polygons which are ENTIRELY WITHIN another polygon but which also MAY TOUCH THE OUTER BOUNDARY. However, I do not want all of the intersections, just ones entirely within. I am working with one file which seems to be an issue for SpatialFilter as the Candidates and the Filters are the same.I cannot have donuts or multi-part objects. Some dissolving of inner features is acceptable but the idea is to dissolve as many polygons into larger one as possible without creating donuts or multi-parts.Here is a sample of what I am working with: Here is what I hope to achieve (or something similar to reduce the number of polygons already within):The main thing is to help keep it clean while simplifying the geometry.
Hello Everyone, So I am working on some IFCs and this is my workflow: -I am extracting the "Body" geometry of IFCs-I am using the Deaggregator (Flatten 1 level)-I am using the GeometryCoercer to convert to composite surface. So, the input in the Coercer can be show in figure named "Original". The output of the Coercer can be found in figure named "Coerced". It duplicates specific parts and I have noticed that these parts are CSGSolids, while the parts that are properly coerced are BRepSolids. Any ideas on how to tackle this? The reason I am converting to composite surfaces is to convert to CityGML. Thank you for your time. Kind regards, George Floros
I've read about the encryption of FME files (see this topic).I would like to know if it's possible to encrypt FME files (especially *.fmw) with a password from the fme command-line. I tried to run:fme PROTECT ./in_clear.fmw ./out_encrypted.fmwbut i didn't find any password parameter and no prompt either. Use case: batch fmw encryption of a set of workspaces after development work and to deploy.
HelloI am fairly new to using FME.I do however use multiple FME workbenches.I generally access them via Windows Explorer.I'd like to see display page in FME that shows all of my workbenches as shortcuts where I can run each separate workbench from. Effectively click on the the shortcut button and run the workbench.Cheers TravisD
Hello,I have an Excel file that consists of 171 columns. I would like to keep the unique values for every single column.I tried the DuplicateFilter but it returns me the unique values of only the 1st column. This means I would have to repeat the process for 171 times. Do you reckon that Python is a one-way road? I would appreciate your thoughts on this.Thank you for your time.Kind regards,George
Hii want to reproject a DWG with dimensions and write to a new DWG. (RealDWG) I use the CsmapReprojector and the Data Inspector Shows that all coordinates are reprojected, but in the DWG the dimensions remain at the old coordinates. Polygon is projected and written to the new coordinates, as it should be.Does anybody know why? Did i forgot any Option on writing?Template is attached.Workspace is FME 2017.1 but 2018 produces the same result.Thanks