Using transformers to modify data.
Recently active
Suggestions for an efficient way to determine the local bearing of an arbitrary location along a line. Local bearing is the azimuth angle of a given point to the next vertex in the line.Bonus points if it iterates easily.
Hi,In my work, I've stored a lot of workspaces on bitbucket. Now I want to create workspaces in such a way that it first downloads the latest version from bitbucket (put file locally) and from there on, processes the workspace and file.I've already tried the httpcaller to get the .fmw file, but it seems that either I don't give correct parameters or it's not possible to do so.Next thing I've tried is a feature reader (format fmw) with the url, but I don't have a clue to get the correct .fmw locally. I've tried with a filecopy to move the location of the file (retrieved from file properties) to new location, but seems like this is also an invalid .fmw.Anybody else who has some experience with this?
Hi,So, I've created workspace in 2016.1, ran it, it went perfect.Then I gave workspace to a colleague who ran it on 2016.0 with same data, some results weren't good at all, specifically creation of donut polygons. The parameters were indeed set to Create Donut = Yes and Drop Holes = No.There was no Error Message 'These transformers are not in your system...' while oppening in 2016.0. Workbench ran workspace succesfully.We've already found solution/workaround. While in 2016.0, delete AreaBuilder that was created in 2016.1 and add AreaBuilder. Everything worked as expected.I was wondering, does anyone know why did this problem occur?Thanks
I have a table "SensorHistory" that has info pertaining to rain gauge data. My goal is to create a summary information to eventually present rain gauge totals attributes such as 1 day, 7 day, 10 day, 24 day and YTD totals. I was wondering how to go about this in FME so that I have 5 attributes with site_id (see picture) and receive time for that day having the maximum rain gauge accumulation? I assume I would have to query out the table for the given time periods and use the max statistic(receive_time) for that day to get the rain accumulation. Not quite sure how to query that either so any help is appreciated!Thanks!
Hi,I have had a look to see if a radio button is available as a user parameter for an FME app that is pulling the parameters back using fmeserver.js.<form id="fmeForm" name="fmeForm" onsubmit="return dataDist.orderData(this);" onchange="dataDist.updateQuery()">Does anyone know if this is doable?
I have one raster with values of 1 and NoData (as defined in an earlier RasterExpressionEvaluator, with an expression such as follows: @if(A[0]>2999,1,0), and a second raster with values of 2 and NoData (defined earlier as follows: @if(A[0]>2999,2,0). In both rasters, NoData value is the same (0)When I want to make a composite raster, by taking raster 1 where values are 1, and else values of raster 2, e.g. @if(A[0]==1,A[0],B[0]), pixels with NoData in raster 1 will remain NoData. The expected behavior is that all pixels that are false in the expression become values of raster 2. Is this intentional behavior? It can be avoided by using RasterBandNoDataRemover but it seems silly to me that RasterExpressionEvaluator does not take it into account while demanding that of all input rasters the nodata values are the same...
Hi everyone,I'm a beginner of FME desktop. I have several raster dataset. Each of them is a folder containing several .adf, .xml and .log files. I want to read them in the FME desktop then convert them into polygons, so that I can next overlay and tessellate these polygon layer. But I got stuck at the first of all step-- choosing the reader. I tried the "GIS Binary Grid", which gives me the warning "File contents may be invalid, or the file format may not be supported".Also chose the format of .hdr raw raster, ASCII Grid and .gdb, the folders are greyed out and cannot be chose in the Dataset window. As additional information, eg. one of the dataset I failed to open in FME is the Esri DEM raster dataset. It's a folder containing a set of .adf, .xml and log files. It shows as "raster dataset" in the platform of Esri Arc Catalog.Figure 1. the raster dataset shown in Esri desktop.Figure 2. The dem10_plains folder contents. Should I transfer the raster
I want to write data to an Autocad object data writer. It will not finish translation and the text "Object Data Reader: Failed to load object data handling module. No object data will be read" appears in de log file. There is a notification that says: File C:\\Program Files\\FME\\metafile\\autocadCorrTemplate.fmi could not be openedIt happens in 2017.x and 2018.x. I have checked if the file exists in that folder. It doesn't. There are two other files that are called "autocadCorrTemplateDestination.fmi" and "autocadCorrTemplateSource.fmi".Strang thing is that colleagues in various FME versions not having this problem. One has the same device I have. Who knows why my workspace is fails?FME version: 2018.1 64-bit smallworld licenseBecause the translation fails, I have turned on logging with debug.
@DaveAtSafeHi I am trying to follow the instructions provided in https://knowledge.safe.com/articles/19640/how-to-create-a-wms-service-using-fme-server.htmlto create a wms service. I have created the 2 services GetCapabilities and GetPNG in FME server, and I can test each successfully using following urls:http://myserver/fmedatastreaming/TestOGC/GetCapabilities.fmw?SERVICE=WMS&REQUEST;=GetCapabilities&VERSION;=1.1.1 http://myserver/fmedatastreaming/TestOGC/GetPNG.fmw?SERVICE=WMS&VERSION;=1.1.1&REQUEST;=GetMap&LAYERS;=PETROLSTATION_PT&STYLES;=&FORMAT;=image%2Fpng&TRANSPARENT;=TRUE&BBOX;=350000%2C284000%2C460000%2C370000&WIDTH;=1024&HEIGHT;=1024&EXCEPTIONS;=application%2Fvnd.ogc.se_xmlHowever using FME web user interface, the GetPNG service does not create any outputAlso, should I be able to consume this wms service in any web client using http://myserver/fmedatastreaming/TestOGC/GetCapabilities.fmw?
Hallo community! I want to give you some vision about my try to create an xml document with the "XMLTemplater". The problem in my workflow is that i can't create an variable in one subtemplate to read it in an other subtemplate. (second picture show what i mean with subtemplate). Thats why i can't fill the right geometry information into my structure because my subtemplate "GEOMETRY" doesn't know in which road he is and so he can't get the right nodes out of a list which includes all nodes.So my question is now which possible ways do i have to solve that problem or how to create the xml-file with an defined structure over an other way (not over an "XMLTemplater") ?
Hallo! My problem is that i try to start a simple template with just an "Root Template". The code is like:<OpenDRIVE> <header>revMajor="1" revMinor="1" name="" version="1.00" date="Fri Jul 27 14:52:00 2018" north="0.0000000000000000e+00" south="0.0000000000000000e+00" east="0.0000000000000000e+00" west="0.0000000000000000e+00"</header>{ if (fme:has-attribute("id")) then <road> r="road works" </road>}</OpenDRIVE>The console give me that output:XMLTemplater(XMLTemplaterFactory): The following error occurred near line 7, column 32 of the query:XMLTemplater(XMLTemplaterFactory): invalid expression: syntax error, unexpected ExprSingle (missing comma "," between expressions?)XMLTemplater(XMLTemplaterFactory): An error occurred while parsing the ROOT templateXMLTemplater(XMLTemplaterFactory): A fatal error has occurred. Check the logfile above for detailsA fatal error has occurred. Check the logfile above for de
Hi,I've an issue regarding the TinGenerator transformer. I have this error :ERROR |Surface Model: Infinite loop detected while optimizing model. ERROR | If there are input BREAKLINES, please first re-connect input to POINTS/LINES. 2018-01-24 ERROR | If this re-connection gets rid of the problem, please restore the connection tERROR | BREAKLINES, find the breaklines that caused the problem, then email support@safe.com. Breaklines may cause trouble if they are self-intersecting, overlapping, or topologically incorrect.ERROR |TINGenerator(SurfaceModelFactory): Fail to obtain the 'DRAPED_FEATURES' from the underlying Surface Model ERROR |Error encountered by the SurfaceModelFactory. TINGenerator(SurfaceModelFactory): A fatal error has occurred. It seems there is a problem with the breaklines. How can I solve this problem ? Any test to run ?Thank you in advance fpr your ideas.Fabien
I have calculated approx. 3000 possible routes with the ShortestPathFinder over a network. Most of the routes are overlapping each other. At some networksections more then 50 routes are overlapped. I will split op the sections and fill the _overlap attribute with the amount of overlapping routes and I use the LineOnLineOverlayer for that. But the LineOnLineOverlayer performs very slow in this case. Does anyone knows how I can increase the speed?Regards,Steven Loosman
Hello There the workspace work with no error on the FME desktop but when published on the FME server I am getting this error (The clause 'JSON_DOCUMENT @EvaluateExpression(FDIV,STRING_ENCODED,<at>Value<openparen>text_line_data<closeparen>,JSONValidator) READ_FROM_FILE NO FILEPATH_OR_URL <Unused>' within 'FACTORY_DEF * JSONFormatterFactory FACTORY_NAME JSONValidator INPUT FEATURE_TYPE UUIDGenerator_OUTPUT JSON_DOCUMENT @EvaluateExpression(FDIV,STRING_ENCODED,<at>Value<openparen>text_line_data<closeparen>,JSONValidator) READ_FROM_FILE NO FILEPATH_OR_URL <Unused> FORMAT NONE SYNTAX_ERROR_LIST_ATTR _json_error OUTPUT OUTPUT FEATURE_TYPE JSONValidator_PASSED OUTPUT INVALID FEATURE_TYPE JSONValidator_FAILED' is incorrect. The parameter to JSON_DOCUMENT must be a constant value, a value-of (&) attribute, or an FME function call)Any idea please ??this is the Json transformaer section of the WS
Hello everyone,I'm using FME Desktop 2017.1 to read from a CosmosDB colleciton. This works fine for single-partition collections, but with partitioned collections FME raises an error telling me that the "x-ms-documentdb-query-enablecrosspartition" needs to be set. Has anyone experienced this and found a workaround, or am I missing a setting somewhere? The alternative would be to use the CosmosDB REST API, but that would be quite a bit of effort so isn't really an option at the moment.Thanks,Jan
Hi,sorry for this, I have a strong feeling this is for the beginners level but I can't figure it out after 2 hours of trying so maybe someone can show me the right way (I'm also a FME beginner who did only a few workbenches till now).I need to update an xml file in a way to delete elements based on some condition. For example in this xml file:<?xml version="1.0" encoding="UTF-8"?><bookstore> <book category="cooking"> <title lang="en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> <book category="children"> <title lang="en">Harry Potter</title> <author>J K. Rowling</author> <year>2005</year> <price>29.99</price> </book> <book category="web"> <title lang="en">Learning XML</title>
Hello,I have a list of countries in csv format e.g.: ALBANIA, AUSTRALIA, COLOMBIA, CHILE, NORWAY etc. and I have some records I'm reading from a database. I would like to find out if the description part of these records contains one of these countries from the csv. A description could be : CHINESE NOTICE 14/261; JAPANESE NOTICE 28; GERMAN NOTICE 23; COLOMBIAN NOTICE 172; SWEDISH NOTICE 593; GREEK CHART 311; AUSTRALIAN NOTICE 993. So the country name is not necessarily complete (Chinese, Swedish) or the description is longer than the country name (Japanese, Australian). Any tips what transformer to use? Thanks!
Good morning,I am trying to georeference a few CAD files by using FME. I have a script that can be used in AutoCAD to achieve this (), but I would rather have everything completed within FME. It is working for some but not all, I'm not sure what I am missing. Any assistance would be great!Thank you!David Prosack
Using FME 2018.1 (build 18528 x64)I'm noticing that two seemingly identical features are showing as updated when comparing them using Update Detector. The geometry is what is being detected as a difference, even when using lenient geometry matching. Any ideas why? - unzips to ffs file type, ffs attachments apparently aren't allowed using the file uploaderThanks in advance!
HiI am trying to use the InlineQuerier for the first time. I am using it instead of FeatureMerger because I want to do a join using a Like statement with wildcards which is not possible with FeatureMerger.However I can't work out why my query is not running. I have done the same query within Oracle SQL Developer and it worked, but it is not working in InlineQuerier.The query I've tried is below but I get a "Format and Dataset Unspecified" error when I try to run it.SELECT b."POSTCODE",a."POSTCODE_AREA" FROM "OS_POSTCODE_UNITS" b INNER JOIN "TABLE1" a ON REPLACE (b."POSTCODE", ' ', '') LIKE CONCAT(REPLACE (a."POSTCODE_AREA", ' ', ''), '%');Screenshot is also included.I believe I have not set up the InlineQuerier properly in terms of the Input and Outputs, but I am struggling to understand what I am supposed to put here. Does anyone have a step-by-step example of how t
I have polylines and polygons as separate source data. A polyline that has an end in a polygon must be clipped with a polygon, leaving only part outside the polygon. At the same time, the lines thats intersects the polygons must remain unchanged.
HiI have just downloaded FME disktop tro convert TAB files to KLM, but when opening TAB files containing arabic text, all arabic text get normalized to _____ ____...it seems an encoding problem, how can I resolve it?Mohammad Issamohissa@Umniah.com
Is there a way to aggregate based on a condition? I have a set of polygons that I want to aggregate based on the distance. That has worked with the workaround @takashi has posted numerous times (with the buffer, en the count etc). But now I end up with aggregates that have a larger summed attribute value than I would like. Is there a way to add conditions to the aggregating proces? As in, form an aggregate based on distance, but if the summed attribute value exceeds a certain amount, further separate the aggregates.
I would like to compare the geometry of two file geodatabase feature classes to locate spatial differences that I know exist based on the number of records of each and visual comparison (see highlighted linework). Is this something I can do using FME? I've tried using the both the ChangeDetector and Matcher transformers, however, neither of the results produce an output that specifically locates the differences. I'm only interested in 2D geometry changes and have not identified any attributes to match. I've also tried this FME model using other fc's that have a difference of 1 record but also get outputs that include many records, making it difficult to actually locate the issue.
How do you remove a colinear point from a polygon when it is the first/last vertex? When using the generalizer (Douglas) the wrong point is removed. See attached workspace for an example of two similar polygons. The one where the colinear point is not the first/last vertex works as expected. The one where the first/last point is colinear, keeps that point and removes an important vertex.