Using transformers to modify data.
Recently active
Hey AllI have been googling this and trying to sort it out for a couple days now and cant seem to get it to work.I have a table with attributes for starting and ending Chainage (10+050 / 10+100). I want to map these as linear features on an alignment. The alignment is in as a measure and I'm trying to use the Snipper:Every feature is rejected by the Snipper. If I manually input the same attributes in the Snipper Starting and Ending Locations, it works fine for that one location.Also - it appears as though the Snipper keeps the attributes for the Measure, but not the ones from the input table, which would be needed.Any help would be great - is there a better way to map chainage/station for linear and point features along an alignment?Mike
Hello,please, I try to compress more conditions into XML Templater in Root template, but unfortunately desktop refuses to run up translation repeatedly, because he misses comma between conditions. But, as You can see below, comma is there?Log is below:Does anybody know please, how to correct the statement?Thank You so much!Lubo
The MongoDB Writer for fme currently does not support writing to the MongoDB array data type. I am trying to develop a workflow in fme that can write to a JSON array data type in MongoDB when the number of objects in a json array are not fixed, for example (see "alternateNames array"):{ "geonameId" : 3, "name" : Toronto, "alternateNames" : [ { "alternateName" : "Toronto", "isoLanguage" : "af" }, { "alternateName" : "Toronto", "isoLanguage" : "fa" } ]} in another record from the source, this "alternateNames" array might be contain more objects:{ "geonameId" : 1859924, "name" : Kashiwa, "alternateNames" : [ { "alternateName" : "Kashiwa", "isoLanguage" : "eng" }, { "alternateName" : "Ka?iva", "isoLanguage" : "eng" }, { "alternateName" : ??????, "isoLanguage" : "ar" } ]} If there is only one object in
I have various data source with various attributes. I want update all data's just like that no empty attibutes are writing. For example: Shapefile (name "blabla.shp) in directory should be read in, automatically remove all empty attributes (column) and writing a new shapefile (blabla_del.shp) in same directory.The Python Script in other posts not works. Example in zip.
I am pivoting a table based on an ID field so that all diagnosis codes are pivoted and grouped based on the ID. Here is an example of source and final tables I am trying to acheive. What transformers will be appropriate to get this done?
This is the template expression I'm using in XMLTemplater based on what I've learned from other questions/answers on this forum (like this one):The problem is that it throws error 'invalid expression: syntax error, unexpected ExprSingle (missing comma "," between expressions?) near line 14, column 18 of the query' and I don't know why.It works if I omit the <gmd:desc> block though.What am I doing wrong?
Hello thereI work with polylines in an ESRI Personal Geodatabase and want to shorten every polyline by distance using the Snipper. But for certain features there are more than one remnant. I guess, the reason is because features consist of Paths. Do I have to split Paths first and then use the Snipper for Lines and Arcs separately? Thank you for every hint.
We are trying to build a workbench which can work offline if it needs to, but can't find a way to supply it with the .xsd schema files at run-time.We already have the .xsd files (the data is from the Ordnance Survey, and they gave us the files) but haven't been able to find a good way to provide them to the workbench - It looks like the only way is to open the workbench file in a text editor and edit the XSD_DOC and SKIP_SCHEMA_LOCATION_IN_DATASET values.Is there a way to tell the workbench to (optionally) look in a specified location for the schema?
Hello,I am digitalizing an AutoCAD drawing and making polygons. Those polygons should have an area and I have succeeded in extracting these informations using AreaCalculator and LineCloser, AreaBuilder. After I extracted the area, I get some double cells. Some parcels have objects on them and I don't want to have their area in two cells. I am attaching a screenshot to show you all what is my problem. How can I keep only these rows that have both informations? There are some parcels where only one cell is filled because they don't have an object on them.I have tried with Matcher but it is not working with all the settings that I have tried.
I am interested in generalize a polygon following these criteria: max area (areaforcer), max number of vertex and max width allowed (for example a river with maximum width of 3 m and 200 vertex). How could I create this?
The Dashboard data is great for seeing patterns over a period of 30 days but if the period were extended it could provide other information too. For example, "how long has it been since a certain workspace has been used?" That would identify FME scripts that are no longer being used.It would be easy to build something that would store the daily data better than the current CSV files, for example, a SQLite database, and then build reports off of it. However, I'm wonder if Safe has something like this in the works already?
Hi,I created a red colored box with PDFStyler and PDFPageFormatter.Now I would like to center a text in front of this box.Any idea ? How FME computes text position ?
Hi,I am doing a analyse to find most low z-values in a buffer of 50 meter from a point. I started with this steps:- buffer points, - Clip raster file on buffer area's- Use RasterCellCoercer to extract point value's only in this buffered area for efficiency- PointonAreaoverlayer, use buffers and points to merge attributes.But now I get stuck, these buffers have an overlap with each other. So some points only get the ID from one bufferid, not from both buffers with an intersect.(Arcgis 'Intersect' does it the way I like to see with all points tested on all intersecting buffers) Goal: I want to find the 10 lowest Z-values in each area(buffers from a point with main ID) Who can help me to achieve this goal?Thanks a lot!
Found no transformer or question on the Knowledge center so here is my simple question: Is there a possibility to realize something like a SolidOnSolidOverlayer that does an intersection of incoming solids and just outputs the intersecting parts of the solids? Just tried to do that with the CSGBuilder but I think this transformer just outputs the solid features which are completely within another solid.Also visualized my expected result in 2D (the red solid is the intersected solid I wanto to get):
I'm using the FTTPCaller to get a list of files from a sftp site. The attribute that gets returned has an inconsistent timestamp. Is there a way to return the full timestamp like Mar 09 2018 17:35:00 In the _file_contents attribute there is a list of files but the time stamps are not consistent eg. Mar 02 17:36 that has time but no year and Jan 26 2018 which has year but not time.-rwxr-xrwx 1 ftpadmin ftpadmin 74240 Mar 02 17:36 9192815.dgn -rwxr-xrwx 1 ftpadmin ftpadmin 65024 Mar 02 17:35 9192816.dgn -rwxr-xrwx 1 ftpadmin ftpadmin 294400 Jan 26 2018 9192817.dgn -rwxr-xrwx 1 ftpadmin ftpadmin 311296 Jan 15 2018 9192818.dgn -rwxr-xrwx 1 ftpadmin ftpadmin 359936 Dec 18 2017 9192819.dgn -rwxr-xrwx 1 ftpadmin ftpadmin 54272 Sep 18 2017 9192820.dgnThe parameters in the caller
I have 5 polygon featureclass and 1 point featureclass. I would like to create a point featureclass that contains certain attributes from each of the polygon featureclass. How would I go about doing this.Thank you in advance.
I have database and web service connections set up in FME Options - where are these connections stored on a Debian or Ubuntu system?
Hello,I am new to FME but not to GIS. I am following the basic tutorials. When I use the filter features in the Data Viewer the results are not showing. I believe I have followed all steps per instruction. I am using FME 2018 desktop with Windows-7 on VMware Fusion.Jim
Hy GuysI need to identify and remove dangle geo of a netw To be clear I need to remove all blue geo in the bmp attached.I tried some workaround with coordinates but no successFrancesco
I am trying to create xml files for metadata with the filename of a gdb forming part of the xml output filename. The fanout expressions are: @Value(gdb_name)_gdb_metadata.xml@Value(gdb_name)_lidar_metadata.xml@Value(gdb_name)_imagery_metadata.xmlHowever, this creates two xml files per output, one empty but with the correct filename, and one without the @Value(gdb_name) but with the correct content. I have tried to feed in the @Value(gdb_name) earlier on in the process but this does not work.
if the output of a workflow is to truncate and update a table - is there anyway to ensure all work prior to the update is complete? sort of a checkpoint that all is ready to update?
I am draping orthophotos on existing terrain using the shared item adder. I find that the resolution of the image is not kept on the resulting geometry with appeareance.Attached is an example, where you see the orginal image under the draped geometry. Any idea how I can get a better result? Original ortho in the middle with result on each side.I also wonder if anyone knows what would be the smartest way to add appearance to a geometry while keeping size as small as possible? @DaveAtSafe what do you think?
Hi,Quick question: I have a attribute containing a larger xml file. I need the text of one element as a new attribute. It's two levels deep. I tried messing around with the flattner but I can't get it to work. Within the root, it looks like this: <BG:gelijk StUF:entiteittype="NPS"> <BG:inp.bsn>*VALUE I NEED*</BG:inp.bsn> </BG:gelijk>Can someone help me out? Thanks!
Hello, I have multiple ECW files and I want to make one raster made of all those images. Those imagery that I have are 16-bit and 4 band. I would need my result to be in 3 band and 8-bit and I would like to write it in BigTIFF format. I am not currently doing this project, I will need to finish this in few days and I was wondering if it is possible in FME. I found this article and this one and I am not sure how to finish all these things in FME and if it is even possible. Thank you all in advance for every kind of help.
I've been working with the python raster api, and I understand that the tiles are a way of chunking the raster, and intelligent tile management can have significant impact on performance.What I'm struggling with is reading in existing data. The raster data can only be accessed per tile. Since the FMETile is an abstract class, it can't be created directly, and each interpretation type had a different call for creating the tile. So while I can get the interpretation of a given raster band byraster = feature.getGeometry()band= raster.getBand(0) bandProperties = band.getProperties()interpretation = bandProperties.getInterpretation()I can't use that interpretation variable directly in creating a tile.The only way I can see to access the data itself is to have write a separate create tile method that is essentially a switch statement def createTile(self, interpretation, numRows, numCols): if interpretation == fmeobjects.FME_INTERPRETATION_GRAY8: return fmeobjects.FMEGray8Tile