Using transformers to modify data.
Recently active
Projections Changes
I have two ways I've been going about this. 1 - dissolving hexagons, keeping any at least 3 contiguous hexagons in size. Any more than 20 hexagons in size need to be divided into being at least 3 contiguous hexagons in size. I've used the PointClusterer transformer (on the centre points) when I had only 2 large polygons that needed to be divided, however, when I have over 12 polygons it's not working so well (perhaps due to the irregular spatial distribution and oddly-shaped polygons).2 - I've looked at trying to divide the polygons directly, with less success (trying to determine the length and width didn't work so well with the irregularly-shaped polygons from the dissolved hexagons). Does anyone have any idea of how to make either method work, or have another idea of how to do this?
HiI have 2 suppliers with the same attribute names. When I link them both to the featuremerger, I can only see one set of attributes to work with. How do I see both sets of data without renaming all the attributes?Andrew
Hi all, I had a script working on 2.7 (our previous default) and have now switched to 3.6 to keep up to date.I am getting a syntax error on line 18, but I can't see why, it is probably something obvious I am missing... Also any feedback on the script would be cool, I am still new to python so would be appreciated! Thanks in advance#import libraries that we will potentially needimport difflibimport fmeimport fmeobjects#create the class for execution, as per the FME spec:#https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/pythoncaller.htmclass addressMatch(object): def __init__(self): self.dataD = [] self.pread = '' self.outputIndex = 0 self.tmp = 0 self.matchRate = 0 def input(self,feature): if self.pread <> feature.getAttribute('CURRENT_ADDRESS') and self.pread <> '':#Error here for index, item in enumerate(self.dataD): self.tmp = difflib.SequenceMatcher(Non
I have some DWG files with data drawn as blocks with attributes. When I look at these in Data Inspector, I notice that the block attributes shows up in two ways:I've read through https://knowledge.safe.com/articles/59335/autocad-dwg-block-attribute-extraction.html and see that while I can access the attribute info from the attribute lists (top marking) it would be a lot easier to just grab the info as shown at the bottom. The problem is I can't find this via e.g. the attribute exposer. Anyone got a good idea?(Demo DWG attached)
I am trying to add a GeoTIFF orthophoto to a TIN surface I generated trom a raster (TIFF) DTM. I have used the TINgenerator to get TIN_Surface from my DTM, that I send to the Geometry-port on an ApperanceSetter. The ortophoto is sent trough an ApperanceStyler and then into the Apperance-port of the AppearanceSetter. I expected the ApperanceSetters' Output-port to give me the 3D terrain model in colours. Instead I get the ortophoto added to each triangle of the TIN-model. Doesn't look very nice. I have been trough the articles here, as well as reading on the various possible transformers available. Currently simply baffled. I must have missed the most obvious solution to this, and I must have been looking straight at it several times already. What transformer should I have used? And the settings?
Hi there, I've encountered a strange anomoly that's left me baffled. Etiher that, or I'm missing something quite badly... Anyway, I was wondering if anyone has encountered a similair scenario. I've got set of shape files (Polygons) with the coordinate system LL-WGS84, and in my workspace, I use the reprojector to convert them to AFRICA-LM-CONIC. I then use the AreaCalculator transformer to generate the Square Km measurements for them. However, for those of you who are familiar with ArcMap, if I do it there via reprojection and calculating geometry, my results are out, by a small amount. I've triple check all my input and output projection settings in both FME and Arc, but no matter what, my measurements don't match up. For example. VALLEYS.shp Arc gets - 251936.47 Km² Fme gets - 260142.65 Km² About a 3.15% difference. Enough to create issues for what I'm trying to do. And I just want to make it absolutely clear, that in both application, I conver
Using NeighborFinder and merged two types of lines representing the upper and lower part of the slope in 2d (where bottom's points ware Line Base and Top were candidates) Now I would like to do it in 3d. I've used CoorinateExtractor and 3DForcer, so I have a pit height for short lines, but now I have no idea how to change the direction towards the top.
I want to search attributes from one table in another and extract them irrespective of case sensetive. For example MAB in one table should be searched in another table and find MAB or mab or Mab ?
Hi.I've used RasterMosaicker before without problems, but now it gives me issues.Another FME translation generates a folder of JPEG raster tiles, and I'm now attempting to join them together in a single raster mosaic. This fails, overlaying each tile on top of each other.All the tiles are 2000x2000 pixels, and the resulting raster may easily be 15x that much. Is this a problem ?I've checked both "Generate World File" and "Write EXIF tags" in the final JPEG writer in the original translation, but this doesn't seem to make it work.Any insights into this issue will be appreciated.Cheers
I am creating a DWG file from a Shape file. All features of a certain type in the DWG file have distinct colors, line widths and layer names. When users open the DWG file in AutoCAD, they cannot change the properties globally using the layer table. They can only change the properties interactively per feature. How can I remedy that using FME AutoCAD writer settings?Thanks, Gido
I am looking to capture all features that are duplicated in dataset. The duplicated filter removes duplicates but keeps one unique feature. I need to capture the unique one that has been duplicated as well. Can anyone help?
I would like to create a terrain shadow by mixing Hill shade and Slope. The starting point is a DEM-file. I have used the RasterHillShader and the RasterSlopeCalculator to generate the basics. But in the next step I would like to mix these two by adjusting the min and max values and multiplying one layer on top of the other. Are there any transformers that could do this? I am guessing that the RasterExpressionEvaluator might be able to do the min-max limit? If so I could need some help with the correct syntax. If there is some way to adjust contrast and add some gausian blur that would be a welcome bonus.
I'm trying to convert an XML file to the data I need.Reading the file as text_line_data gives better results as reading it as XML. Probably because FME does not recognize the schema.The problem I encounter is that sometimes the attribute I need is a single child attribute. But sometimes it exists multiple times.Using an XMLFlattener and exposing the child element gives an attribute when it exists 1 time. But with multiple occurrences I need to use a ListExploder to create the attribute.I now use a Tester to test if the child attribute is empty and then reroute the data to ListExploder. But I doubt there is a simple option I don't see?
I am performing a combination of inserts and updates to sde db. I continue to receive this message:Error while retrieving an ArcObjects update cursor for the table/feature class 'TRANS.PipeSegment'. The error number from ArcObjects is: '-2147215975'. The error message from ArcObjects is: {The number of points is less than required for feature}I have read the ESRI documentation regarding this message and performed all workarounds. However, I do not believe they apply to this particular situation. Furthermore, I have inspected the geometry of the features and everything checks out. I have used this workspace in the past with no issues, but since updating to recent builds I have experienced this never-before-seen problem. For all incoming features, I have the fme_db_operation attribute set to either UPDATE or INSERT accordingly. upon checking the failing feature, it does have the expected value for fme_db_operation.The writer is configured as shown below:This is a su
I would like to either overlay a point, polygon or perform a clip of a raster by using it's cell attributes. I've calculated where to perform this on on the raster (eg, Row 4205, Column 1204).
Hello ,I stuck in one situation and need help I have road geometry having multiple segment but if see the attribute table we can separate group by based on UID field (A1,A2) With UID we have field called ACC in table ideally A1 & A2 should have unique value based on connectivity A1 should have 2 & A3 should have 1 but we cannot hardcode it. every time value would be change We have discontinuity based on ACC value I need find the disconnected edges and copy the ACC value attribute of both end connected inexample :-if the both side ACC value is same then update the same for in between edges but, if the ACC value is different on both side that time I need to find those situations Can any one help me how can I get this done ?Please find attached Shapefile for reference as well.
I am having a problem with a JSONFragmenter transformer. Though I think I set up all the parameters correctly I am getting the Result Attribute (for the resulting output) greyed out and I don't understand why (see below). Can anyone help?
After use some transformer: PointOnAreaOverlayer and NeighbourFinder, I have 2 feature list with a attribute Name. Then I need to combine these 2 feature:- If Name in list 2 already exist in list 1 then set it = 0- If not then do no change.So please help me: which transformer I can use to compare 2 feature list? I try with Tester but don't know how to look up in the all array.And Matcher will merge the 2 feature which I don't want.Thanks,
Hello! I need to divide lines into length:MEAN- calculated in another transformer. I used LineDivider for this but the line dividing should be ended if the last line segment is smaller than MEAN. It means that the last divided section can not be smaller than the MEAN value. I tried to create conditions in ParameterCondition but nothing came of it..
I have searched through almost every question relating to optimizing memory in the Knowledge Centre. With my computer set up, there technically shouldn't be any memory issue.The workbench is to read 15 non spatial and 2 spatial tables from Oracle and write the same table but into 3 different file formats - ESRI Geodatabase (File Geodb ArcObjects), TAB and shapefile. The reader is a SQLCreator connecting to the Oracle database with a statement ' SELECT * FROM PRODUCT.$(STATE)_HOUSE.I have created a Published Parameter $(STATE) so I can run the same workbench 9 times. The parameter is to specify what State Oracle Table I want to read from. There is a total of 9 variables.My log file reads:ME Configuration: FME_PRODUCT_NAME is 'FME(R) 2015.1.3.1'System Status: 269.57 GB of disk space available in the FME temporary folder (C:\\Users\\MARIAA~1.PSM\\AppData\\Local\\Temp)System Status: 8.00 TB of virtual memory availableOperating System: Microsoft Windows 7 64-bit Service Pack
Hello,I have some points, and those points have a POINT_NUMBER attribute. POINT_NUMBER is not unique.I have some lines, and those lines have a LINE_NUMBER attribute. LINE_NUMBER is not unique.For each point, I have to search for the closest line where POINT_NUMBER=LINE_NUMBER.Then I have to draw a perpendicular segment from the point to the corresponding line, ending on the line.Thank you for your help
In this case they are steel pipe segments that are in between two plastic pipe segments. Does anyone have any ideas about which direction to go in with this? I've included an image for reference.
Hello,I was wondering if there was a way to rotate randomly a set of polygons that each have their own achnor point. This is a GIS workflow using either shapefiles or ArcGIS feature classes in ArcGIS Pro. I was thinking about maybe writing some python code but thoughts that I should try and expand my FME knowledge base apriori.Cheers,Simon
Is there a process from going from shapefile/geojson to vector tiles? I am guessing I have to convert the shapefile to raster then add the styles and then use the mbtile writer?