Using readers and writers to extract and load data.
Recently active
I have a workspace that reads multiple features from a CSV file, transforms them and then writes the results to a custom text format (using text_line_data).I would like to set the name of the output file at run-time based on a 4 digit integer value read from a second input CSV file. For example, if the integer is 2934 then the relevant attribute is set to OUTPUT_FILENAME=output_2934.txtHowever, I am getting in a mess trying to configure the output text writer. If I fanout on OUTPUT_FILENAME, I get two output files (rather than the desired single file) when I run the workspace. The files produced are output_2934.txt (with no content) and output_.txt (with correct content). If I don't set the fanout, I can't see how to configure OUTPUT_FILENAME.Is my approach fundamentally flawed? Any help much appreciated.
Hello, How can I add the elevation as 3rd dimension to existing segment?I have the elevation values for the starting and ending points of each segment. Thanks
Hi all,I would like to know how I can simplify some work that I do now in Excel with a very complex formula.What I want to do, is to "compress" a table. I made an example above (not the kind of data, but the idea is simple). Code 1 is leading, and is a code for a certain spell. Value A and Value B are pieces of information that belong to Code 1, but some information is fragmented and/or absent in some rules.What I want, is that I will get one table like this one:In this way, I can just use the DuplicateFilter to extract just one random Code1 feature to get the compressed data set I want, including all information. Does anyone have a suggestion? In Excel, I just took the longest answer for every cell and per Code 1, but I would like to do this process in FME since it will be way faster for larger datasets I assume. Besides that, my Excel formula had to be six sentences long in order to cover the right range for Code 1, consuming a lot of computation time. Regards, Martin
Has anyone ever encountered this error when trying to use an excel file as a template in the excel writer?I've had a new machine since the last time I tried to use a template in a writer and wondering if something is missing, just not sure what that's likely to be...(FME 2018.1.0.2 (Build 18547 - WIN32))
Hello there!I have tried to write several raster files (TIF, PNG, ..) using the FeatureWriter with the "Generic"-Format which works pretty well unless no WorldFile (tfw, wld, ...) is beeing created.Is there a way to tell the Writer to create a world file for the raster files?Thanks a lot! Regards JacobThis was the configuration I used:
How can I create/update an Oracle table using a stored sql procedure instead of a FME-writer. The procedure already has a lot of validation and logging, so it would be a great advantage to use this instead of redoing it all in FME. Is this possible using i.e. SQLExecutor? If so, how to set it up in FME?
I have FME Server 2018.1 polling an IMAP account that is with Office 365 and I am only receiving the imap_publisher_content{0} in text/html. Is this a limitation to e-mail polling of IMAP? I really would like to receive the content in plain/text as well like before when I used FME Cloud's SMTP server. Any ideas? I've tried to use the html stripper and regex, but I'm getting mixed results with that.
Hi Guys,i have an EXcel Sheets with coordinates and an attribute i have to write it in an ACAD Block...i've tried the DWG STyler with Template/BLOCK etc...bu it doesn't really works....especially to write the attribute from the ecel in the block my block looks like that (Screenshot)any helps or ideas?GreetzFranco
Hi I tried to use the Google GMail API to read (and manage) my GMail but I'm not able to configure in correct way the web connection Can you help me ? thx Francesco
With reference to the following tutorial which uses the SQLExecutor to perform a spatial query in SQL - https://knowledge.safe.com/articles/19649/performing-native-spatial-queries-on-database-tabl.htmlThis works for nodes in my OSM postGIS table but if I try exactly the same method on ways it throws an error. e.g.:select *, "id", "tags"->'highway' as "highway" from ways as osmwhere "tags"->'highway' is not Null and ST_Within(osm.geom, ST_GeomFromText('@Value(_geometry)', 4326))=TRUEThe log says a fatal error occurs at the character which I've underlined in the code above (osm.geom).How can I use this method to query for ways?
When I use the Emailer transformer and send an email with a *.xls attachement it works fine but I want to send a *.xlsx attachement. When I do that, I get an error. Is it even possible to send an email via de Emailer with an *.xlsx attached to it?
Hi,My question is quite simple but I don't find the solution:Is it possible to change the schema of a postgres reader, and even the table name ?This field is disabled when I try to edit the reader (see below).The only solution I found is to recreate the reader.Thanks for any answer. Christian
Hi,Can FME read drone log file (UBX, it captures flight path) and convert to sHP/kml?thanks,Wilson
I want to create LOD2 objects from very dense LiDAR data approx 20 points/sqm. As input i only have 2D buildings as polygons, representing outer boundary of building, with no roof-ridges or other roof details.I have tried transformers like TINGeneretor, SurfaceModeller and PointCloudSurfaceBuilder but I can't get a neat result. My main issue is going from the high resolution TIN to larger generalised planar roof surfaces.Main question: How do I use FME to make planar areas to represent a simple roof with two (or more) roof sides? Greatful for any ideas.
Using powershell to get the current token of a user I do not have problem:$uri = "http://myserver/fmetoken/view"$postParams = @{user='Myuser';password='PS78U-w&'}$foo = Invoke-WebRequest -Uri $uri -Method Post -Body $postParams$foo.Contenti receive the token.if I use postman to verify it, there is no issue.but if I want to implement the same action in c# i always have a bad request: var url = $"{fmeServerUrl}/fmetoken/view";var body = $"user={settingsUserFme}&password={settingsPasswordFme}";var bodyencoded = System.Net.WebUtility.UrlEncode(body);var byteArray = Encoding.UTF8.GetBytes(bodyencoded);var responseCode = 0;var request = (HttpWebRequest)WebRequest.Create(url);request.Method = "POST";request.Credentials = CredentialCache.DefaultCredentials;request.ContentType = "application/x-www-form-urlencoded";request.ContentLength = byteArray.Length;var dataStream = request.GetRequestStream();dataStream.Write(byteArray, 0, byteArray.Length);dataStream.Close();WebResponse response =
Hi,I am trying to read a number of excel files. Some of these files have a sheet called content. In cell A1 there is a name which is different for each file with the content sheet. On the second row there are attribute headers, and from the third row each row contains data. The problem I have is that the first file I read from a directory does not have the content sheet. So I can not specify start row 0 when reading attributes. The result I now get is that the first file with a content sheet is read but the first attribute has the name of the value in cell A1. Every file coming after this tries to read the same attribute name as the first one which is missing in this next file.Does somebody know a solution other than removing the first row from content sheet.
I am trying to use FME to produce a json object which can interact to JDE AIS. This requires several HTTP POST calls to perform actions in JDE. I am trying to get a Token which is the first step and is a very simple object. I have used a program call Postman to simulate the POST request which returns me the token successfully. I am trying to replicate this process in FME but i recieve the following error HTTPCaller(HTTPFactory): Received HTTP response header: 'HTTP/1.1 400 Bad Request' from 'http://Server:Port/jderest/tokenrequest' Does anyone have any ideas as to what i could try to get this process to work?Screenshots below.
Hi everyone, is it possible to write pointcloud features to 3D PDF? When I try to do so all I see in the pdf is the bounding cube of the pointcloud feature but no points itself.In case 3D PDF is unable to display pointclouds properly, is there a workaround for this issue? I played around with 3D spheres that are located at every 3D point - position but that forces 3d PDF to its knees with not more than 10.000 points/spheres which is rediculous less for pointcloud data and therefore doesn't seam to be a suitable way. Attached a small sample of a pointcloud feature
After installing Autodesk Revit 2019, I can not seem to get the FME Exporter in my Add-Ins tab. I also tried going to my FME Integration Console (following instructions from this page: https://knowledge.safe.com/articles/597/how-to-use-fme-exporter-for-revit.html), but there I don't have any application in the list to extend. Anyone an idea how to get this working?
Is it possible to convert an E57 file from a bridge or building to a 3D PDF.Only have the scan, no photo and everything in a local coordinate system.
I was trying something with a free IFC dataset containing a terrain model and some linear features (alignments). You can download the data here (click 'Examples' --> Terrain and aligment).The FME IFC reader/writer is compatible with IFC4. I am assuming this does not include the 2 extensions of the IFC4 standard? Anyway, it is impossible to read the alignments. This means that things like IfcAlignment, IfcBridge, IfcRoad are impossible to work with in FME (read or write?). These features are currently being reviewed for future releases of the IFC standard (http://www.buildingsmart-tech.org/infrastructure/projects).So we will have to wait for the standard to be published and the IFC Reader/Writer to be updated? Or is there somekind of workaround? Your advice is much appreciated.
Is Microstation Connect Version available as a reader/writer in FME and if so what version of FME?
I am trying to write a value to a column in an excel sheet called NEWCOUNT based on feature names located in the column LAYER. I was previously using an old writer (xls_ADO) which allowed the use of SQL but since that is no longer offered, I must use the xlsx writer. How can I use the writer's formatting parameters to do this?
I try to use FME to convert CityGML to glTF, but it shows the export file is glTF1.0.1, how I can convert to glTF 2.0? Thanks
My workbench reads Ids from an SQL Server database using an SQL Creator. Records with these Ids are deleted via an SDE writer that connects to another database. I use an Attribute creator to add the fme_db_operation DELETE to the feature. I also synchronize INSERTS and UPDATES in a similar way with the same writer. I use the SDE writer because I want to utilize the ArcGIS Archiving functionality.This process has always worked as intended until recently I have been getting the following error when doing deletes (inserts and updates still work):Error while deleting feature in the table/feature class 'schema.table'. The error number from ArcObjects is: '-2147216104'. The error message from ArcObjects is: {Shape or row not found}As far as I know the workbench has not changed at all. I have tried adding a new sde writer but to no effect.I have confirmed that the Id I am trying to delete definitely exists, and the record is not archived (I can see it in ArcMap etc.) 'Id&#