Using transformers to modify data.
Recently active
I have a dataset of local roads, which I want to use for ShortestPathFinder. The road network includes roads on islands, and those roads are not connected to the roads on the mainland.Is there a transformer that can output only those roads that are part of the mainland road network? I want to eliminate the islands.
I've been struggling with this for quite some time now, but without success...I need to write a pdf-File for each feature of my data, containing only a table with it's attributes (Attribute Name: Attribute Value), no geometry.As suggested here https://knowledge.safe.com/questions/74002/attribute-data-to-pdf.html, I first tried to write excel-Files with this tables, using a featurewriter / fanout (https://knowledge.safe.com/questions/46550/dataset-fanout-for-featurewriter.html)But my problem is, how can I write a table with the names of the attributes on the same lines as their values ? (When I'll have succeeded in writing the excel files, then I'll try to read them with a featureReader and write pdf-Files, using the TableAdder...)Thanks in advance, Vera
I have downloaded the OpenStreetMap file for Australia and successfully extracted the road geometry (tagged as "highway").I want to use this as the Network input for the ShortestPathFinder transformer.What other transformations should I do to clean up the dataset? For example, the line geometries are typically not broken at intersections, but I think that they should be.
Good morning! My input data is a series of 3D polygons that represent Administrative Units stored in an ESRI Geodatabase.I've been tasked with calculating the area of those polygons. For that i wanted to use the AreaCalculator transformer with Type parameter as "Sloped Area".No problems there. Except the final user of that data wants the area to be calculated using the Simpson's Rule. I had no idea what that was, so I've been looking for info a little bit:https://www.emathzone.com/tutorials/geometry/simpsons-rule.htmlI still don't know how to translate that to FME. Could anyone give me any pointers, please?
I have a plsql script to perform some task on db. But it doesn't contain any code for returning output(results are stored in variables). I need to get these results into FME SQL executor or creator.Is there any code sample to start with this? All I need is a example plsql code to get results into FME SQL Executor.
Hello,I have an issue when using the linejoiner. I would like to merge lineear features, some of them are arc while other are segment line.I first use ArcStoker to transform all the arc features in to segment lines and then I use LineJoiner to combine the features..It appears that the transformation with ArcStroker is creating a shift between the start/end point of consecutive features lines. Because of that it is not possible to merge the original arc features with the line segment features.Does anyone has an idea on how to overcome this issue?Thanks
Hi all, I've been playing around with the system caller, however, I've found that when I abort my FME process the process triggered using the System Caller keeps running. Part of the problem is that I'm also using the TempPathnameCreator as the output for the called process, if I kill the FME process and the sub-process keeps running then the temp files also don't get deleted. I have to manually kill and then delete the process Does anyone know of a workaround for this?
Hi all,With the SystemCaller I am kicking off an executableThat executable is looking for a file with parameters in the working directory So if I use the Command Line in Windows, I go to D:\\TEMPThat then is my working directory and it has the parameter file : parameter.iniWhen I start the executable it uses this ini file But when I use SystemCaller and I set the working directory, the executable seems not to find the .ini file somehow Anyone an idea? I now use the PUSD command to set the working directory Then starting the executable Then close the command string with POPD
This is my first question so do tell me if I'm missing anything in the description of the question. I currently have a workspace where part of the functionality includes the merging of 5 columns (two of which are always empty). The data that isn't merged should be preserved for each of the rows that are created or already in existence. Below is an Excel example of what I mean:This is the current situation This is what it needs to become As you can see the data from the first three columns are merged into one but the other three columns (ID, Type and Type 2) remain unchanged and are copied to the new rows. This causes for example the row with ID 500 to split into three rows, all of which contain all attribute information from the original that wasn't merged. I looked for similar questions but the solutions didn't work for me such as the Attribute Exploder, which does not currently have an option to select what you want to explode. The solution given in this question came
Hi,I don't find out how to transpose a part of a simple data table.I read a lot in the documentation and this kb about the AttributePivoter and AttributeTransposer transformers or other tips and tricks (with AttributeExploder and Aggregator) but I don't get to use these solutions with my test case.Here is a (simplified) sample of my input data:And here is what I want as output:As you can see, the switch has to be done between the "type" and "month" attributes but I have to keep the student column.I would really appreciate any help because I'm stuck...Thanks,Christian
Hi folks,I'm having 2 issues with my FME Server and the running workspaces.1) The session created just like documented here https://playground.fmeserver.com/javascript/server-uploads/upload-file-in-session/ doesn't give me a session like a random number but as the username the token is connected to. What am I doing wrong? Or did I miss something with the token? Or in other words: How can I delete the uploaded data after the workspace ran successfully so that further job submissions don't get/take the data already uploaded?!2) One workspace in which I read a DWG-file adds quotes to the request-URL and though cannot find the uploaded data. When I strip the quotes everything works fine. How does this happen? The workspace has a FeatureReader to read the DWG to make it as an optional Reader (the parameter "Ignore Failed Readers" doesn't have effect). Why does FME Server takes it as a multiple set of files?! FME Server 2018.0.1 - Build 18310 - win64 Cheers, Maria
Hi, I have about 200K point and trying to find points within 100m and generate a list for each point by using NeighborFinder. But it is very slow as I expected. Does anyone know a trick to speed up the process? Thanks in advance!
Hello, I have a polygon and line data-sets. I would like to shift the polygon to the lines in a way that last edge of the polygon would touch the lines. Any ideas? Thanks a lot!Before shiftingAfter shifting
Hi to all,I have following part of XML:<field name="ROZL_SK" conditionName="skrinNN"><webEditable>0</webEditable></field><field name="CISLO" conditionName="skrinNN"><webEditable>0</webEditable><nullable>0</nullable></field><field name="SJZ_ZAR"><editable>0</editable><nullable>0</nullable></field><field name="DOD_ROZL" conditionName="skrinNN"><webEditable>0</webEditable></field> and prepared xfMap script: <?xml version="1.0"?><xfMap><feature-map multi-feature-construction="true"><mapping match="field"><feature-type><extract expr="@name"/></feature-type></mapping></feature-map><feature-content-map><attributes><attribute><name><literal expr="ConditionName"/></name>
Hi folksI've tried using ListBreaker to transform list indexes into attributes, it does exactly what I am searching to domy reader is a JSON file, depending to the file used, the workspace begins then stays in pause,without giving result i join the data and workspaceI use FME 2019 last build 19214 64bregards
XML fragmenter settings: (identical for v3 and v5). I have trouble getting the v5 of XML fragmenter to work - for some reason, it rejects ANY xml I throw at it. Even examples straight out of www.w3schools.com. The above examle is rejected with XML parser error: unable to open primary document entity '<xml version="1.0" ... The old trusty v3 works fine. In the above example, i used copy-paste from an older workspace I had lying around.Anybody else who has trouble with this?FME(R) 2018.1.0.2 (20180903 - Build 18547 - WIN64)
In my workspace, I want to extract roofs from existing models and extrude them to a DEM raster hence creating newer and cleaner models.The running of the workspace was unsuccessful and this was shown in the Translation Log.RasterClippingFactoryPipeline::MaskRasterizer(VectorToRasterFactory): 54 input feature(s) processed. 0 input feature(s) with invalid geometry discarded. 0 input feature(s) not compatible with the raster interpretation discarded. 54 raster(s) output@ProcessRasterTiles: Invalid raster dimensions: 0 rows by 1 columns. This function requires rasters to have positive values for both rows and columnsRasterBandMinMaxExtractor: A fatal error has occurred. Check the logfile above for detailsClipper_5_Raster(RasterClippingFactory): A fatal error has occurred. Check the logfile above for details.How can I find the source of the problem and erradicate it?I guess it can be caused by complicated or problematic models as it does not occur all the time.Please help me, Takashi/A
Hi,I'm trying to find the correct workflow to georeference a raster when the lat and long is stored in it's bands. I have a raster that has 3 bands:longitude (band 0)latitude (band 1)OLCI Terrestrial Chlorophyll Index (band 2) I think if I can dynamically pull the lat and long for the 4 corners of the raster, then I can use the corner x and y in the "rastergeoreferencer" transformer to correctly georeference it. I need this to be dynamic as the extent of the rasters may be different.
Hi All there are some discussion about centerline replacerI've tried to run to extract centerline of a poligons (taht represent roads) but I received 2019-02-26 13:45:14| 2.2| 0.5|WARN |CenterLineReplacer: Unable to prepare geometry for skeleton construction2019-02-26 13:45:14| 2.3| 0.1|WARN |CenterLineReplacer: Unable to prepare geometry for skeleton construction So can you suggest the correct workflow to obtai9n tjhe centerlineS ?thx Francesco
Hi.I'm using the StringSearcher to fetch a list of positions from a large JavaScript data string on a HTML page.I'm getting the right results per se, but for some reason, the "startIndex" property on each match stops showing the correct value at some point, yielding a lot of my found positions and names with the same value: 32572 and 32518 resp.Now, these values are errornous, and they're uncomfortably close to the infamous value 32768, so I suspect some kind of overflow has happened. Can this be confirmed or ?I'm using 2017 x64, and haven't been able to verify it in 2018.Cheers
Hello,I'm trying to work out a way to calculate a forecasted date from an existing recorded date + a numeric frequency. I understand there is a transformer in a more recent version of FME, however this isn't an option for me. Is there any way I can convert the date into a number, add the frequency, and then convert the number back to a date? Thanks in advance!
I use FME Server 2018. I'd like to send the result of a job to the user that submitted the job. I'd like to retrieve the email from the users list inside fme server because there are synchronized with Active Directory. With the FME_SECURITY_USER I've got the user but there aren't others FME_SERVER variables that contains the email. How I can get this information? Thank you for suggestions.
Hello, I have a street centerline data set which has street width information. I would like to buffer the lines by using GeographicallyBufferer based on the width information (to be more precise sum(div(@Value(SURFACEWID),2),16.4042) is my buffer size). However I can not because the street width attribute has long type. Is there any way to change it so that I could use the value of the attribute and use aritmetics with it. Thanks in advance.
Hello!I have a problem I have been trying to solve for a long time. The task is to connect two surfaces, located strictly one above the other with drawing side faces. The surfaces are geological strata, which would be combined in geological model like this: I was trying to use Extrusion of triangles in combination with CSGBuilder for getting an intersection of 2 extrusions, but this method working unstable (or, which is more possible, I'm doing something not right):https://knowledge.safe.com/questions/87241/csgbuilder-rejects-data.html Maybe there is other way to get side walls of surfaces and merge them with surfaces into solid? Thank you!
Hello! I have been trying to create a surface of some pointclouds that shows a rock slope in a project. I have a pointcloud and tried with the pointcloudsurfacebuilder transformer. I tried to trick with the parameters, but can not make it work. I get the same result as @atle_hoidalen. -> Atles post I am using the Simple Triangulation Construction Mode. Someone at Safe that could look at this issue and come with some solutions? :) Attached some pictures of the result.