Using readers and writers to extract and load data.
Recently active
I am reading data from 5 WFS feeds and writing them to the same PostGIS database table. I schedule the FME workspace to run once a week so I get fresh data. I only want to drop the data from the PostGIS table if the WFS readers complete. At the moment it is dropping the table, and then writing it as it reads the new data. If the WFS feed reader fails, I am left with a partial dataset. So I have two questions: 1) I would rather that FME didnt write the data until after it had downloaded all of the data from the WFS readers. Is this possible? 2) Is it possible to make FME continue with the other WFS readers in the workspace if one reader fails? I have found this page, is this the best way to achieve what I want? http://safe.force.com/articles/How_To/Rolling-back-a-database-load-in-one-transaction
I am trying to extract x, y and z values out of a DGN file into a CSV file. I used the following transformers: CoordinateConcatenator, AttributeSplitter and ListExploder. Everything works except that the output has each x, y and z value in a separate row rather than all in one row. Does anyone know how to change this?
Hi, I've worked through all the various schema mapper examples but could not find one on how to add a new attribute to the writer schema. I would like to read the source and add a attribute called CadLayer as varchar(30) with value of autocad_layer from the source autocad drawing The source can have various object data attribute fields one example i have in source dwg MCCID_INT integer MCCID_STR char 255 NAME char 255 i also would like to change them to char 50 I'm writing to arcsde 10.0 feature class tx Rudy
Hi I have created a easy translator service using the available workbench from FME. I have also copied over the code from FME Server Playground using the '''full data upload'' example making the required changes to the code to look at my FME server. The issue is i can see the call go to upload the data but on the return call /* Create the XMLHttpRequest object */ var xhReq = createXMLHttpRequest(); // Request Variables pHostName = "fmeserver.com" pUrlBase = "http://" + pHostName + "/fmedataupload/Samples/easyTranslator.fmw?opt_extractarchive=true&opt_pathlevel=5&opt_fullpath=true" pHttpMethod = "POST" xhReq.open(pHttpMethod, pUrlBase, true); xhReq.onreadystatechange = onResponse; xhReq.send(null); } my return is blank...however if i copy the call directly into a url it works. I am sure the code is correct...not sure why the return is blank as the document
Hi, I wonder if someone know how to put axis-labels on your bar chart that's created with the WebCharter. Is it possible? Is there ways to control the axes in a better way? My chart has the months on the x-axis, but the WebCharter automatically puts a zero instead of 1 where my data begins. Can I deside that the x-axis should be shown from 1 to 12? Thank you!
What is the best way to bring Google Earth into Smallworld? I have been saving are capturing the image and spotting the 4 corners Lat-Longs to be used in configuration in Smallworld. Thanks! Paul,
Hi all, is there a way to make sure that data from a shape file transfered to a gdb file using FME have the exact same coordinate values? I happen to have to rounding happening in some features. This means that when I compare features from the shp and the gdb feature class, there will be some geometry discrepencies flagged up even though there should be. I don't know when the rounding occurs (i.e. when it's written the first time to the gdb or when it's read the following time from the gdb) Any idea? Anything I can set on the GDB writer or FeatureReader to make sure this doesn't happen? Thanks in advance, Maryse
This should be simple but I’m ready to throw up my hands. I have a workspace that fetches an OpenStreetMap chunk of XML for a requested area. I can save the data and then read the data using the FME OSM reader, a two-step process. What I want to do is pass the OSM data it to the OSM reader in a single workspace. I guess I could call the OSM fetcher in a startup Python script but that seems more convoluted than it should be. Am I missing something obvious? Thanks, Alan
I would like to log the parameters that the user inputs to the log file. I realize that the information can be found throughout the log file, but I would like to have a list of the inputs in a central location. At the moment, the user is taking a screenshot of the input screen for QC verification. If QC could simply check the log file, the user wouldn't have to worry about screenshots. What I've tried so far in the Startup TCL Script is: FME_LogMessage fme_inform {FME_MacroValues(inputParameter)} This was really just a stab in the dark, and didn't return what I was hoping for.
I am reading one XML file. An element can have zero or multiple occurences. When I am reading one XML there are multiple occurences and after flattening the element it is recognized as a list in FME. e.g. VectorScaleRange.CompositeTypeStyle.CompositeRule{} However When I am reading another XML (based on same XSD), there is only one occurence and after flattening the element it is recognized as an attribute in FME. e.g. VectorScaleRange.CompositeTypeStyle.CompositeRule.LegendLabel (CompositeRule element again contains some other elements e.g. LegendLabel In case the element is non-existent, I am using TestFilter to check the condition if the attribute is present or not. How to check if the element occurs multiple times in the XML. ListElementCounter is not working, since if there is only one occurence it is not showing up as a list. I am trying to create a custom transformer which should be able to read all occurences of data. Kindly suggest an approach. Regards, Ananda
Hi guys, I am trying to migrate some .dwg file to ESRI raster/symbols. 1) when i use inspector on the .dwg reader, the colors for polygon or hatches are missing from the drawing. May I know how resolve this? 2) How should i migrate .dwg file to geodatabase raster dataset or symbols?
Hello, is there any way how to write compound polygon (lines + arcs) to Oracle with FME? When i try to write this kind of geometry i always get "ORA-13347 Description:the coordinates defining an arc are not distinct". But arcs seems fine to me (no redundant points, distance between them is larger than oracle tolerance). FME 2013 (Build 13261 - WIN64) WIN 7 64bit Oracle 11gR2 Thanks for any advice, David
Using the CSV reader. Encountering an extremely annoying problem ... the columns by default get named col0, col1 .. etc. up to col20 and are output in the same order which is fine EXCEPT that col9 is added at the end and not where it should be ... between col8 and col10. Can't see how I can re-order. Any ideas? Am I doing summat wrong.
Hi I'm having problems translating POSTGIS text into Autocad_text. I have a project set up for originally converting GML to DWG and the process works fine. I am now changing the input to a postgis database and all layers work fine except for the text translation. I have the AutoCAD_entity set to: Autocad_text but I get the error message: The following feature is not valid because its entity type of 'autocad text' and its geometry type of 'IFMEPoint' do not match. The geometry failed to be converted to match the type, so the feature will be skipped. Any help appreciated, Mike
Hi, I have a workflow which outputs MITAB in several languages: Arabic, Hebrew, Japanese and Chinese Simplified. These come out fine when I check them in MapInfo using the Microsoft AppLocale tool. Now I want to add Korean to the workflow but I can't find any option in the MITAB writer Character Encoding list for this language. Could anyone help confirm this is a limitation? Thanks, Jason
Hi dear forum users I want to transfer oracle dump features into one of the ESRI formats. I have a spatial Building table which have nearly 1.5m features inside.Here is the symptoms: 1) I am using Data interop extension on Arcmap 10. When i try them convert from ETL spatial tool; it waits too much when calculating intersections. Plus that; some of the string column records does not even loaded. 2) In order to see the string features i follow a way like that: First i translate dump features into ArcInfo coverage. Then i create a feature class as the schema type in oracle and load all the data from coverage file. Is there a direct connection method? 3) quick export gives an error in the log file. Thank you all.
Hi Guys, My client currently uses autoCAD map and they store the data into oracle spatial DB. My mission is to translate text to annotation. Apparently autocad stores the TEXT in a field , justification in a field and coordinate using points and line.(Oracle Spatial DB). When I use geometry filter on text data, I will get point and lines, !NOT Text My solution 1) I extract out the text using a series of textadder,coordinator extractor, rotation and setting geodb_v_align and geodb_h_align. They result is close but not perfect. There is still some alignment issue and text size. The most irritating part is, when I open the original data using autocad and export them into a .dmg file and use esri toolbox(cad to geodatabase) the output of those text are perfect. --------------------------------------------------------------------------- May I know is there a solution in FME to extract out this text perfect like how esri toolbox does? Any hints will be greatly appreciated.
Does anyone have any examples of reading an SDE feature class with fmeobjects in Python? I was able to do it with a shapefile without any issue but am having trouble figuring out how and where to specify the parameters for the GEODATABASE_SDE format. I am using an SDE connection file if that makes it any easier. However, whenever I try to open() the reader it pops up the SDE connection properties dialog. I get the feeling I'm just not specifying the reader parameters/directives correctly, but without finding any examples of the proper format I can only guess. Thanks!
I have three testers operating on the same data, but each on a different attribute. I want to write the features that fail to the same file, with a heading or prefix as to which rule it failed. It could be a text file or excel file to write to, it doesn't bother me. After that I want to email that file to a user, but that might be another question.
Hello, A similar quesiotn to this has been asked (by me :) ) but I am having trouble getting a FME Server to use a certain engine when the value of "Engine 2" has been set in a parameter or passed to a parameter to a called Workbench. Via FME Server, I have a workbench that displays parameters to the user for certain info, this workbench then runs the transformer FMEServerJobSubmitter setting the values of the 2nd workbench. The 2nd workbench has a parameter of fmeInstance. Doesn't seems to make any difference if I set the parameter or pass the parameter. If I rung the second workbench directly, it runs on Engine2 correctly. Any ideas?
Hello, I am currently using a feature type reader with the Merge Feature Type filter * - wilcard to load a reader from command line, ex: --folder all --data fullcoverage (the path formed with publish params: C:\\all\\fullcoverage\\area.shp What I would like to do, is to allow a user to choose between a default reader (let's say, the YES choice, which would be the above example) or to allow him to insert a completely new path (the NO option). So, if the choice is YES, it will take him on a branch, if the choice is NO, on a different branch. It should work somehow like this: "--choice yes" -> would load the default reader C:\\all\\fullcoverage\\area.shp "--choice no" (should require the "--path" param where the user could indicate the path for a completely different shapefile) which should create a reader like C:\\cities\\test\\dummy.shp if the command is: "--choice no --path C:\\cities\\test\\dummy.shp" I hope I stated t
Hi, May I know how can I find all the feature class that has not been committed after a run? Yes I know how to save those feature that have error/ignored by setting the writter but there are those that are miss out because they are not commited anywhere. I do not wish to manually route them to a database or shape files because it can be quite a tedious task. May I know if there is anywhere to say all feature classes not saved to be commited into a file or database table?
Hi, I want to move text the in Y direction,using the line as a base(text created along the line nodes already) how to mve this?
so i have a point cloud (lots of them actually) in a LAS file and all of the data is unclassified. I am wanting to extract the ground heights from the LAS file and then use those height values to create a DTM. my thinking is to create a 1metre grid over the top of the area covered by the LAS file (or get FME to do this for me?) and then find all points within that 1m grid cell and assign the lowest Z value to the grid cell. then once each cell has the lowest Z values i can use that grid to create a DTM. I know there will be cells that have tree tops etc in them and therefore the lowest Z value will be much higher than the ground, how to fix this i am not sure as i do not believe FME has convultion filter style transformers availabe? so is my approach a effcient way? or is there other ways i can go about doing this? any other ideas on how to solve the inevitable issue of cells with no ground points in them? any help would be apprecaited.
Hi all, I've got a directory of MapInfo Tab files. I want to convert these to DBF files, and along the way restructure the Directory. Currently, The Directory structure has 16 categories at the top, and each category has U.S. State subdirectories within it. The tab files are within the state folder. For example: USA_ACC (folder) > CA_ACC (folder) > CA_ACC (TAB files) I would like to rearrange this directory structure such that the U.S. states are at the high level, and the Tab Files for the 16 categories are within the state folders. For Example: CA (folder) > CA_ACC (DBF file) I have experimented with 'Batch Deploy' and the 'File Copy' writer, but I still dont have a clear idea of how to achieve what I'd like to. Thanks in advance!