Using transformers to modify data.
Recently active
I have a SHAPE-dataset with lines that I turn into polygones with the bufferer. Some of the lines are on top of each other, but that was never a problem so far. But now I have a new bunch of lines where for just a few, the bufferer only puts out one of the overlaying buffered areas insead of both. This only happens with about 10 lines while it works fine for the other 300.So far a could not find a common trait for those where it doesn't work compared where it does work.The lines are normal lines with no self-intersections (according to the GeometryValidator)Does anybody have a clue, why this might be happending?Thank you!
Here are some examples:original data497.2594497509648497.3865495.31495.29expected result:497.2497.4495.4495.2And I have another case where I want to round my list of numbers to the closest of four options: integer, ending with .25 or ending with .5 or ending with .75. my examples:original data497.2594497509648497.8865495.77495.45expected result:497.25498495.75495.5thank you.
I'm using the new SchemaScanner before writing shapefiles. Until now, I was using a User Parameter to specify the Dataset (destination folder) of the shapefile. I'd like to switch to an attribute to specify the path or just '$(DIR_output_folder)/something-else' but I'm getting an error: FeatureWriter_4 (WriterFactory): MULTI_WRITER: No dataset was specified for MULTI_WRITER_DATASET or FeatureWriter_4_0_DATASET or SHAPEFILE_DATASETSchemaScanner_3_Output_-1_493_Player (RecorderFactory): MULTI_WRITER: No dataset was specified for MULTI_WRITER_DATASET or FeatureWriter_4_0_DATASET or SHAPEFILE_DATASETTranslation FAILED with 2 error(s) and 0 warning(s) (0 feature(s) output) It's working fine without the SchemaScanner, but not with it. How can I set up the dataset properly? Is it an encoding issue?
Is it possible to set up a reader to have a user parameter? I want the user to be able to input a shapefile of their choice but I can't seem to find an option to have a user parameter in a reader.
I have a problem with the attributetransposer in a workspace that has a couple of httpcallers upstream. In case all the httpcallers get a rejected call (handled with an emailer) no input is going into the AttributeTransposer. I then see the following error showing in the log:AttributeTransposer Input Input Collector (TeeFactory): Cloned 0 input feature(s) into 0 output feature(s)AttributeTransposer_Input1509999976 Input Splitter (TeeFactory): Cloned 0 input feature(s) into 0 output feature(s)AttributeTransposer_ParameterFetcher (TeeFactory): Cloned 0 input feature(s) into 0 output feature(s)Python Exception <TypeError>: Input must be a string or unicode.Traceback (most recent call last): File "<string>", line 86, in closeTypeError: object of type 'NoneType' has no len()During handling of the above exception, another exception occurred:Traceback (most recent call last): File "<string>", line 99, in close File "<string>", line 24, in throwTypeError: Input must
Currently I run a testfilter that checks the name of a fme_feature_type which has layer names from the drawing. So basically my testfilter is full of if statements like "if @value(fme_feature_type) LIKE %P-STM-MH" and output each if statement to its own output port (Ie 'Manholes' or 'Storm Mainline'). from there i run an attribute creator on each output. the attributecreator looks at the field_name and i add it to a field in my shapefile but named differently. So if field_name is STM-MH its added as an attribute in my shapefile as 'Storm Manhole'Is there a more efficient way of doing this vs what im doing? I feel like I'll have a lot of layers and there for a lot of outputs where I might need to run 10+ attribute creators.If theres a better way of doing this I'd love to know it. Thanks
The workspaces receives a JSON message with information about the columns & geometry (where the user is interested in). We use the geometry in the FeatureReader (Spatial Filter) that is working fine, but the user only wants the attributes: "test1", "test2" in this example. How can i filter the feature class only to: "test1" & "test2". And how can i make this dynamic because it is every time different (attributes)? The output is an excel file. thank you.
I have a simple FME 2021.2.1.0 workspace which isn't very usable - its just for giving a simple example: My custom transformer looks like this: I am trying to create the custom transformer so that it takes one user parameter from the main workspace and use it for the bufferer. I would like the Anchored Snapper to use a fraction (10% as an example) of the my_value user parameter as the Snapping Distance. The problem is that the Anchored Snapper can only use a hard coded value or a user parameter as input. In the custom transformer I can create a "Number" user parameter but I cannot assign it the my_value user parameter and multiply it by 0.1.I can create a scripted python user parameter but when I use FME_MacroValues['my_value'] to return a new value FME_MacroValues['my_value'] just returns "$(my_value)" (I guess it needs to be dereferenced somehow?). I can create another user parameter in the main workspace and give it to the custom transformer,
Hello, for a 3D visualization I would like to assign contaminant data from soil samples from varying intervals (e. g. 0,5 m) into a smaller interval of choice, e. g. 0,1 m. An example of my input/original data and the desired output with a densification interval of 0,1 m is shown here:In our recent example, we have around 350 samples. By now, this is easy to solve with Excel formulas, but takes some time to process . As I am quite new to FME but also in terms of a future automation – is there a quick to do this in FME? Or would a Python script be more practicable in this case? Thanks for any hints and suggestions! Kind regardsAlex
Hi all,I'm having a bottle-neck on a workbench due to the use of the transformer "NeighborFinder". This operation only is taking around 18 hours. The goal is to find around 200K points to the nearest Polygon (having around 10K). Points that I want are quite near, not touching some times. Also, there are some points that are farther and I don't want to have them on the "MatchedBase" output (red ones): These are the transformer parameters: Also, attributes from Polygon need to be transferred.I don't see the option to make the search by Groups, since I cannot foresee which points belongs to certain Polygons beforehand. Also, reducing the number of features is not possible. Any suggestion?Something that could be faster on that search?Thanks!Juanma,
I am developing a leaflet-based web app. I would like to pass the geojson drawn by a user in leaflet through the FME rest API to my workspace in FME server. The workspace contains a geojson reader, topologycalculator and geojson writer. But so far, the geojson reader accepts only a file or URL. Is it possible to send it along with URL as a parameter without the need to create a file. Something likeURL Example :http://desktop-f25rpfv:8080/fmerest/v3/transformations/submit/GeneralizationPredict/networkcalculator.fmw?data = {geojson object}
Hey folks, I am brand new to FME script writing. I have for example, a DWG with sewer, water and electrical lines. The layer names are usually all the same except with unique numbers. eg. HET-32434-WATor HET-23422-WAT-SERor HET-232345-ELECetc I am trying to output each of the categories into their own shape files so I can simply point my script to a dwg and run it. I have no problem doing this manually by adding the DWG into my workspace where it asks me what layers to load into the workspace and I can point those to an attribute creator and output a shapefile. That works fine, I am just trying to figure out how I can have it look in a DWG drawing I specify for the layer names like %WAT% to output all my waterlines into a shapefile. Hopefully I made sense here. Thanks
Hello, To automate some of my tasks using FME, I'm currently trying to make FME download some .7z files and extract their content (composed of subfolders, txt files, pdf and shp). I managed to make FME download the archive and store it into a temporary folder just as I wanted but know I want to make FME extract the content of the archive so I can then sort it's content (I want to go inside the subfolders and only extract shp files, then work on them). I've already tried to use some transformers like "ZipExtractor" or "Unzipper" but they don't seem to make what I'd like... If someone know a way to extract and sort zipfile's content using FME please help me ! Regards,Andy METAYER
FME Desktop 2022: “AttributeCreator” fails to copy a field into another using the arithmetic editor, In the screenshot below, I wanted to copy the “fme_text_string” field to the “F1” but appears not work except for the first record. What could be the issue here? The data and workbench are attached
There is no log file written to the set output folder (as a parameter) when running the workspace from FME Server. The FME server version is FME(R) 2019.2.3.2 (20200320 - Build 19825 - WIN32). What could be the reason?
I have a polygon with a line inside. I want to create several polygons out of the big one by snipping the line every 1 Meter. See my image for reference: I want to cut the red line every meter and split the polygon at that point by using a perpendicular line to the red one. As a result I will get more than 10 polygons.
I have a dataset containing attributes, but I can't read the coordinate value anywhere? The coordinates in the FME data inspector are. How do I load them in the workspace? Thanks a lot This is a loading xml of the model aixm 5.1
Is there a possibility to convert an esri shapefile (geometry: polygon) to esri shapefile (geometry: multipatch) ?If I try this directly Reader Esri shapefile --> Write Esri shapefile (geometry: Multipatch) I have no geometry only the attributes. Does anyone know how to convert to multipatch?
Can you please implement XQuery, i think this will be the best way. I want to save like in attachment.
I have created lod2 buodings by using the transformer BRepSolidBoundaryCreator.Beta. After this I used SurfaceonSurfaceOverlayer and tester (overlaps < 2) to remove internal walls. Afterwards I am using GeometryValidator to check if there are some errors inside. I have some Self Intersections:When I use "Self intersections in 2D" how can I check if the repaired geometries are without gaps? Could it be that during the repair some fixed polygons have gaps to the neighboring polygons?
I have a base shapefile and a 3D model ( but the faces are separate and don't represent a single cube) I want it to combine as a single cube.
Hi, From my reader I get an area feature (determined by the 'GeometryFilter'), but for my writer I need a Surface Feature. How do I convert an Are to a Surface? Thanks a lot! Michel
I am using the MongoDB3 reader successfully on a cluster that is a part of Atlas subscription but when I change the database connector to another cluster with the same data model it will not return any features. There are no errors that I can see.
I have experience with FME but only in writing from ArcGIS to CAD, and have never had any formal training, or the option for it. :(I have been tasked to write DGN V7 files to PDF. I do not have Bentley software or any experience in Microstation. This is not a fancy translation by any means, but I am having serious issues trying to determine what attributes to expose and how they correlate to the PDF writer. Are there any tutorials available or documents laying out this type of work flow?
I have a lot of JSON-responses that wraps an base64-encoded excelfile (response.json). If I extract the data-part and try to decode it using BinaryDecoder (base64 to hex I guess). And then decode to ASCII, I get only a few chars that makes no sense. If I use an online-service (https://www.base64decode.org/) and add the data-part of the JSON-file (JSON response -.....) I get a perfect excel-file. I can't seem to figure out the part that the online-service performs and the part I can't make FME do. Any help is appreciated.