Using transformers to modify data.
Recently active
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.
For a project with an old projection I am trying to create multiple equal sized polygons within a bigger polygon. This is of importance because the historic projection uses intersections of distances to locate objects. So what I am trying to do is creating the polygons of equal distances into a larger polygon. I currently use the 2D Grid accumulator for this. However, this makes use of an hull around the polygon I've created. Therefore, some of the created polygons are outside of the project area. So, when looking at the image I would like to have 100 polygons of equal size in both directions tilted with the project area (Red line) and all within the project area. Let me know if anything is still unclear. Thanks in advance!
Hi!Using FME Desktop 20202.0, I cannot explain to myself why GeometryValidator transformer can miss a geo-issue when using ShapeFile format while can catch it for the same dataset in FileGDB format. Attaching screenshot. Any ideas?Thanks,Juanma,
FME Desktop 2022: How to specify the type of created attribute field (chr, double, integer, etc.)? I couldn’t figure out how to specify the type of the attribute field In the screenshot below, I created the “AreaPercent” attribute but couldn’t figure out how to specify its type. However, as it’s written in a feature class geodatabase, it’s considered as “chr”. How this can be managed?
FME Desktop 2022: How two columns of points are transferred as two fields in the attribute table of polygon layer? As per the screenshot (and the attached data): 1) I have a data that is generated in point layer and polygon layer2) Each feature of the point layer lies next to a feature from the polygon layer Now, how the two columns of the point layer are transferred as two fields in the attribute table of the polygon layer?
FME Desktop 2022: How to add comma separator (thousands separator) and specify the number of decimal places? I couldn’t figure out how to add comma separator (thousands separator) and specify the number of decimal places as they appear in the table
transformers
Is there a transformer to read the unique values contained within an attribute and then assign a new value? Similar to the way that the attribute manager works but for values. For example I have a dataset with the columns fruits: Fruits New Value-------- ----------------Apple > Green AppleBananaOrange > Blond OrangeKiwi > Golden Kiwi Ideally the transformer would read the unique values listed in the Fruits attribute and then I could specify the new value for the output. As I am working with large datasets, I do not want to have to create a mapping rule for every value individually. Ideally the values would be automatically clustered and would be presented in a table and I could then just specify the newly mapped value.
How would I go about spitting a column every 12th row so I have three features from column a instead of one
Hello everyone, I have this very large raster and a shapefile with polygons. My process is a looping one where the raster is clipped with each polygon. In order to avoid reading the whole raster everytime, I've created a subprocess that uses the polygon bounds directly in the search envelop of reader. Then, it is clipped.My problem arise when the polygon used for clipping is outside the raster extent. The "inside" port of the transformer is empty but the process continues. This output is supposed to be used later on in a script (arcpy custom transformer) to align many other rasters. But clearly all this fails because there is no raster. The best solution I have come up with would be to add a Tester or something after the transformer and create a bolean value which would allow me to deal with this empty raster directly in the script. However, I can't seem to find a way to do that. Mind me, I cannot use the "outside" port since I always have an extra part to
Hello,After using the CenterLineReplacer transformer on a ploygon I get the following result. Is it possible to extend the line that was created before so that it reaches the edge of the polygon? Thanks for your help