A space to discuss FME Form
Recently active
I have a lot of LAZ files and generate a couple of polylines in ArcGIS. for these polylines I need to extract the points classified as 'ground' from the LAZ files.What transformer allows me to do that, and how to deal with polylines intersecting with several LAZ files?
Hi.I am wanting to utilize a webhook to kick off a process and have set up a sample site based on Send Source Data to FME Server with HTTP POST (safe.com).This example uses a text file to kick off the process but I am wanting to use the webhook URL with a parameter (key field). Is this possible? If so, what would I use as the initiator of the workspace and how would I pull in the parameter? Any help would be most welcome!
I have attached an excel spreedsheet. I would like to merge and convert the table in sheet 1 ("Year_2035') and sheet 2 ('Year_2050') into a table structure like that one in 'RequiredFormat' sheet. I have never transformed such a complex data structure in FME before. Can anyone kindly help with good suggestions?
Hello everyone, I am trying to round the x, y and z components of Pointclouds to a precision of 3. I have tried the coordinaterounder but as is already stated in the Coordinaterounder documentation (http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/coordinaterounder.htm) the behaviour of this transformer can be erratic. For some points I get far more then 3 decimal places, while for others it is rounded to an integer. I have also tried the Pointcloudexpressionevaluator as in this solution (https://community.safe.com/s/question/0D54Q00009HJ87MSAT/rounding-ifmepointcloud-xyz-components-with-pythoncaller) but this also does not seem to work for my data. Is there another option I could try or is there maybe something I might be missing from the previous solution? Thank you in advance!
I'm trying to create an xml document where part of the information in the comment is coming from an attribute. However in the XMLTemplater everything within a comment is output untouched, including {fme:get-attribute("_comment")}. Thoughts on how to work around this?Attached is a sample workspace demonstrating the issue. Build 2022.0 If I create an attribute in advance: <!-- comment should resolve attribute @Value(_creation_instance)--> and use {fme:get-attribute("_comment")},then the braces are replaced with &ly; and &gt;.If I use {fme:get-xml-attribute("_comment")},there are some xml parsing warnings:XMLTemplater (XMLTemplaterFactory): The following error occurred near line 1, column 51 of the query:XMLTemplater (XMLTemplaterFactory): invalid content passed to fn:parse-xml(): loader parsing error: Extra content at the end of the documentand the resultant xml does not contain the comment at all.
Hi Folks, I'm setting up a HTML web connection to an API using OAuth2, and one of the parameters that I must specify is grant_type=client_credentials. However, in the 'Retrieve Token Parameters' dialog in the preview window, I see that grant_type=authorization_code. Is there any way to change this? If I enter it in the URL section, will it overwrite (even if it doesn't show the change in the preview)? Thanks!Tyson
Hi all, I have a strange error message in FME Server. I try to create a sqlite file, but it says it is locked. This file did not exist before running the Workspace. Transaction starts at 0.73 2021-12-2 16:37:35 | SQLite 3 Writer: Opening `\\fme-server******\resources\data\GIPOD\GIPOD_Beta_Token.sqlite' for write operation74 2021-12-2 16:37:37 | SQLite 3 Writer: Failed to open database '\\fme-serve********\resources\data\GIPOD\GIPOD_Beta_Token.sqlite'. SQLite3 Engine error: `database is locked'75 2021-12-2 16:37:37 | SQLITE3 writer: A fatal error has occurred. Check the logfile above for details76 2021-12-2 16:37:37 | JSONExtractor (JSONQueryFactory): A fatal error has occurred. Check the logfile above for details77 2021-12-2 16:37:37 | HTTPCaller_3 (HTTPFactory): A fatal error has occurred. Check the logfile above for details78 2021-12-2 16:37:37 | AttributeKeeper (AttributeKeeperFactory): SQLITE3 writer: A fatal error has occurred. Check the logfile above for details79 2021-12-2 16:3
Hi, Does anyone know if there is also an issue for writing textures to geometry for OBJ and FBX format writer in FME v2022.2? It seems the same issue for Sketchup writer has been fixed. During test the issue for OBJ and FBX format seem to be present.
Group ID should start from 1 for each unique Attribute 1 value and the smallest value of Attribute 2 for each Attribute 1 value should get it as follows:
I have simple script with adding color palette to raster ASC after cell value replacer . In ouput GeoTIFF i received too many palette colors represented with black color. |In attachment i send script. It's possible to have only 3 selected colors without black numbers?
Hello Sir / Madam, I have a gdb file that have several layers. I am just wondering how can I extract all attributes from the layers? I tried "Schema" reader and list exploder to explode the data. However, I only able to get one table attributes. May I ask how can I extract all attributes from all layers? I have attached a sample data in here. Hope someone can give me a hand. Thank you! Thank you in advance.
Hello Sir/ Madam, So I have a CityGML file, which is based on XML. In each of the 3D model, I would like to extract the attribute name and values. Basically, what I want is that those with gen:string attribute name and bldg are the values where I would like to retreive. Here is a part of the file <gen:stringAttribute name="BuildingStructureID"> <gen:value>15169952</gen:value> </gen:stringAttribute> <gen:stringAttribute name="BuildingCSUID"> <gen:value>3917120211T20050430</gen:value> </gen:stringAttribute> <gen:stringAttribute name="BuildingID"> <gen:value>1108233601</gen:value> </gen:stringAttribute> <gen:stringAttribute name="ModelIdentityNumber"> <gen:value>B391712021101062A0</gen:value> </gen:stringAttribute> <gen:stringAttribute name="UUID"> <gen:value>22fe4b82-05e8-44ec-91cc-3408862e240a</gen
This would be simple to do in Excel, but I can't figure it out on FME. The problem is I need to transpose or pivot rows to colums, as in example (I have formatted and calculated the totals to first box):I have tried with AttributePivoter and AttributeCreator/Aggregator, but it doesn't work. Any help would be appreciated, I've tried to google, but with no luck. I have also tried to pivot the unprocessed data and calculate it there.
Hi, Yesterday I came across the situation where I wanted to split a text file into several portions. For 'new lines', the file contained both single Line Feeds (i.e. LF or \\n) as Carriage Return - Line Feed (i.e. CRLF or \\r\\n) combinations. Thus both the Unix End Of Line (EOL) methodology and the Windows EOL methodology were present. I used the StringSearcher to match relevant parts of the text file, and then wanted to use (concurrent) all_matches{}.startIndex to fetch the relevant portions of the file. However, I found out that when I then use the found startIndex in e.g. the SubstringExtractor, it doesn't doesn't return the same (starting) characters as found in the match. Digging a bit deeper, it seems that the StringSearcher all_matches{}.startIndex seems to skip counting CR (\\r). I'm guessing it identifies CRLF (\\r\\n) as an individual character c.q. index? See the screenshot below for a demo workspace illustrating this issue. Also, I found that the equiva
How can I maintain my Z values in my featuresclass using surface draper while replacing the vertices that lack a Z value using the surface provided?
I am trying to create a workspace that writes AGOL features to AutoCAD Map format with object data attributes. Not having much success. :-(
Hi,since my last update of the workbench (2022.2.0.0 (20221103 - Build 22765 - WIN64)) the parameter editor of the attribute manager wont allow me anymore to edit directly in the pane next to my main window. I have to open a unneccessary pop-up window to continue editing. Other transformers (like the feature joiner) do not show this behavior (see screenshot). Any ideas how to enable direct editing again?All the best,Merlin
Hi, I would like to force FME into treating my numbers as double before sending it to the feature writer transfomer. This allows me to make use of the automatic user attribute functionality, otherwise I would to manually define each attribute, which is cumbersome. For example:I have calculated the difference between reported and measured plot sizes. The result is stored in a colum as number, but it seems that FME interprets the number as string ... no matter if I use the @Evaluate() function or any other math function ... also string replacer cant change that. The result is always the same: i have to change the format in the feature writer, which I would like to avoid. main_plot_diff is left aligned, showing that FME interprets the data as string. string replacer is powerless... ... and the feature writer also interprets the data as string
Hi there,I have an excel file with approximately 4500 rows of data, which I am converting to HTML. I can write perfectly, but I also want to write a PDF from this information. Reading through previous questions I can see you can't write straight from the HTML Report Generator, so I have added a Table Adder transformer before this, but it creates a completely blank PDF. I have used a combination of PDFStyler and PDFPageFormatter but still keep getting blank PDFs. Any suggestions?Thanks, Katie
I have polylines that have Z coordinates on each vertex. The polylines represent water pipes and are below the ground surface ~1 meter. I have a LAS of the ground surface which can be converted to a raster to create a surface. The situation can occur where the polylines get above the ground surface in between the vertices due to variation in terrain and lack of vertices with X, Y, Z values in the polylines. How can I identify those locations and add an extra vertex so the polylines will stay below the ground surface?
Hello! I'm trying to implement Otsu's method of image thresholding on an incoming raster, using the PythonCaller transformer. I have the following code block in the PythonCaller parameters, although my Python isn't great, so there may well be issues with it:import fmeimport fmeobjectsimport numpy as npclass OtsuThreshold(object): def __init__(self): pass def input(self, feature): #implement Otsu thresholding in native Python with numpy #get the image from the feature image = feature.getAttribute('image') #compute the histogram of the image, then find the peak of the histogram hist = np.histogram(image, bins=256, range=(0, 256)) maxVal = np.max(hist[0]) maxLoc = np.argmax(hist[0]) #perform Otsu thresholding T = maxLoc thresh = np.where(image > T, 255, 0) #set the attribute value feature.setAttribute('image', thresh) #pass the feature on to the next transformer se
How to convert .las file to .fbx using FME Desktop?
i have dragged and dropped a LL27 shapefile on to Fme workbench 2020.2. Then I add a writer. Set the output dimension as 2D and coord system as TX-S. Running this is giving the error as above. The same workflow runs without errors in FME workbench 2017.1 In fact I do not have to set any dimension in 2017.1 The simple coordinate conversion from LL27 to TX-S runs normally.Wondering what I need to tweak out here in 2020.2 to get the same result
Hello:)i'm trying to overly 2 rasters :1- orginal raster (orthophoto)2- bounding box of the original raster as a boundig box rectangle +100 offseti'm using rasterMosaicker , but the result only shows the rectangle and not the orthophotoi tried sorting - didn't help see the attached workflow and parameters:the result that i'm getting in the inspector which is the correct one - black rectangle + orthophoto: result that i;m getting after the mosaicker (only the black rectangle):why i'm getting different result from the inspector ? the parameters for the mosaicker are:thanks
This is probably very trivial topic but I cannot get the correct result from this: @ReplaceString(@Value(ATTRIBUTE),,,.) So idea would be to change e.g input value 1,6 to 1.6. Or should I change some FME attribute value to have decimal separator as . instead of , ? EDIT:I get it working by this workaround. Maybe there's is some fancier solution