Creating and organizing workspaces. How to use Workbench.
Recently active
I have a list of counties in Georgia with their corresponding FIPS code (13xxx) where 13 is the state fips for Georgia. Each county FGDB has a a parcel and point feature class and they are named by State Code (GA), FIPS code (xxx) followed by undescore and either point or parcel as suffix. I'm consolidating all feature types from each county FGDB into one state FGDB. All the features on the reader will pass through a FeatureTypeFilter transformer so that each feature type will be copied into the new FGDB. However, instead of the original name (GAxxx_point or GAxxx_parcel), I'd like to use the county name followed by the parcel or point suffix and some other prefix. Without renaming each feature type in the writer, I'd like to use my county/FIPS code list to name each feature type dynamically. Any suggestions?
Hi all, a good comming year of course. I have a question concerning conditional attributing. In this case it concerns the attributesetter. I have a dem raster to wich i added a pallete. I do a conditional setting to change the colors (kind of a colorrange) adn create a new colormap. test if _matched_parts{0} between 0,10 outputvalue @Value(_bandnr{0}) 73,255,255 elseif etc.etc. This results in a error. If i do this same in an attributevaluemapper i get the same error. When i do the test in a testfilter and connect a attributecreator with the same tests and outputs it works. ( i do have to remove the evaluation in the attributesetter, else it will try to evaluate "@Value(_bandnr{0}) 73,255,255" wich is a simple concatenation.) This is not desirable because i get a lot of transformers. Am i correct to assume that the valuemapper and conditionalsetter try to evaluate "@Value(_bandnr{0}) 73,255,255"? How do i prevent this? Oh, and before you go all wild Takashi, i
I run FME Server and created a workspace yesterday to process OS AddressBase csv files. I kicked the process off yesterday and left it running when I went home. This morning when I came in my PC had rebooted (and lost the connection to the Server). I logged back on to the Server and started FME. I opened my Address workspace to see how it had got on - the workspace was blank - no transformers, no readers, no nuffink. The folder where my Workspace was saved contains 3 files ... (a) the Workspace fmw which still has everything in it (if you open in Notepad), (b) the log from yesterday which showed the process ran OK and finished after an hour. (c) a recover file which contains <?xml version="1.0" encoding="windows-1252" ?> <RECOVERY_FILE HWND="65876" COMPUTER_NAME="GISBUILD" USER_NAME="mitcheli$"> <UNDO_STATE FILE="C:\\Users\\MITCHE~1\\AppData\\Local\\Temp\\2\\wb_recovery_1387380016793_5468"/> </RECO
Hi there, I have a set of large CSVs (without a Header for attrib names) with a variety of different record types distinguished by the value of the first column ... so I would expect to use a TestFilter to split into their separate feature types - Type A, Type B, and so on. Once I've isolated these different feature types I want to rename the attributes (by default they'll be Col0, Col1, etc.). The attrib schemas are different for different feature types. I have a set of header files, each a single line, one per feature type ... which contain the attribute names. - Col0 in the TypeA-Header file contains the new name of Col0 for TypeA features from the big CSVs. Is there a transformer I can use ... rename the attribs of this feature type using the values of the attribs in this line of this file - one column at a time? I know I could use the SchemaMapper but that'd involved editing my header files. Just wondered if there were summat to save a bit of faff. IanM
I tr to execute the following arcpy function from a fme workbench: arcpy.CalculatePolygonMainAngle_cartography("FeatureLayer", "poly_angle") from the PythonCaller transformer to calculate a polygons main angle. What I can't really understand (as my python skills are absolute nonexisting) is how to wrap than inside the template function interface. I have tried to integrate the arcpy- function like this: --- import fmeobjects import arcpy def angleFeature(feature): ang = arcpy.CalculatePolygonMainAngle_cartography("FeatureLayer", "angle") feature.setAttribute("angle", ang) -- but when trying to run the workbench I get the following error ERROR 000732: Input Features: Dataset FeatureLayer does not exist or is not supported so Im stuck with the problem that the function cant find my source (wich is a Geodatabase_SDE reader. It also feels that once I get the features into the function, CalculatePolygonMainAngle will write
Hi I have a project that converts a GML file into 6 individual shapefiles. I have mapped all the attributes from the GML file to different names in the shapefile in order to comply with the 10 character limit e.g - featurecode > featcode versiondate > date Now I want to name the shapefile dynamically from a publish parameter so I used the attribute creator to create a new attribute called "feature_name" with the value: $(name)_TopographicArea and this outputs a shapefile with the correct name. so far so good...... The problem is the shapefile now contains multiple additional attributes that I didn't select or want in the resulting shapefile. How do i retain the schema mappings that I made? Any ideas? Mike
Hi FME'ers, I have some base features, and candidate features from another data set, sent through the SpatialRelator (Equal, Within). For the base features that failed these spatial relations, I do a Densification. Together with a densification of the candidate features, I send the features through the anchored snapper, with which I can improve my results with a second SpatialRelator. However, sometimes the first SpatialRelator has no features in the failed port (all the objects have been found). In this case, I don't want to carry out the Densification because there won't be any candidate feature for the AnchoredSnapper. This extra processing time is not necessary. How can I start the densification ONLY if there are features in the Failed Output port of the SpatialRelator? I tried to solve this with a variable, but it didn't work out. Or should I try harder? The only use case I found, was http://fmepedia.safe.com/articles/How_To/Get-the-Start-Count-for-the-Counte
Hi all A short introduction to my script so far: I have two readers a. NewsArticle (s stands for source) ID-S | Text | Country_S | Sector_S 1. ... ... ... 30 ... b. Shapefiles of all different sectors ID-dB | Sector_dB | Country_dB | 1. .... ... .... 30000 ..... The mail goal is to assign the different Newsarticles to the correct sector (in order to map the news). I am doing this by an inlinequery that Takashi suggested. This query's output are all the articles that are both matched by country as by sector. (lets say 14 out of the 30 articles). I would now like to use the rest of the articles (that have not been assigned to a specific sector) to be linked at the country level. I have a shapefile of all the countries. I have come up so far with a query that links all the articles to a country, but I only need the ones that are not yet linked to a sector. Is
Hi guys, I am reading an XML that contains list elements that do not start with 0 and therefore are not recognized by FME. Well they are and then again they are not , I can count the number of elements but I cant explode it> which is what I want. Any ideas on how to tackle this? Itay
Hi Everyone, I have looked through all of the community information and knowledge base for some help on this but can't find anything to help with the issue. I am trying to use templating in email notifications and I can't get the client specific keywords to be anything but _undefined_. I would like to include the directory of the transformation results in an email to certain users when a job fails. That way they can see in the log where the issue is. Thanks in advance :)
Hello, I am fairly new to using FME but I wanted to solve a problem using this software. I have a spreadsheet with all kinds of different newsarticles wich I would like to spatially assign (automatically) to a specific country. In the newsarticles, a country name is often mentioned. I was thinking if there was a way to use some kinf of search transformer which could search for country names (in the articles) and also add a new attribute value (the country name it was assigned to). I have two readers, the spreadsheet and a shp file of all the countries. It would prove usefull to read all the different search options (all the countries) from the shp file. Any suggestions? thx in advance
Hi everyone, I have concatenated joiners on my workbench and I am trying to create new user published parameters because the paths are being changed depending on the date of update. The problem is: The published parameter of the first joiner is created successfully, I move to the second joiner and create the second published parameter. When I click 'OK' the newly published parameter overwrites the first one. What am I doing wrong? Thanks in advance Gianluca
Hi all, Generalty i use ListConcatenator to concatenate ALL list items. I need to concatenate list items without the first item. Is there a specific transformer that can i use? Thanks an advance. FarFar
Hi All, I look for lists comparaison. For example : i have 2 lists list1 that contains (1,2,3 values) and list2 that contains (2,3,4,5). The result is 2 lists ListOut1 and ListOut2 that contain the differences : ListOut1 will contains all list2 values that don't exist in list1 => ListOut1 values : 4,5 ListOut2 will contains all list1 values that don't exist in list2=> ListOut2 values : 1. I dont find tranfermer that can helps me. I look for python script but i need help. Thanks an advance. FarFar
Is there a way to geolocate a layer that is in a non-earth coordinate system? I can get three points to define the geolocation. I presume that this should be sufficient? Regards, Chris Mugdan
Hi, I have a workbench that I want to run on windows task Scheduler. What windows scheduler did was just opens up the workbench but it actually didn'tt run. I have workbench that downloads the data and save in my local geodatabase? I wanted to schedule a task so that it downloads the data everymonth?
I am using FME 2012 SP4 to exposed a number of GeoMedia Format attributes on our text features coming from an Oracle DB i.e. geomedia_text_string, When I run the WB the attribute name changes to oracle_element{0}.geomedia_text_string which looks like a list to me. I have tried to use list manipulators to get to the text string but a list is not exposed. Any thoughts on how to get to these format attributes so that I can export them? Cheers
All, Is it possible to run part of a workflow? I've got a process that reads 12 feature classes of ~85,000 features each. I got to the very last one, and it bailed out.* Can I just re-run that 12th one? *bailed out because adding a writer takes the DB name of the reader - why?
I just noticed that FME Community Answers is now more than one year old. Hurray! I would say it has proved to be better than the old Google-groups channel. However I am a bit sad that there have been no development, change, upgrade on these forums for a year despite multiple suggestions from heavy users: I know this might not be a focus-area for SAFE for the moment - however I would say improving this community is getting more and more important because all other parts of SAFE`s operation is so good! (Webinars, tutorials, videos, blogs, tweets, demo-workspaces, apps, events, world tours etcetcetc) Some threads I found: https://safe.secure.force.com/AnswersQuestionDetail?id=906a0000000coNFAAY https://safe.secure.force.com/AnswersQuestionDetail?id=906a0000000cj7aAAA http://fmepedia.safe.com/AnswersQuestionDetail?id=906a0000000cZlfAAE
Hello, In our company exists a forest-wide UPN suffix company.it and almost all user accounts have the explicit UPN set to fistname.lastname@company.it. This value is also set in the Active Directory userPrincipalName attribute. Now we have configured the fme server (FME Server version is FME Server 2013 SP4 - Build 13547 - win64) to perform IWA (SSO), so users authenticate through Kerberos. Since we are given the Kerberos principal, i.e. implicit UPN (sAMAccountName@company.it), which does not match anymore with the userPrincipalName (explicit UPN), the IWA fails, as can be seen by the fmeserver.log. Thanks in advance for your help. fmeServer.log: Tue-19-Nov-2013 09:00:47 AM INFORM RequestHandler-Thread 408041 : (Login Module) Authenticating single sign-on token "YIIH/gYGKwYBBQUCoIIH8jCCB+6gMDAu...". Tue-19-Nov-2013 09:00:47 AM INFORM RequestHandler-Thread 408057 : (Single Sign-On) Negotiation complete; authentication granted for user "MSchgraffer@S
Ok, I know attributes with the same name in the source and destination are automatically connected, assuming the case is the same. If this occurs, the connection arrows will turn green and the attribute information will be pushed across. I have attributes that are the spelled the same in both the source and destination, but one is lowercase and the other is uppercase. Even though the connector arrow is yellow, the source information is still being populated in the destination attribute. Is there a way to disable the automatic mapping? I’m currently using FME Workbench 2011. Thanks in advance.
Probably I am missing some obvious things here but I cannot seem to make this work. I have a published parameter "code", which I receive via user input from the command line. Let's say "--code ca" My script should extract two private parameters using the "code" value. I created a private parameter to extract these values: n = FME_MacroValues['code'] code = ["ab", "ca", "ny"] name = ["Alex", "Carl", "Nelly"] status = ["aall", "cast", "noo"] def find_element(n, code): index_element = code.index(n) return index_element FME_MacroValues['my_name'] = name[find_element(n, code)] FME_MacroValues['my_status'] = status[find_element(n, code)] The idea is to get the two values: $my_name, $my_status because for the moment, they both are received via user input. In this way, the user would have less data to input. This
Hi, Hopefully someone can help me with these fundamental questions about the way a workbench executes, this is for Oracle DB interactions as readers or using SQL Executors. 1) When you hit run in Desktop or FME Server starts processing the workbench does it do connection tests on the readers and transformers? 2) In what order will it process the workspace? For example if i have reader/processing/writer workflow and also a completely separate reader/processing/writer workflow in the same workspace which executes first? Behavior I had seen was that the one at the top of the workspace goes first but then I've just experienced something to the contrary happen. Also if i change the order in the navigator does that effect the execution order? I've looked for something relating to this in the documentation but not been able to find it. Thanks
Hello, I noticed in the Aggregator transformer that there is an option "Attributes to Average, Weighted by Area", is there a way to weight the average by length for a line feature? If not, do you have any recommendations on a different way to get that result? Thanks for your help! Amanda
Hello, I am using attribute accumulator to group features and I need to use the "Input is Ordered By Group" option. I have a list such as this: 1 1 4 4 4 2 3 4 4 1 1 1 and I want the results to be the following: 1 4 2 3 4 1 where it maintains the order as it groups, and the 1 and 4 appear twice in their correct place in line. However, when I use this tool what I get is: 4 2 3 4 1 Notice that it skips the first group. It found the 4 twice and placed them correctly, but the first 1 was skipped. Am I doing something wrong? thanks, Kristi