Using transformers to modify data.
Recently active
Hi Fmeirs,My fmw working good in 2016 fme desktop. now i installed fme 2017. when i run my fme script it says python error cx_oracle not found. I used python inside my fmw. i am connecting to oracle using python program inside and updating oracle table.how can i move forward?please help
I am having trouble extracting all the information from a JSON. I have a JSON (see attached) with multiple addresses on the same level. When I use the JSON Flattener or the JSON fragmenter I only get the first address.The JSON in the attachment contains for example a JSONFeature addresses with the subfeature type which can be "vestigingsadres" or "correspondentieadres".This is just an example, same JSON I work with contain multiple addresses. And on forehand I do not know how many. How can I extract this information?
I am trying to replace point features (shapefile format) with 3D objects (sketchup, collada, etc.)I thought geometry replacer will carry out the task. But, I am not able to do thisPls help. Thanks in advance
Hello, I have a .SHP with lines and I need to extract X, Y coordinates as points for start and end nodes of lines and give them an ID. I could have a polyline containing several lines connected, in that case end node of first line is the same point as start point of next line. I tried with CoordinateExtractor, CoordinateConcentenator, AttributeKeeper but had no luck. Is there any solution for my problem?
Hello, I am currently working with gbXML file in FME. I am trying to display the points, out of the coordinates that I have. In the column Coordinate_xml_id last character refers to axis. 1-x, 2-y, 3-z. What I would like to do is to create separate columns for x, y, z Coordinates - so having all the x coordinates with Coordinate_xml_id with 1 at the end in one column, all the coordinates with coordinate_xml_id with 2 at the end in another column, etc. Any help would be much appreciated!
Hi there. I am a FME beginner and have a simple question regarding constructing a SQL statement.My goal is to use FeatureMerger to merge CSV table data with polygons. But this process is going to be a dynamic process, I want to create a flexible workspace. For example, I want to use different CSV input files but the rest of the process stay same.Here is my question. I want to use one of output value from a transformer in my SQL statement. How I can do that? I described my workflow below.1. There are a CSV file that has a join key field (in the image below it is called "area") and polygon data (join key name in this polygon is called key_code in the image below). This CSV data include lots of duplicated join key values.2. In order to use FeatureMarger between the CSV data and the polygon layer, I wanted to get a unique join key values from the CSV table. I used DuplicateFilter and Aggregator to get a comma separated join key values to use in a SQL statement later. At the end o
Is it possible to take a binary string in memory and use it in a transformer to tell it to treat it as a zip file? I know I can use a FeatureWriter (format set to data file) to write the binary string to disk then use a FeatureReader to read it back into memory. I was trying to skip the step of writing it to disk. Any help would be great!
Hi,I'm reading a bunch of data from a log database, transforming it and storing it somewhere else. I leave the unique ID attribute of the log message alone. So I want to make it so my workbench only reads the logging rows I haven't processed yet. The ID numbers are ascending so my idea was to check the destination database using SQL to get the highest ID stored in there, and only read/filter from the source based on that. Now: How do I do this? I can get the current highest ID processing using the SQLCreator, but how do i read/filter based on that?Thanks!
I use the Aggregator to merge polygons based on one attribute. When the output is Shapefile, multipolygons are created and all works fine.When the output is OGC Geopackage or Spatialite, FME creates a GeometryCollection instead of multipolygons (and I can't use GeometryCollection with others GIS softwares).I want to force multipolygons instead of GeometryCollection. When I use GeometryCoercer, nothing is coerced.Thanks a lot for your help :-)
I have a very simple server workspace copying a table from one database to another using the dynamic workflow:This workspace is uploaded on the server and gets triggered from a job submitting workspace in FME desktop:which should signal success or failure through messages.Strange enough, when I submit a non existing table to be copied, the submitter signals success, while the server log shows:Error executing SQL command ('select * from "gsm"."odt99" where false limit 0'): 'ERROR: relation "gsm.odt99" does not exist What is wrong here?Or, more precisely, how can I get such an error reported back to the job submitter?
HiI have a polygon with name A and some points around with names A, B , C, DI would like to calculate the distance between the centerpoint of polygon and the point with the same name of polygon (distance polygon A point A)ThxFrancesco
I am running a simple workspace in 2017 and 2016.1. Read Shapefile, bounding box accumulator and feature reader, with spatial filter on WMS.The process works fine in 2017, but in 2016 with the exact parameters, transformers and variables will not clip the full extent,simply when the envelope is applied the URL request is something along the lines of BBOX=xmin,ymin, xmax, ymax,2017 works fine the the variables are correct in the request URL, however in 2016, the bounding box coordinates in URL are that of the WMS. Again everything is identical between the two workbenches except for the result.
I have the following datetime format built from python datetime like bellow.datetime.datetime.today()2018-04-29 12:20:36.975031Im reading a csv dataset and trying to load it to an elasticsearch writer setting the writer field with the pythondate to a datatype 'date' but it always fail with following error 2018-04-30 16:35:25| 2.0| 0.0|ERROR |ELASTICSEARCH writer: {"took":0,"errors":true,"items":[{"index":{"_index":"imob","_type":"imov","_id":"pzIxF2MB3029rqSru8Tt","status":400,"error":{"type":"mapper_parsing_exception","reason":"failed to parse [date]","caused_by":{"type":"illegal_field_value_exception","reason":"Cannot parse \"0000/00/00 00:00:00.000\": Value 0 for monthOfYear must be in the range [1,12]"}}}}]} Seems odd cause the date beeing sent is beeing checked with a logger just before the ES writer and the value is 2018-04-30 16:40:42| 1.7| 0.0|INFORM|Attribute(string) : `date' has value `2018-04-29 12:20:36.975031'So how is it beeing converted to \"0000/0
Hi allis it possibe to insert a buffer distance inside the FuzzyStringCompareFrom2DatasetsI mean My goal is to compare the name of dataset a with name of dataset b within a distance of 500m
Is there a way to set the logging level on a workspace on FME server? You can set logging level on your desktop by pressing Tools -> FME Options and unchecking/checking options in "Log Settings". We specifically want to not log information.
Hi all,I got some points like in the pic. How can I create a cluster with most point and get the long/lat of the center?Thank you all
Hi all,I hope an easy one.Please see attached images; how should I write to get the values within the measures item in the AttributeExposer tool?Many thanks
I have a set of polygons resembling the Towers of Hanoi (I have many towers with varying rings but only included one tower here):I would like to start with the polygons which doesn't have any holes and which are holes in other polygons (in this case I only have the small one in the center) and dissolve it with the polygon in which it is a hole. I would like to repeat this until the dissolved area is larger than some threshold (here 30).Can I do this in FME 2016?I have attached a shape file with the data set above.
Hello, I have a question about Counter transformer. I have .SHP with line elements and I need to give every line an ID but Counter transformer for some group of lines gives IDs that are apart not in order. Example, 1.png I have a line that is given an ID 0, line left of this line has an ID 1, but line right of it has an ID 86(2.png), same thing is at other end of this chain of lines(Left line has an ID of 86, "central" ID 13, and right ID 12, 3.png). Is there a possibility that FME gives ID in sequence from left to right, North to South it doesn't matter just some kind of sequence? Thank you in advance. 1.PNG2.PNG3.PNG
I am trying to create multiple 'masks' at once.I have a shapefile with a lot of small zones, and a shapefile with one large region. I would like to create a shapefile with as many features as the number of small zones, each feature holding the geometry of the large region with 1 of the small zones cut out.In short: I would like to create a shapefile that can server as a mask for all of these smaller regions individually. It is meant to be used for Data Driven Pages printing purposes in ArcGIS.My attempts with the Clipper transformer were not succesfull so far: when clipping all the small zones out of the large region, at the 'outside' port only one feature emerges: the large region with all of the small zones cut out at once.
Hi There,I am new ini FME. I have the latest version.I used the DISSOLVER transformer to dissolve the polygon and the generate list functionality to get the list of all the blocks have been dissolved by the group field. The result is I can see the POLYGONS dissolved but I don't think I am generating any list of these polygons. Also how to get the count of how many polygons have been dissolved by the group field?Thanks for your help
Hello FME masters,I have a set of housenumbers I'd like to update. I'm trying RegEx but not getting the result I want.What it boils down to:HaveWant1-A1A22-2422First example: I'd like to clean out the dashes but keep the letter following the dash. Second example: Clean out the dash and any digits following it. How can I do this in the StringReplacer?Thanks, Ed
Hi,I have many polygons in my file, that have these random lines which are preventing me from processing the polygon further. I was able to identify which polygons have the issue using the geometry validator, but I don't know how to fix the issue.Attached is a screenshot and a sample data.Anyone experienced the same problem and know how to resolve it?Thank you!
The question is pretty self-explanatory, there is a select by location option in ArcMap that allows you to select polygons from a dataset that have their centroid in polygons from ANOTHER DATASET. I think one would need to use the CenterPointReplacer transformer to create centroids of the polygon and select the centroids that are within the other polygon then join (DatabaseJoiner?) the selection back to the original polygon but I would like to know if there is an easier way.
Howdy!Seems like this is an easy one but I couldn't find where this solution might be found in the Knowledge Base... my brains just not clicking today!My Goal: Use the max value output from StatisticsCalculator, add one to get the next sequential value, use that value as the start value for a new Counter transformer. Background: Early in my FME workflow I use the Counter to tag each street intersection point feature/record with a unique ID, this gets stored in a field named "FME_CountID". Later in the workflow, I need to add new street intersection point features/records to those earlier records. Issue to resolve: For those new intersection point records I need to pick up the existing FME_CountID record numbering where it left off. Thank you in advance!