Using transformers to modify data.
Recently active
I have XML file with features I'm trying to read.. that works. Next step is to create a polygon for each feature, I have a string with points that make the polygon. String looks like this: 173363.252 587903.412 173363.369 587902.665 173362.055 587900.798 173363.867 587888.745 173364.007 587887.815 173371.744 587888.843 173368.618 587904.7 173363.252 587903.412 That's a list of x and y coordinates, now I can't figure out a idea to make polygons from it. Any ideas? Do I have to seperate them, create lines and make a polygon from it? Any help is appreciated.
I would like to convert a json file to csv using a csv writer from a json fragmenter. How do I convert it? The json file is an output that is generated using API tokens. When I run the FME workbench, the translation log is successful. But when I try to inspect the data, I get the below error message. Please look into it and do the needful. An error has occurred. Check the logfile above for detailsCSV reader: Failed to open file 'C:\\PSDCitywide_towns\\Lake simcoe\\LakeSimcoe_Trial_17J2024\\@Value(Assets).csv' for reading. Please ensure that the file exists and you have sufficient privileges to read itCSV reader: Failed to open file 'C:\\PSDCitywide_towns\\Lake simcoe\\LakeSimcoe_Trial_17J2024\\@Value(Assets).csv' for reading. Please ensure that the file exists and you have sufficient privileges to read itAn error has occurred. Check the logfile above for detailsFailed to specify the feature index as constraints on the readerAn error has occurred. Check the logfile abov
Hey guys, I have a fairly large dataset of lines and points. The points need to receive the Z coordinate from the nearest index on the line. Using the CoordinateExtractor followed by a ListExploder isn't an option because that would be too heavy for my workspace. Isn't it possible to use the CoordinateExtractor in a way that in the setting 'Specify coordinate' you only extract the index that is nearest to a point feature? Is there a different way to go about this?
I have an FME session set up, from shapefile to shapefile with a renamer. My number fields go in as "Long". They are set to come out as "Long". When I pull the output into ArcGIS, the format is "Double" What am I doing wrong?
Hello,I encountered an issue while using the RasterObjectDetectorSamplePreparer to prepare samples for the RasterObjectDetectorModelTrainer. My goal is to detect certain objects based on a digital orthophoto image. I created an annotation.txt file using OpenCV and provided the relative paths to the negative samples directory and the annotation file as inputs to the Sample Preparer transformer. However, when running my workspace, I received the following translation log message:Translation FAILED.The translation was terminated due to the following feature:RasterObjectDetectorSamplePreparer_<Rejected> (TeeFactory): RasterObjectDetectorSamplePreparer_<Rejected>: Termination Message: 'RasterObjectDetectorSamplePreparer output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''The feature on tag `PYOUTPUT' fail
(This is a spin of question from https://community.safe.com/s/feed/0D5OO000004YH4O0AW, but I thought it made sense to rephrase the question) I am trying to run a shell script from SystemCaller but for some weird reason I can not make it work. My command line is: cd "/Volumes/disc1/test_systemcaller/" && my_script.sh 25 5The numbers at the end are parameters for the script. The error I get from the log file is:sh: my_script.sh: command not foundThe file 'my_script.sh' is placed in the actual folder, so should be found.If I test the file path by asking it to do something simple, eg mkdir, it will happily do so in the right place.If I run the command from Terminal it works fine. I made a second script in the folder with a mkdir just for testing. While it works fine in Terminal, FME claims to know nothing about it. Since system caller cant find the script file, even though it is in the folder, I guess that something might be wrong with my syntax? I'm on a Mac if that matters.
My fmw is saved in a directory called C:\\DATA\\VariousTasks. A parameter called InputFolder is pointing to a subfolder of this directory. Is it possible not to use FME MF DIR predefined parameter ? I use a text parameter to point to C:\\DATA\\VariousTasks\\DEV but the script is replacing it automatically by "$(FME_MF_DIR_USERTYPED)DEV" when executing which translates to C:\\DATA\\VariousTasks/DEV . I am using a python script later and python is every sensitive to / and \\ . How can I force FME to use C:\\DATA\\VariousTasks\\DEV instead of $(FME_MF_DIR_USERTYPED)DEV (translating to C:\\DATA\\VariousTasks/DEV) ?
Hello! I would like to create LOD2 buildings, but somehow, my files don't show their own citygml relations between parent_id and gml_id. Could you find me some errors in my workflow? I created gml_parent_id as a field already. eg.)<?xml version="1.0" encoding="UTF-8"?><core:CityModel xmlns:brid="http://www.opengis.net/citygml/bridge/2.0" xmlns:tran="http://www.opengis.net/citygml/transportation/2.0" xmlns:frn="http://www.opengis.net/citygml/cityfurniture/2.0" xmlns:wtr="http://www.opengis.net/citygml/waterbody/2.0" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:veg="http://www.opengis.net/citygml/vegetation/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tun="http://www.opengis.net/citygml/tunnel/2.0" xmlns:tex="http://www.opengis.net/citygml/texturedsurface/2.0" xmlns:gml="http://www.opengis.net/gml" xmlns:gen="http://www.opengis.net/cit
I have a workspace that takes a spreadsheet that contains these fields: And I've got that reader feeding into a FeatureReader that grabs the Source Dataset feature classes from a specified .gdb. I would like to dynamically create a new attribute called "_description" and populate it with the values in the Feature Description column. The values that are referenced in the Feature Description column are not exposed, but I can view the values when I click on a feature in the visual preview. I've tried to use an AttributeCreator with the following parameters:However the output looks like the literal string input values, instead of dynamically grabbing the values from the feature:Is there another way I can achieve this?
Hello, i used the topologybuilder transformer to build the topology of a network ( roads centrlines). The problem is that z values are not considered while computing intersections. So it may not produce correct results for overpasses, inderpasses....Any recommandations please. Thank you.
I have got this Geometry XML data from HTTPCaller and need to know what is next to convert it to SHP file or other ESRI formats, I tried to find an XML template for geometry and run it with XML Processor and then XMLFragmente, but I didn't get the data.
I am writing to MSSQL using a dynamic featureWriter. But I can not understand why it fail to write to an existing schema. Warning: Cannot find a matching schema named 'dbo.MyTable' in the known set of schemas: ''. Known schema sources are: 'MSSQL_SPATIAL_1'. Please verify writer feature type configuration Error: Microsoft SQL Server Spatial Writer: A feature has arrived with 'fme_feature_type' of dbo.MyTable, but the feature type is not recognized. Halting translationMSSQL_SPATIAL writer: A fatal error has occurred. Check the logfile above for details. The fme_feature_type here is "MyTable". In the writer I use dbo as table Qualifier to match the existing table in my database "dbo.MyTable".What is it I am not getting? I have set the Schema Definition Name to the default option because it should use the table definition for the fme_feature_type "dbo.MyTable". I will try to prefix the Schema Definition Name with the dbo. prefi
I am trying to segment a line dataset at every intersection with a polygon dataset. Instead of breaking the line at the true intersection, the transformer appears to generalize the polygon first, then break the line at resulting intersections. The result is as seen in the image, in this case a dangle of about 7'. (candidate line left to right, original polygon in brown, and Intersector's drawn line from bottom left to top right. Selected blue line should end at polygon boundary.)I've tried LineOnAreaOverlayer, Intersector and Clipper with similar results. I've manipulated the coordinate systems of each dataset and changed their source type with no differences. What am I doing wrong? Thanks!
Pretty simple data export, I have a reader referencing some SDE data and then a writer to a file geodatabase. But reviewing the attributes in the file geodatabase I see that the domain attributes are the codes (1,2.3, etc) not the descriptions (copper, steel, PVC, etc).Is there a way to write the domain descriptions and not codes? The same is true for the subtypes, it is writing the code (1,2,3) and not the description (tap, bend, saddle, etc).
Hi,How can I expose the information that are visible in the Properties/Source tab of feature layer
I am joining 3 tables together. There will always be a record in the first table and there may or may not be a related record in the second. If there is a related record, there may or may not be a record in the third. I always want to have the record from the first table.The relationships are as follows:Left: Table 1 primary key - Right: Table 2 foreign keyLeft: Table 2 primary key - Right: Table 3 foregin keyWhen I try and set this up using FeatureJoiner transformers, it works ok on the first, but if there is no record in the second table, it cannot join to the third as there is no left key. Is there any way to pass records with a null left key in FeatureJoiner? If I did a similar workflow in a Microsoft Access query I would still have the record from the first table. I presume I could use a FeatureMerger and pass Merged and UnmergedRequestor into the input of the next transformer. This could work ok but I do much prefer the FeatureJoinerMany thanks
Hello! I could make a 3D buildings with simple roof form, I got SurfaceNormal Z, so I could separate flat form roof. But I have a building with complex roof. So I want to separate the building from certain Z height, above it, it is roof and under it, it is body of the building. Do you have any Idea to get it?
Hi, I am working on translating data from numbers to phrases. I know using the String Replacer and Attribute Value Mapper is the best for this, but I am having issues when trying to map more than one value to one field. An example would be the reason_of_given_set has multiple values, I need these values to populate with given phrases, each number represents a phrase. I provided the parameters of the transformer I am using below. I also tried creating 14 different string replacers to represent each number and each time the output shows blank at the attributes with multiple values. I am probably using the Attribute Value Mapper transformer incorrectly and its not designed to do this, or I have the parameters set incorrectly. Does anyone know how I can fix this?
I have a "Directory and File Pathnames" reader that gives me a list of text files in a Windows folder. I want to pass those folder and filenames to a FeatureReader transformer and be able to read the text lines from them as output for further processing, but I can't seem to get anything out of the FeatureReader other than the results of the Directory and File Pathnames that go into it. How do I get the contents of the text files out?
Hi,I am facing an issue where wall was not rendered properly by the FME inspector as it has direction issue. I tried "SurfaceNormalExtractor" but I didn't get any information out of the transformer. Please find the screenshot. Could you please help me in this regard. Same issue was posted 6 years back https://community.safe.com/s/question/0D54Q000080hfTrSAI/citygml-generation Wall not render properly in FME inspector
I am utilizing the EsriReprojector and am getting limited results for datum transformation options from GCS_WGS_1984 to EPSG:6574. Is there a certain setting that needs to be applied to gain the other transformation options?
Is it possible to write into 'autocad_layer_desc'? A key piece of info/metadata that seems to be unavailable on DWG writers.
The documentation for autocad_dimension features says that you can use an attribute "autocad_text_rotation" to rotate the text of a dimension.See autocad_dimensionHowever, I haven't succeeded in rotating the dimension text yet.I use "autocad_dimension_type" = autocad_aligned Any ideas?
Hi, I'm trying to write an XLS file based on a template (according to this help), with complete rewriting of the data (Overwrite Existing File = Yes) and I can't find a way to keep the order of the columns according to the template in the output XLS and not in the order in which FME processes the attributes. For example, I would like that if I invert 2 columns in the template, it also inverts it in the output xls, without setting this with an attribute manager. Did I miss a parameter in the xls output that would allow this or is there another method.Thanks a lot in advance for your answers and best regards. Antonin