A space to discuss FME Form
Recently active
Hi! I have a question that I can't figure it out myself. I have a CityJSON (v1.0.1.) building data set which contain surfaces with type both "RoofSurface", "WallSurface" and"GroundSurface". How can I read or filter my data based on these types? Does FME support this when processing CityJSON, like it does for CityGML? I have tried eg. to extract geometry parts and deaggregate buildings, but none of these helped. Thank you a lot!
I have a user parameter getting a string of comma separated words. I would like to use that as items/arguments to filter whether or not a feature attribute contain one of those words. It would be to be used on about 10,000 features eventually with maybe up to 5 different words I can get the user parameter to a list, and then to an attribute, but I can't find a way to use those to filter my dataset, either using Like, In, or Contains Any idea how this can be done?It's basically to filter whether a path does or not contain some words
I have a bunch of records with a GroupID attribute on them. Some GroupIDs will only have a single record/geometry, while others will have multiple records/geometries. When I use the Aggregator, it aggregates ALL the records, even the ones that only have a single geometry part.How do I either aggregate only the truly multipart aggregates or deaggregate only the single part aggregates?
I am wrapping a standalone python script in a python creator and seem to be running into an issue. The script runs fine when I run it in IDLE. However, I am experiencing an error in my workbench when running the creator. Error - error - `fme' instance does not have a method `input(self, feature)'. fme.input(self, feature) must be defined. Script - # Import system modulesimport sysimport stringimport osimport arcgisscriptingimport loggingimport logging.config class fme: def main(): logging.basicConfig( filename=r'\\\\maphub-amer-vfs.azure.chevron.com\\MapHub-NA\\ETL\\FME\\SJV\\TEST\\Projects\\iDOT\\Common\\Scripts\\NetInj_NatNbr_Clip.log', filemode = 'w', format='%(asctime)-6s: %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger('NetInjectionClip_log') logger.setLevel(logging.INFO) try: # Create the Geoprocessor object gp = arcgisscripting.create() gp.overwriteoutput = True logger.info(&qu
One of our technical directors wants to know more about FME, what it is / isn't, and what it does / doesn't, etc. Basically a quick overview of FME that shows off its capabilities. He's signed up for Introductory training, but I feel that that's too detailed and too technical for his position.I read about FME Accelerator. What exactly is that, and who is it for? Would that be suitable for senior management, or is it still pretty technical?I find the Accelerator web page a bit too vague (https://www.safe.com/accelerator/)
Now and then I have a need to postprocess data written by a FME Server Data Download Service. In good old days (FME Server 2015) it was possible to do this in the Python Shutdown Script. Nowadays the results are obviously auto-zipped by the writers when running the Workspace on FME Server as a Data Download Service. I have not yet found any way to postprocess the results, as they are already zipped and the result filename is unknown (in the Workspace) when the writer has finished its job. My simple example substitutes some text in the file written by the FeatureWriter. This is necessary because of some limitation in the Writer itself. Everything works perfectly well in FME Desktop. In FME Server, published as a Data Download Service, the AttributeFileReader does not find the file returned by the _dataset attribute in the Summary port. Obviously because it is already zipped and removed by the Writer. Any ideas?
I am trying to export to a geojson file (to upload to Mapbox). Unfortunately, 5 out of my 736 features have a type of GeometryCollection. The remainder of the features are MultiPolygon and Polygon. Mapbox is unable to work with the GeometryCollection. I tried using a GeometryCoercer with the Geometry Type set to fme_multi, but all of the features go through the Untouched port. I also tried running the 5 through a GeometryRefiner. This converts 2 of the 5 to MultiPolygon, but I can't seem to get the remaining 3. I have been trying to figure out how to use the GeometryPartExtractor, but I can't seem to get the syntax correct (this is all quite new to me). I'm also wondering if my lack of understanding of the Geometry XQuery syntax is the reason I can't get the GeometryCoercer to work. If anyone has any experience with this, I would greatly appreciate the advice. Thank you.
Hi,is there an easy way to straighten a line. i have created a shortest route on a grid, now i want to straighten this line as it is indicated in the picture. best with 90 degree anglethanks in advance
Hello, I have a single line, and also a set of 16 points that lie along that line. I need to split the line into 16 different segments that start/end at these points. I found PointOnLineOverlayer that does this, and even mentions being able to apply attributes to the segments. Its working perfectly to split the line up into segments, the problem I'm having is that those segments don't seem to be taking their attributes from the points that split them, but instead are taking them from the original line, and so the attributes for each segment are identical. How can I apply an attribute from the points to each corresponding segment of the line?
Hi FME'ers,I am using the HTTP caller to download multiple CSV files to a folder. I'd like to zip the folder and output the zip folder path as a single features to a automation writer. Can this be done? The automate writer would then trigger a second workbench to read all the CSV files and process them. I don't want to automation writer to trigger this workbench per file. Thanks, David
Hello i have Columnname A and B.I read the Excelfile with a FeatureReader. Get Columns A and B.Now i close FME. Rename Columname A to C in the Excelfile.Open FME. Read the Excelfile. Get Columns A and B instead of C and B.Why does FME cant see my renamed Column C and still sees Column A wich doesnt exist anymore?
Hello i want to change the Columnames based on the first value.Example:Column: Afirst Value: DognewColumname: Animal
While connecting to MongoDB Atlas I'm getting error TLS Handshake failed. However, when connecting via MongoDB Compass, the connection is successful. Attached is the screenshot of the error. Could anyone please share MongoDB Atlas is supported via FME? If yes, how to connect to it? Best,Sarthak
I have DGN data with and without GRAPHIC GROUPS for Line,Point,Texts,Hatch,Polygons. I want to extract separately only graphics groups elements.
Hello,I am trying to convert from revit to cesium 3d tiles using the dynamic schema definition. I remember it working well before, but suddenly this issue comes up. When disabling the revit reader (only one in the workspace, see image below), the error doesn't pop up, but of course, the attributes are not written since no schema is found. Any idea on why this happens? Note: Revit's feature_type_names are separated by a dot character (e.g. Mechanical.MechanicalEquipment) Here is the error:The PERSISTENT_CACHE_NAME directive must be specified when creating a persistent cache. It's value should be a valid string useable as a subfolder nameError fetching dynamic schema definitions from reader `REVITNATIVE_1'. Error reading from `D:\...\plant.rvt' reader.The PERSISTENT_CACHE_NAME directive must be specified when creating a persistent cache. It's value should be a valid string useable as a subfolder nameMULTI_WRITER: Error fetching dynamic schema definitions from reader 'REVITNATIVE_1'Attr
Hi Guys, New to FME but really enjoying the journey to date. Today I hit my first confusing issue which although I have resolved I am pretty sure they must be a better way. I had:Created an MSSQL tableCreated an FME reader which detected the schema including attribute types and so forth.Did some processing and wrote to a file geodatabase. But:I then made some minor changes to the underlying MSSQL table i.e. changed text to decimal etc.However the reader would not detect these changes. I had to delete and recreate the reader for then changed to be detected. Is there some easier method which I am missing to get the reader to detect changes to the table schema in the database? Apologies in advance if the solution is simple but I am missing it! Thanks,Barry.
I have data that would need to be loaded into different tables. But I need to load them to load in a specific table order because of foreign key constraint. I have put on a connection runtime order which only controls the very next transformer. One of the data paths has a statistics calculator so i thought if i put a statistics calculator on the path that needs to be loaded last, this would give me the order I need but they are still going first.The first 2 are going in at the right order. The 3rd has the statistics calculator. It also has a tester where only the records that passed will be in the statistics calculator. The records that failed do not need to go anywhere. Also, all records can fail the tester. In that case, no related IDs are created for the 4th table so then the Foreign Key Constraint is not violated.I added 2 feature Holders and 2 statistics calculators on the 4th path hoping the 3rd path will finish first, but the statistics calculator for the 3rd path would stop, an
Hi, I'm wondering if anyone here has any idea why this is happening. When I open fmeworkbench.exe, four processes are created:QtWebEnginepProcess.exeQtWebEnginepProcess.exefmeobjectsworker.exefmeworkbench.exe But when I close the FME Workbench window, only the top three processes are ended. fmeworkbench.exe continues to run in the background. The number of fmeworkbench.exe processes keeps increasing the more times I open and close FME Workbench, which is quite often on a typical day. It ends up taking a lot of memory, so I'd like to figure out how get these closed properly. This behavior is consistent across the three versions of FME I have installed (2017.1.2.1 32 bit, 2021.1.2.0 32 bit, 2021.0.1.0 64 bit), and is only occurring on a Windows Server 2012 machine. FME Workbench (and FME Data Inspector) are the only programs on the server that are exhibiting this run in background after closing behavior. I've tested on a Windows 10 machine and the workbench processes are en
I'm trying to reproject layers that were built in CAD. The first 6 figures of the coordinates match up to british national grid 6 figure grid ref. BUT there are 9 figures in the grid reference almost like it used BNG in millimetres instead of metres. I'm sure it is a simple quick convert/reproject but I'm a bit stumped...?
Hey FME'ers. I've not been online for a bit recently (because of updating the FME training materials for 2017) but I wanted to throw out a new idea that is part challenge, but part crowdsourcing.I came up with the idea of an FME-driven service for assessing a workspace for best practices. Just now I found I wasn't the first to think of this, which shows there aren't any new ideas any more!Anyway, in my spare time I've been putting together a workspace using the FMW reader to test other workspaces for best practice. I've built about 20 different tests and can think of quite a few more. But I thought it would be great if we - the FME community - could work together to take this idea to completion.So, this is an open invite to take part in this project. I think there are a number of different ways you could contribute:Develop a best practices test and add it to the project workspaceDo some testing on the project workspace to look for faults or enhancementsImprove t
Hi All, I am stuck trying to figure this out. I am having trouble seeing feature classes inside FeatureDatasets using the FeatureReader. My Feature Types to Read is fme_feature_type_name and I am exposing fme_feature_type and geodb_metadata_string. All seems to work for feature classes but FCs in FeatureDatasets are skipped in Generic. They come across in the Initiator though. See screen cap below. I must be missing something simple. Any thoughts?
I have a workspace which reads rows from an excel file and writes the same rows to an other excel file using dynamic schema definition. Gets the schema from the excel file which is read. My problem is that the first row that is read is skipped in the writer. In the attached example the output will only contain the second row of TestExcelWriter.xlsx
I have a data that contains whitespaces at the beginning, between and at the end. I have used an attributetrimmer to trim out the spaces at the beginning and end, but I am left with the spaces in between. Please, does anyone have an idea of how I can go about it because I can't keep using a stringreplacer repeatedly for this large dataset?
I'm fairly new to FME Desktop. I have a FeatureWriter with three inputs. I'm creating an Excel file with three sheets. It works great except many of the column widths are much wider than the content. I have to open each sheet, select all columns and Auto Fit Column Width. Today I realized that if the data type is text(255) then the column width will be 255. If the data type is text(150) then the column width will be 150. My data source is an ArcGIS feature layer created from Survey123. The default length for a text field is 255 so, I have many columns that with a width of 255 in Excel. This doesn't seem like a great way to determine width. I'd rather go with the Excel default column width. In the User Attributes tab of the FeatureWriter parameters, I see that I can set the column width. I believe that I can use zero to auto fit the column width. The problem is that I have about 30 columns and 3 sheets so, I'd have to type '0' close to hundred times. Is there
i have seen numerous posts about this but i cant get a good working solution. i have a user parameter that i want to limit a second user parameter based on the selection of the first. so far i can get a filter on the first parameter but how do you link the second parameter to the first in order to present the user with only the attributes that match the first parameter?