Using transformers to modify data.
Recently active
I have a workspace that has multiple line segments and several overlapping polygons, I would like to clip the line segments to the polygons without gaining or losing line segments in the polygon, I have tried cloning and also geometry replacement and spatial relator but I always end up with merged line segments inside the polygons after clipping. Some of the resulting lines that are clipped span the entire length of the polygon. Here is what I am currently attempting, I am using method from this answer in the forum. I have the parameters set the same as in the post made by takashihttps://knowledge.safe.com/questions/90178/clip-line-for-each-overlapping-polygon.html
Has anyone ever encountered an issue where the ShortestPathFinder fails to find a route when multiple From-To Lines enter the transformer but with no issue when the same single From-To Line is considered in isolation - never encountered this before and not sure how I can resolve it...
Hi, I am trying to build a workbench that transforms SHP data to DGN files. I have a huge amount of shp files, each one with the same attributes. Despite this, in some cases the width of char type Attribute "ID" is not the same. Mostly width is 20, but in some cases I cannot predict this value.Right now I have an issue when the ID width is not 20, because shp reader is defined this way and I get an error.I would use a single workbench for all SHPS. How to make reader accept multiple ID width values? Best regards,Pol
Hello everyone,Im thinking about the best way how to check encoding of ASCII (.txt) file in FME Desktop.But, is is possible, at all?Now, I have TXT reader in my workspace nd then I use stringsearcher transformer to check unsupported letters. Im not sure if it is the best way...Thank You so much!Lubo
I am trying to calculate time difference (in minutes) between two values using the DateTimeCalculator. Both are in the format %Y%m%d%H%M%S and have been run through the DateTimeConverter. The workbench completes when run on FME Desktop but when i upload and try and run on FME Cloud im getting the following error.
Good afternoon. I have one raster with 4 bands (RGBA). The alpha band shows transparency (255 is transparent and 0 is opaque). Furthermore I have another raster that I have to multiply with first. Is it possible to extract any values (i.e R=179,G=227,B=249,A=255) and set alpha band as 0 (opaque) and leave the rest of raster with its original values for multiplying later?Thank you at all.
As shown in the figure, the arrow (the start point of the line segment points to the end point), how to calculate the coordinates at the red point?
Hello,I'm here with a problem that I saw elaborated in other posts. I tried to apply some hints from there but unsuccessfully. The problem I'm facing is to assign Z values to geometries vertexes, taking them from other close ones, interpolating the values considering the distance (measure).I tried with MeasureOrZvalueInterpolator but, sure because of wrong understanding of the transformer, without any results. Is this a problem to solve only coding?Any idea, hints or already implemented examples?TIA
I need to transfer a point shape file into an annotaion layer inside a gdb. The point shape file doesn't have z value, and the target annotaion layer has z value.when I run the task,it shows an error as following:An error occurred while attempting to set the 'Annotation' property on the 'IAnnotationFeature' interface for the annotation feature class 'ANNO_I'. The error number from ArcObjects is: '-2147467259'. The error message from ArcObjects is: {The Geometry has no Z values}If I create a new target annotion layer without Z value, it will be OK. For other simple layers which also have Z values,no errors occurs.So what can I do to transfer the shape file into the annotation layer?
Relatively new FME 2018 user and just trying to see if there some improvements to my use of Tester in the workspace. Now, I've been using Tester a lot to do simple things like using it like a WHERE condition, but in 2018 at least it seems to do a naive, feature-by-feature test of the Tester conditions. For example if I use Tester on a 2M feature input with a condition AttributeValue = 'A', then this takes around 2 minutes to complete.However, I've later discovered FeatureJoiner as a go-to transformer for significantly better performance as this seems to first index the Attribute(s) in question first before testing them, as well as passing out the Unjoined features without any post-processing overhead as essentially "untouched" features.If I instead use an alternative of Creator(1 feature)->AttributeCreator(Set AttributeValue='A') to make a single Test Feature, and then pass this into the RHS of a FeatureJoiner transformer to test against the 2M feat
I have a spreadsheet with columns of data that need multiple match criteria to merge (using FeatureMerger) with SQL DB records, then within the spreadsheet, there are 2 columns for Start and End Date ranges, and within the DB records is a specified date/time. What would be the best way to merge the Features from both sources, matching the other criteria as an exact match, but matching the date to a range?
I am passing a date UserParameter into a workbench and am then trying to convert it from the standard FME format to dd/mm/yyyyParameter is formatted as yyyy-mm-dd and if I just use the Parameter the value unformattedit outputs as yyyyddmm eg 1950-01-01 becomes 19500101I want it to output in dd/mm/yyyy format but if use dateformat($(PositionEffective).%d/%m/%y) a null is returned. Thanks in advance
Bonjour,J'utilise un Jsontemplater pour integrer des données dans une base <Mongodb.Le format date est requis pour effectuer des calculs ultérieurs.Probleme: toutes mes dates sont en string.Est il possible de forcer le format date dans je _result ?Merci
Hye, I want to ask on how to delete areas with certain size ya? The data I use is vector data. I hope u guys can help me. Thank you so much
I have an old but simple workspace with one private parameter defined as return FME_MacroValues['pEvent_Attributes'].replace(',',' ') + ' ' + FME_MacroValues['pEvent_Route_ID']When I dug it up and run it under 2019.1.2.0 (20190829 - Build 19630 - linux-x64), it failed with the following msg:Python version 3.6 loaded successfullyTraceback (most recent call last): File "<string>", line 5, in MF_Include_1574806112377 File "<string>", line 4, in ParamFuncKeyError: 'LRS_EventMerger_pEvent_Attributes'INCLUDE -- failed to evaluate Python script `def ParamFunc(): return FME_MacroValues[FME_MacroValues['LRS_EventMerger_WORKSPACE_NAME'] + '_' + 'pEvent_Attributes'].replace(',',' ') + ' ' + FME_MacroValues[FME_MacroValues['LRS_EventMerger_WORKSPACE_NAME'] + '_' + 'pEvent_Route_ID']value = ParamFunc()macroName = FME_MacroValues['LRS_EventMerger_WORKSPACE_NAME'] + '_pAttributes_Merge'if value == None: return { macroName : u'' }else: import six try: value = six.text_type(value)
Hello GIS Expert what coordinate system is more accurate on the ground, is it the geographic coordinate or the Project one ( UTM wgs84 ) , 2- if we convert from Geographic LAT/LG coordinate system to UTM, are we losing the accuracy of the geometry on the ground Thanks, Guys '
Morning...looking for assistance with FME desktop and its CartoDB writer. I have a workspace which writes several thousand planning application points to our CartoDB account. One field in that dataset is a URL for each planning case linking back to details on respective websites. Quite a few of these records contain URLs which have ampersands separating the query parameters.If I write the records to CartoDB using the CartoDB uploader transformer the ampersands get mangled into %26amp; This isn't even a correct encoding. Ampersands should either be one of the following... %26 OR & .....and never a mix of both!! If I write the records out to a CSV file instead everything is fine. If I manually upload the CSV file to CartoDB everything is fine....it just seems to be the CartoDB uploader transformer.Sample URLs below. The top one is coming out of the CartoDB uploader transformer (thanks to the extra inspection button in FME 2016 this output is easy to see now). The second URL is corre
Dear All , How to do statistic report on on rolling 12 month basis , e.g on 1/1/2019 , we need the sum and count from 1/1/2018 till 1/1/2019 and so on . Thanks ,
This is a follow up to a question I asked yesterday, https://knowledge.safe.com/questions/103101/intersector-behaving-really-strange.htmlSource B is a road network and source A is overlaying lines with aditional info on the roads. I would like to transfer the attributes, and some non overlaping features from A to B. Some of the features in B already have these attributes so there is a empty cell causing trouble when I try a spatial join like the LineOnline. If B gets read first no attribute will be transfered from A and a empty cell will be output. I have then moved on to trying to do this with Lists, but have run out of ideas. The LineOnline transformer above is set to gather lists for the attributes I need. In some places there are multiple overlays which makes it tricky to merge the data. See illustration below. NN OO MM 1 X 2 Y 3 Z How do I merge the attributes in the table above? Also some of the features have conflicting data, but that is a later headache.
We are using an existing DWG drawing as a template to write out to a new DWG. The template was created Zone 54 but some new drawings are in Zone 52 or Zone 53. Unfortunately we are finding that the output DWG is retaining the original Zone 54 even if we set the drawing to be another zone. Interestingly the output .prj shows that the projection is in the new zone but when we open it into AutoCAD the template Zone 54 is used. Any ideas?
I would like to replace all <missing> values with a default value. Incoming attributes are not known before (dynamic input).NullAttributeMapper should solve this problem, but the option "map: all attributes" does only exist for Null and Empty values.Do you know another helpful transformer or workaround?Thanks for your comments.
Hello, I would like to migrate data from Intergraph FRAMME format to G/Tech data model. How should I go about it? Cheers, John
Hello partners,As mentioned in our November 2019 Partner Bulletin, we are introducing a new licensing status and a walkthrough for adding new processes for ELA and subscription assets.What’s new?Introducing a new license status, ‘Term’. This will be used to provide temporary licenses for all assets acquired under ELA and subscriptions. More information can be found in the accompanying document. We have streamlined the process for partners when adding assets for accounts under ELA or subscription contracts. Watch the video below or read this document for the updated process. If you have any questions, please get in touch with your Channel Account Manager or the at any time.
I am creating a legend for my pdf and using the PDFStyler to create the different line colors. Based on a certain value in an attribute, I am setting the rgb for the legend line. It looks ok in inspector after the PDFStyler, but when it goes through the PDFPageFormatter, all the lines are blue. If I were to set the color for the data individually, it is fine, it is just when I attempt to set the color from an attribute that it doesn't work. Would appreciate any help.some of the types are not defined which is why they are black.all blue
This is my dataset:ZwemplekVoorzieningAanwezigAAAAToilettenjaAAAAHorecajaAAAADouchesneeAAAAEHBOjaAAAAParkeerplaatsneeBBBBToilettenneeBBBBHorecaneeBBBBDouchesneeBBBBEHBOjaBBBBParkeerplaatsneeCCCCHorecajaCCCCDouchesjaCCCCEHBOjaCCCCParkeerplaatsja The number of rows in the input dataset may vary or the order of the rows may change.How do I transpose the rows to columns?My resulting dataset should be like this: ZwemplekToilettenHorecaDouchesEHBOParkeerplaatsAAAAjajaneejaneeBBBBneeneeneejaneeCCCCjajajajaja