Using transformers to modify data.
Recently active
With XMLUpdater I am changing values in an XML-file. I'd like to generate the xpath dynamically based upon a column ('Attribuut') in an Excel file. However, when I select this attribute in the text editor for the XML Path, the generated code is wrong. It is://*:featureAttribute[*:name/text() = 'fme:get-attribute("Attribuut")']/*:definitionwhere it should be://*:featureAttribute[*:name/text() = '@Value(Attribuut)']/*:definitionI can change this myself and everything works fine, but I'm just curious: Is this a bug, or does FME generate the xpath as one might expect? Is it something I do wrong?
My aim is to update the creation date in the metadata of a feature class in ArcSDE using XMLUpdater.However, with the workspace I've build so far, the value is not changed.At first I thought I might have the XML path wrong. But I did some testing and found that when I simplify the XML (leave some nodes out that are further on in the XML file) everything works fine.So my attached workspace works fine when I use the attribute geodb_metadata_string_simplified as the XML input, but it doesn't when I use geodb_metadata_string. Do you know what might cause this problem?
The python api has a method for checking whether or not any part of a feature's geometry contains measures. http://docs.safe.com/fme/html/fmepython/api/fmeobjects/geometry/_general/fmeobjects.FMEGeometry.hasMeasures.html#fmeobjects.FMEGeometry.hasMeasuresIs there a non python transformer equivalent? I don't need to extract any measure values, just check whether or not they exist.
Just wondering if anyone has tried the (very) new DICOM reader in 2018.1 Desktop.I would like to process several folders of NON-MEDICAL DICOM CT images in an engineering application, using the raster (relative density) data returned in x,y by z slices to create a fully dimensioned 3D model suitable for viewing in a standard browser.Being able to project the DICOM x,y,z coordinate system into a real world coordinate system would be a distinct advantage, as would being able to contrast and window to observe specific features.Any experience people have with this greatfully appreciated.
I want to take a DEM with a 1 foot resolution (horizontal) calculate slopes and output two polygons 1 with the slopes drom 12 to 17 degrees and the other with slopes above 17 degrees. the rest can be discarded. Is there a sample workspace I can study to perform this?Thanks
Hi there,I have a workspcae on FME2018 reading 2 shapefiles one has point geometry (1.7million) one has line geometry (7.5million)I am trying to find the distance to line geometry and this workspace was working fine until I changed the line Geometry shapefile to ESRI File GeoDatabase.I have the following error on 220 lines now. what is this mean? Can I ignore this error and use my results?NeighborFinder(ProximityFactory): Processing 1.09% completeIFMELine was given an index beyond its current range... Last line repeated 55 times ...NeighborFinder(ProximityFactory): Processing 1.1% completethanksPushpa
Hi,I would like to know if FME provides a transformer or a logic allowing to derive the similarity between 2 shape geometries. There are concepts such as the Hausdorff distance which could probably be used to some extent for that purpose. This similarity could be for instance expressed as a ratio but I don't know exactly of what yet. Basically I would like to be able to determine if 2 overlapping shapes are similar enough and can be considered as representing the same object in reality.Thanks in advance for your hints!Olivier
Hi, I am looking a transformer that could work like the XY to line tool in ArcGIS. For each spot I have a beginning lat/long and an ending lat/long on the same row. I would like to connect the lat/longs on each row as a line and then move to the next row as a new line feature. I have tried pointconnector which works great for sequential rows but I have not been able to get it to work in this manner. Thanks.
HiI'm trying to use the anchored snapper to snap polygon boundaries to cadastral lines. However, it only seems to snap the vertices of the canditates and doesn't create extra vertices in between to make the polygon boundary align to the cadastral. Is there a way to force it to create additional vertices where necessary?
We have a number of AutoCAD files that contain geographic information through a Geographic Marker placed in the file. The geographic marker contains enough information to project the XY data into latitude and longitude, but I cannot work out how to access the XY position of the marker, nor the rotation of the XY axis from North (these are embedded in the AutoCAD file). Any help describing how I can reproject the AutoCAD files to lat long (for output to GeoJSON eventually) is greatly appreciated.Thanks!
Hi does anyone know how to use RegEx to extract a URL from a tweetexample have this: #Birminghamfloods This is Aston at 5pm https://t.co/XDDVtexNdT need to extract this into a new field - https://t.co/XDDVtexNdT
Hi,I am trying to figure out how to insert disclaimers/metadata from one folder to all zipped folders within another folder? My setup involves Reading from an SDE connection, an InlineQuerier transformer to definition query various private data fields out of the data, an Attribute Keeper transformer to keep only the pertinent fields for public viewing before 6 different writers take the data and convert and zip to file geodatabase, kml, shapefile, AutoCAD, CSV, and GeoPackage. With each feature class/dataset being converted into 6 different formats into a single export folder. The naming convention will be standardized (Parks_KML.zip, Addresses_shp.zip, Water_FGDB.zip etc), I need to insert a text disclaimer file into each of the zipped folders. I thought using the FileCopy Writer from this example (https://knowledge.safe.com/articles/881/including-additional-files-in-the-data-download-re.html)with a wildcard fanout of the export folder but I am unable to make that work. Thanks! @tak
The question is:Which areas have more than two points in it.So I want to make a selection of points in a lot of area..Visualize if there are more than one point in a polygon (a lot off points and polygons)
Hi all,Is there a way to trigger a topic if a job is cancelled or just send a email? I have a script running in on a schedule with a Running Job Expiry Time. Sometimes my job exceeds this time and is cancelled, but that does not result in a failure (or success). Thanks in advance
Hey! I've been troubleshooting an issue with FME for a couple of days and I thought I would reach out to y'all to see if anyone has any insight into the problem. Our office publishes lobbyists datasets to a socrata data portal from tables in an oracle database. We use FME workbench to push the data from oracle to the data portal. The problem is, all of the dates are displayed as one day behind the correct date in oracle. The dates in oracle are stored as a Date/Time value and I've fiddled with the date formatter in FME, but no such luck on resolving the issue. I noticed that the dates in the data portal are stored as Date/Time (with timezones), so I have a theory that the issue has to do with timezones, but I can’t figure out to switch the socrata column’s data type to Date/Time in FME. Does anyone have a suggestions or advice? Thanks!
I have a complex geometry which contains one vertex that I want to remove.The 'offending' vertex is in the first element, the PolylineGeometry(35):The vertext I want to remove:I tried using something like @takashi suggested in my previous post, but obviously the arcs were lost.I would like to ONLY remove that one point (and similarly in other complex polygons) and have the rest of the geometry unchanged. I'm an FME neophyte, so is there a way to do that?Thanks for any help!
hi everyone ? have polygons and point cloud. ? use Clipper after that ? change point cloud z data ? need this math fonction (( all point cloud z value - polygon z value)) can you help me pleasersvp.
HiI am creating a table using the HTML Report Generator. I have some hyperlinks in my table and the report generator replaces these and it doesnt display correctly in the email that finally gets sent out.I am using the StringPairReplacer to sort out the < > and & but I am stuck with "Using this: < < > > & & " """Doesnt work:StringPairReplacer: @Tcl2 -- failed to evaluate expression `StringPairReplacer_replace' -- list element in quotes followed by """ instead of spaceUsing this: < < > > & & " "Doesnt work either.What is the best way to go about replacing " with "Many Thanks as always,Oliver
Hi,I have an FME script that gives java errors (FME desktop 2018.1.0.1 on Windows) : java.lang.Error: IP Helper Library GetIfTable function failedjava.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurityManager The translation finishes successfully, but I would like to avoid these errors. I tried to reinstall Java, but with no success. Any idea ? ThanksDaniel
I have two data stream, both have count attribute. I would like to compare the count_1 and count_2, if the count_1 > count_2 the set attributes by count_1 go ahead...if count_2 > count_1 the set attributes by count_2 go ahead.Thank´s
Hi. I got this problem while converting my IFC model to gdb (geodatabase folder). My model is quite complex which consist of the Architecture model. When I try to convert it to gdb, there are only some features that are successfully convert. Others features with "Encountered 3D Geometry missing appearance information. Geometry will be written without textures" warning is not converted to gdb. I actually need that texture to be in my geodatabase model. Can anyone help and guide me to solve this problem? Im a new user of FME.
Hello All,Problem:I have a csv that has 2 sets of UTM coordinates (Eastings,Northings) for each location. I would like to compare the length of the values and choose the set that has the most precision (most number of decimal places) and then write that pair to new columns. I am using the StringLengthCalculator to create and populate a field for each Easting and Northing. Eg: 1EastingLen, 1NorthingLen, 2EastingLen, 2NorthingLen.I'm getting stuck on how to use a TestFilter to write one of the pairs based on some logic.If I were to pseudo code what I want, it would sound like this:For all records in csv:If 1EastingLen >= 10, then write 1Easting to new Easting Colum AND write 1Northing to new Northing column.Else write 2Easting to new Easting etc....All help is appreciated.Thanks.
I'm getting the most current readings for streams via an xml table provided by http link. I want to make 2 tables of the readings: 1-with the most current readings and one with the history or previous days readings. What I have so far set-up in FME does the job but I cant seem to seperate "history" from "current". Also I need the time format to stay in UTC-GMT in the AttributeCreator_2 (see screenshots). I'm trying to make a live feed map in arcpro of the sensor readings so any help would be appreciated as I am totally new to FME ANYTHING!Thanks!
Hi,Bit of on odd one i cannot work out. I have some tabular data e.g.203040325The headers are 20,30,40 with values 3,2,5.Is there a simple oway to end up with20304020,20,2030,3040,40,40,40,40Thanks
Hi, I have a Schema Source and Destination in a database and the Feature Type names contain the Table Qualifier (e.g. <prefix>.<table_name>). One one side it is dbo. on the other it is tab.I tried to follow the guide https://knowledge.safe.com/articles/1156/dynamic-workflow-tutorial-destination-schema-is-de-3.html but with this same data source you can remove the prefix as an option. With SQL Server it doesnt appear to be possible. How do you get round this?Many Thanks,Oliver