Using transformers to modify data.
Recently active
Hello, I am reading some attributes from a database. Some are in string format, some in number (int, float etc.). I want to write these attributes to a json file.I noticed that all the attributes in string format are automatically output in quotation marks and the numbers without. In my case I have three attributes: district, lat and long. District is an int, lat and long are strings. How can I change lat and long so that their output is also without quotation marks like the district one (see image) ?
HiI need to extract the 1 2 3 4 5 td element inside class paginated_element in separate rowCan you hlep please ? I'm able to extract the entire class but not the single value thxFrancesco
I have been given the task of creating an e-mail function. It should send an email when another date is about to expire. For example, a customer receives an email when there are 14 days left on their current booking. But datetimecalculator does not work to calculate intervals of days when it comes from ESRI file geodatabase (is SDE in the original data) I suspect it is the format of the attribute that is incorrect but can't find how to change it to a working date. Is there anyone who can help me? Attaching my workbench and a file geodatabase as a zip file Best regardsJesper
I am getting some strange spikey artefacts from ContourGenerator. The dataset is a goverment isued DTM, pictured are some sea islands. The data is preprocessed with rastercellrounding and a notatasetter to ensure that the sea surface did not hold any data. Settings as follows:First image elev 2.5 tolerance 5Second image elev 2.5 tolerance 0Third image is a close up of the the second (elev 2.5 tolerance 0) Any ideas on how to deal with this?
(I have attached the dataset)I have survey points where each point is less than 2Metres from the next point per run, in a run i can have more than one section, as shown in the attached file, but all the points within this one run are still within a distance of less than 2M from each other. The difference in distance between runs is more than 2M. So it is evident when a new run starts and ends. If i had the attribute run within my dataset i would use the linebuilder and create lines from points.So what i am trying to achieve is to group the data per run. So far i have tried creating a new attribute in the Attribute creator transformer using conditional values but to no success. Anyone with an idea of how i can achieve this? Thanks,Keller.
Using Workbench 2022.2 and try to insert a TIF into an existing mosaic dataset and FME is returning the error: Unable to retrieve path to raster dataset from feature Yet, I can see the fully qualified path to the TIF in the incoming fme_dataset attribute from the geotiff reader?
What is the best way to download data from an Open Data ArcGIS Site that does not require a login?
I have roughly 12.000 features (points). Each feature has a list with 400 elements, which all have an X and Y attribute. I would like to remove the elements of which the distance between the point of the feature and the element attributes is bigger than a certain number. Currently I'm first exploding the list, and then using a tester with the arithmetic expression(@sqrt(@pow(@XValue()-@Value(x_end),2) + @pow(@YValue()-@Value(y_end),2))). The problem is that this way I first explode the list, which results in more than 4 million features! If I could eliminate them before exploding than I would only have roughly 200.000, which would improve performance.
I will soon have two sets of (hopefully) identical data to check against each other, sat in FGDB's. There are quite a lot of records (thousands, if not tens of) and I'm looking for differences in any attribute between the two versions of the same record. I can see this taking a long time, and note there are different options within FME, including Matcher, CRCcalculator, etc. What is likely to be the most efficient method?
How can I assign a unique identifier to all areas that intesect each other?
that should be in separate fields are in the same cell. So, how do I remove peoples job titles that are sharing the name field and place them in a field of their own and is their a standard FME practice that will target duplicate entries into Excel sheets? Any help would be greatly appreciated.
Hi, i need to convert one geotiff to kml/kmz but i´m a absolute begginer in FME workflow. Anyone can help me with a tutorial or similar ? Tnks
Microsoft is disabling SMTP on Microsoft 365, and we have to switch to oAuth 2.0 authentication. We have some Emailer transformers in our workspaces, unfortunatly they only support oAuth2 for Gmail. What is the alternative to use for this transformer ?
I use a FeatureReader to read multiple shape files from a .zip. The FeatureReader run in FME-Server. A published parameter is used as 'Dataset' (i.e. the FME server path to the .zip file). 'Feature Types to Read' is empty to read <All Feature Types> because I don't know the exact name of the provided shape files per monthly run. The set up works pretty well. the Reader loops over all shapefiles in the zip and the records are provided through the <Generic> port as intended. Now I have the following challenge:One group of shapefiles in the .zip are point classes and the name starts with POINT_****.shp. Another group are lines and the name start with LINE_***.shp.Question: Is there any option to read only one group with my FeatureReader setting? I tried to play with wildcards in the File/Filter field of the 'SelectMultiple...' control but with no success My current mitigation is to use two FeatureReader. The first one is only reading schema and the
For some reason in one of our processes it was decided that an XML is needed that contains partly json data (I know how this sounds :( ).I'm struggling to get the json data correctly parsed (or the XML correctly formatted). The json data is generated via json templater and looks like this:{ "editOptions": { "cascadeEditOptions": { "cascadeStrategy": { "type": "NoCascadeStrategy", "enabledTypes": [] } }, "userProvidedIds": true }}The XML structure should be like this:<data> <metadata> <projectName>SomeProject</projectName> </metadata> <action> <Modification operationId="test_operation_id_1" Id="1" requestBody=' { "editOptions": { "cascadeEditOptions": { "cascadeStrategy": { "type": "NoCascadeStrategy", "enabledTypes": [] } }, "userProvidedIds": true }} '/> </action></data>Th
In this workspace, the results of AreaOnAreaOverlayer (using the default tolerance) and SpatialRelator (using a custom DE-9IM matrix) are different. I suspect it's a precision issue with the AreaOnAreaOverlayer transformer but it's curious that the transformer that doesn't allow changing the tolerance (SpatialRelator) is the one that works fine.
Wondering what parameter to change so that when I use PointOnLineOverlayer it does not split the lines? is this possible?
Hi,I have array with geometry type and coordinates. How can I easily make geometry out of it? I could make a wkt text with string replace but I suspect it could be easier. The string with geometry type and coordinates is (shortened):{"type":"MultiPolygon","coordinates":[[[[155469.406,463438.624],[155469.253,463444.217],[155467.196,463444.174],[155467.077,463444.172],[155462.4]4,408. [ 155469.406,463438.624]]]]}
Which transformer can be used in the place of MRF2DCleaner transformer?
Hello, I have an Excel-file where one of the attributes contains large numbers such as 3.0230003003349996e+19. I want these numbers to be in a format without the e-notation such as 30230003003349996. What's the fastest way to do this?
I have a 2d polygon and I wanna fill it with as many parallel lines as possible given the distance between the lines and the angle. I have some problems to create the lines I need. In the image ignore the points.Input:+ the angle (i.e. 80°) Result (ignore points)
Hi All, I have a string that ends with a couple of characters that cause PostGreSQL to fatally terminate the process when it receives them. Unfortunately I'm not certain that the string /always/ ends with these characters or I'd use the substringExtractor. I get this error: invalid byte sequence for encoding "UTF8": 0xc0 0x80 So what I'd like to do is trim them. The problem is - How to do that without resorting to Python? I can't just copy/paste them into an attributeTrimmer because FME represents these with the special "replacement character" ? - https://en.wikipedia.org/wiki/Specials_%28Unicode_block%29#Replacement_character - meaning what the trimmer is searching and looking to replace is that special unicode character (?), not the actual ones that I want to remove. If I go into the source database and select the character in it's original encoding and paste that, it just pastes a space. There's nothing in the AttributeTrimmer docs a
I have added the following items as a list on a user parametersRiceSoft wheatSunflowerCorn after the user selects the first three options, the output value is displayed on this formatRice "Soft wheat" Sunflower where as I would want to convert the above output onto the following format["Rice", "Soft wheat", "Sunflower"] Kindly suggest on how I could achieve the above output. Thank you.
Hi, i would like to ask, i need to type that "not equal" to Where clause, and the attribute value is stringI tried to type != and <> or not in and others and non of them worked. Maybe you know the answerThanks in advance
I'm clipping a Raster with a number of polygons.As I'm using another software to then visualise the raster-file in 3d, I would like the oultine of the raster to be "smooth" and not "pixelated", is there a way to accomplish this?