Using transformers to modify data.
Recently active
Has anyone had success with using the Feature Reader to read JSON from an HTTPS call? I am trying to read a JSON string from an API into FME for processing. It works great when I use the "JSON Reader" (standalone reader). But I need to do some processing steps before it so trying to do the same thing using the Feature Reader transformer (reading JSON). I am having no success with the Feature Reader for reading any JSON strings. Every time I get the same error: Received HTTP response header: 'HTTP/1.1 401 Unauthorized'Configuration is the same in both the JSON reader and the Feature Reader transformer, including username/passwords, its using Basic authentication. Any tips would be appreciated.
Hi, I have a problem with the TESTER-Transformer. I test from two different sources: I make the following TestClause:The left attributes contains a string: C:\\Data\\DownloadAV\\AV_INTERLIS_DATEN\\ENTZIPPED_DATA\\http_download_1603358280779_10932\\Amtliche_Vermessung_-_Datenmodell_Schweiz_-DM01AVCH\\213-bruetten-gds.itf and the right a value of 213:The Clause is looking for the value 213 in the other string. It should be correct, but it never find it. If I make the compare in the following way, it works:Could anyone help me?thanks a lot
Is it possible to create an FME Server App with a geocoder - so when users use the Geometry Picker tool they can search location and go to a location before start creating the geometry.Example with the default geometry example is Vancouver, BC.If you want to go to Toronto, ON is there a quicker way than zooming and panning?
The files are in (5) different folders that i'm reading the data from. I'm writing the final mosaic out locally and as a single file at full resolution. These images cover a large area and the final product will be hosted on a web server. Any suggestions on best way to process this out than putting it all thru rastermosicker? My original flow is snipped below.
I am trying to de-cluter a set of points features and am not really getting the results I want. In the image below the points are the the input features and the pink areas shows the buffer to what was output after transformation. The upper left corner looks ok, but in the lower right the overall "shape" of the cluster has changed to much to my liking. Is there a way to prioritize the removal of features that are deep within the cluster versus those that are along the "borders"?I included a screen grab of the custom tranformer i created for this, it removes the features with the most overlaps step by step until everything is solitary. Any ideas on how to preserve more of the cluster shape while removing all "overlaps"?
There is a single bug I am not able to solve since well over two days. This bug arises when working with Point clouds and Raster overlays. Below is Picture 1 showing a point cloud of the buildings of an area. Picture 2 is the same area of focus after setting a PointCloudOnRasterComponentSetter. The Transformer resets all of the z points and replaces them with the value on the Raster file. When I disallow overwrite, the z values are not altered at all. 1. Building Point cloud2. Point cloud with raster overlayI was wondering if there was a method for the Point cloud to add the raster cell values to the z component instead of rewriting them. Any help would be greatly appreciated.
I have an attribute rounder which is rounding a figure to 2 decimal places with Round-off Direction set to nearest but when using 0.145 as an input is returning 0.14 1.145 as an input returns 1.15 Any ideas why, am I missing something? FME 2014 SP2 (20140623 - Build 14339 - WIN32)
Hi,I have a png raster with RGBA bands, and I need to transform this raster into a single band grayscale (UInt32). By convention, we have set the leftmost bit in the Alpha channel to 1. This bit is to be ignored when computing the result (a "31 bit integer"), which should fit in the UInt32 type (isn't it?). In the rasterexpressionevaluator, I use the following formula: @if(A[3]<128,0,((A[3] -128)*256*256*256 + A[0]*256*256 + A[1]*256 + A[2])) However, when I try to use bitwise operators, only the value of the blue band (a[2]) is included in the result. ((A[3] & 127) << 24) | (A[0] << 16) | (A[1] << 8) | A[2]) I used a simpler form for testing purposes (A[1] << 8), but this always evaluates to 0. I can't figure out how to use the bitwise operators, any help would be appreciated.
I have a collection of points and for each point a heading is recorded. What I want to do is create lines for a specified distance (say 20 meters) in the direction of the heading recorded for each point. The start point will be the X/Y of the point.Does anyone have any ideas on how to get started with this?
I want to transform a raster with radar rain data. It is open data from the Dutch meteorological society, originally in a h5 format. Tackled all that I still have problems getting the projection right. I would like get it to wgs84/EPSG4326 or another one more commonly used. The projection is described as follows +proj=stere +x_0=0 +y_0=0 +lat_0=90 +lon_0=0 +lat_ts=60 +a=6378.388 +b=6356.906. FME doesn't recognise the string and I have tried to donwload additional ones from the website. Does anyone know how to solve this? The corner points are given in the picture.Thanks in advance!
I have a point cloud that needs to be transformed from one projection to another, using specific 7 parameters. I've tried Reprojector and EsriReprojector but none of them allowed the usage of specific parameters. I'm new to FME so sorry in advance, thanks
Hi,I am quite new to XML and I would like to generate xml structured file using FME.For input I have a simple csv file with 3 columns:LOCALITATE (tanslation: Locality), STRADA (translation: Street) and NR (Translation: Number).Desired structure should be something like: <localitati> <localitate>Buftea</localitate> <strada>Parului</strada> <nr>1</nr> <nr>2</nr> <nr>3</nr> <strada>Independentei</strada> <nr>4</nr> <nr>5</nr> <nr>6</nr>...... <localitate>Mogosoaia</localitate> <strada>Printipala</strada> <nr>11</nr> <nr>12</nr>
The basic workflow is:Read in featuresCount them (via StatisticsCalculator, Total Count)Depending on count value, calculate sample valueRandom sample features based on calculated sample valueSampler doesn't allow to set Sampling Rate (N) as attribute value. Maybe there is a workaround?
I need to export all source and destination values from an attributeValueMapper transformer. How can I do that?
Hello,I want to use a FTPCaller to push a file on a SFTP server. It doesn't work on my Windows 10 PC, but on another PC it works fine. And on my computer, I can access to the SFTP server using Filezilla or Winscp. I'm using FME workbench 2019.1.1.0 (20190801 - Build 19617 - WIN64) on Windows 10 version 1903. I get the error :"FTPCaller (FTPFactory): FTP info: Trying XXX.XXX.XXX.XXX:22...FTPCaller (FTPFactory): FTP info: TCP_NODELAY setFTPCaller (FTPFactory): FTP info: Connected to XXXXXXXXXXXX (XXX.XXX.XXX.XXX) port 22 (#0)FTPCaller (FTPFactory): FTP info: Failure establishing ssh session: -43, FTPCaller (FTPFactory): FTP info: Closing connection 0FTPCaller (FTPFactory): HTTP/FTP transfer error: 'Failed initialization'" I join the full log of my workspace, with Debug option, if it helps.
Hi, I have a trouble trying to draw a dgn file containing custom complex linestyle (with cells), but the result is always a flat line. But it works with simple custom linestyle containing only dash and dot. I followed this documentation : http://docs.safe.com/fme/2019.0/html/FME_Desktop_Documentation/FME_ReadersWriters/igds/Custom_Line_Styles.htm When I inspect the output DGN file with FME Data Inspector, the igds_style and the igds_style_name are correctly set. But when I open the file in Microstation, these lines are solid. Did someone know how to resolve this issue ? Can FME deal with complex custum line ? Some screenshots : The linestyle in the seedfile : The result in FME Data Inspector : The result in Microstation (the blue line in North-Est is a custum linestyle too, but with only dash and dot, and it works) : Note the FME Version is 2019.0.0.1. Thanks for your help,
Hello everyone, and thank you for looking! I am asking your help on an operation that I would like to do, but I am unsure how to do it in FME. I have a table such as this: ID AREA VILLAGE1 232 Oxenfurt1 452 Las Vegas1 923 New York2 124 Jacksonville2 298 Charlotte3 767 Las Vegas3 422 Charlotte3 223 Oxenfurtetc... What I want to get is table where ID is unique with a single VILLAGE entry, selected based on the maximum value of the AREA entry, and all other entries with the same ID removed. Taking the above table as example, the result that I would like would be: ID AREA VILLAGE1 923 New York2 298 Charlotte3 767 Las Vegasetc... How do I achieve this? Note that the input also has polygons, but those do not matter; I want to only have a resulting list of unique ID with the VILLAGE that has the highest AREA only, and delete the others.
We are looking into more low cost GNSS rover devices which unfortunately only measure ellipsoidal heights. To use those for mapping applications, we have to post-process those heights to receive orthometric heights (MSL). I have now received an official ascii grid file with the geoid undulation values. The distance between each point feature is between approx. 750 and 900 m:Would it be a viable approach to correct the height from ellips. heights to MSL by performing a nearest feature search (with the NeighborFindertransformer) and then subtract the geoid undulation from the ellips. heights? And if this is a viable way to do so in order to get proper MSL heights, would it be smarter to rasterize the grid first in order to increase the performance (ultimately this should end up in a FME Server webhook upon submitted survey from ArcGIS Survey123 or ArcGIS Collector). What would be a suitable raster size if point spacing varies between 750 and 900 m?
Hi, I have seen a few examples here on how to make a line or a point in a kml file change style when you hover over it, can you do the same with a polygon? I couldn't find any examples of doing this with a polygon.
I am trying to use the RasterObjectDetectorSamplePreparer and Model Trainer transformers. I created my positive and negative samples and also the annotations.txt file with the OpenCV tools. When I try to run my model, everything goes to "REJECTED". I haven't found much documentation on this other than the blog: https://www.safe.com/blog/2019/01/fme-does-computer-vision/@dmitribagh
I have a workbench that uploads features from an AutoCAD drawing to ArcGIS Online. FME is happy to write the first 20000 features (AGOL Feature Service Writer), but then aborts with "Python Exception <KeyError>: 'DYNAMIC'". Any clues to what can be the cause? Note: until last week the workbench worked without any errors.
Current Version: FME(R) 2020.1.2.1 (20200909 - Build 20624 - WIN64) Hello 1) Since upgrading to 2020.1 regardless of build version, the sorting function is no longer working and therefore causing issues. (Tick / Untick box does not work) 2) "Run-to-Selected" no longer working as it should. it carries on translating the entire workspace. PS: Not discarding the fact that it might be a localised issue. ThanksSameer
Hi all!I have a Raster with only 0 and 1 values, where the 1 are the buildings extracted from a LAS cloud point (Class 6) and the 0 the rest of the extent. It is attached and it looks like this:I need to get the polygons of the buildings footprint and my attempt is a RasterToPolygonCoercer, followed by a Dissolver but the result is not what I expected.I tried a buffer of 1m but again, the footprint is not correct and I cannot make a bigger buffers because the correct shape of the building becomes increasingly worse.I tried Generalize but it is not useful here. It smoothens polygons that are already correct and mines aren't. Tried also Aggregator and AreaAmalgamator but never seen the result. They take a really long time to process as there are thousands of polygons.In the end what I want is polygons more or less correct but one per building as the red outline in the image below, where you could easily relate each building to its footprint.Thanks a lot in advance for all the answer
I'm trying to work out how to parse the SAMPLES attribute from the Trace component of the SEG-Y reader. The reader outputs the samples as encoded FME Binary which is represented as HEX in the attribute viewer. The samples are a byte array of 246 consecutive UINT16 readingsI want to parse the samples into a list of UNIT16 values so I can then do some analysis on them. I have tried a whole range of approaches to process the string into a list of numbers but nothing seems to work and I suspect I'm just missing something. Anyone have any ideas?
HANA Spatial has an M value which is used for stationing along a linear asset (a linestring) for example. If there's a length of railroad track, there might be a signal every 1km, so each signal starting from M=0 would be at M=1, M=2, M=3 respectively. If SAFE FME is used to copy over a line from Oracle spatial and that line has stationing (or "measure" - not "unit of measure"), will SAFE FME also copy over the stationing?