Using transformers to modify data.
Recently active
Hi,I have a number protected areas that is partly overlappingareas. I want to investigate how many och och much of these areas that are influenced by different corridor alternative, that is partly overlapping. I am using a Clipper transformer with the corridors as clipper and protected areas as clippee. Is there a way of solving this without a attribute filter for the corridor? Overlapping polygon Intersect/clipp Overlappling polygon? Looping through the corridor FeatureType Thanx in advanced
Hi, I have a shp-file with 99 buslines. the Attribute is line and the Features are 141,166,171..etc.(devided by a comma) my output should be 99 shp-files whose each includes one single line. The problem is on the inspector i can find any single value, but with the attributefilter i only find some where my value is at the beginning or stands alone. Any ideas how i can manage that issue? Thx
Hello, I try to read my existing data model into a new empty data model with domains set up already when I built the new data model. After setting up the transformers at the FME workbench, the data got pushed over just fine from FME Inspector. When I open up ArcCatalog to check the data, the fields which have domains set up are all empty. I would assume it is because of the domains so it will not allow any other value to be in the dataset. In order to resolve this issue, do I need to manually clean up my existing data (lots of data!!) on ArcMap, in other words, to fix my existing values to match the new domain code for the new model? Or should I try something else?
Hi, I would like to read a csv file (zipped) from a https site and expose the "date modified" value. I found this thread explaining how to use the Directory and File Pathnames - Reader but that does not work for https sources. https://knowledge.safe.com/answers/32678/view.html Is there any workaround without downloading the file first? Thank you for your help.
My FME job is failing & I am trying to troubleshoot. I found in desktop log file server type `ORACLE8i' when I use oracle client & server as 12.1.0.2. Why it is showing me server type "ORACLE8i' when I am using oracle 12C database server & client?
I am writing a custom writer that has a special date format. I would like to detect when a string has the native fme_date, fme_time, or fme_datetime format and convert the internal YYYYMMDD etc. format to my internal format. I am using the C++ SDK, and am unable to find any function that tells me what native format is being used. The best I can find is getAttributeType() and getAttributeEncoding(), but these functions only return FME_ATTR_ENCODED_STRING (an FME_AttributeType enumeration), and 'utf-8'. For a regular string attribute that does not have the 'date' format in the reader (I'm using the oracle reader and connecting it to my custom writer), the attribute type is FME_ATTR_STRING rather than encoded string. Is there any way to detect on the custom writer side what native FME format was used by the reader? And if so, are there convenient format conversion functions available in the SDK? Using the DateTimeConverter transformer in the workbench is not an i
Hello Safe,PROJ.5 has just been released, and it seems to be a great improvement to PROJ.4.It looks like all manner of "difficult" projection will be supported (with polynomials and Helmert), so is Safe planning to take advantage of this, and implement PROJ.5 support e.g. in the next major release ?I know for a fact, that Danish legacy projections will be implemented shortly (if not already), with full accuracy, and henceforth will be maintained here. This enables centimeter accuracy in reprojections.Cheers
I need to export several hundred MapInfo files into a single shapefile that retains all the individual geometry and attributes. Which transformer would be best?
So I've been playing around a bit with this new transformer (check out this great post by @Mark2AtSafe https://blog.safe.com/2018/01/data-join-with-fme-evangelist171). When using the FeatureMerger, one trick I use a lot is to simply type the same string or a single character for the supplier and requestor in order to force a join, irrespective of whether the two have any common data. I learned this trick at last year's FME World Tour in Houston if I recall. However this doesn't seem possible with the new FeatureJoiner as it won't accept a text input. You have to instead create a new left and right attribute and supply some common value, then remove the attribute after joining (which is what I used to do before learning that quick trick!).Is the new FeatureJoiner going to get the ability to input text instead of being forced to pick an attribute? Thanks.
I´d like to know how can I convert the shapefile into (formated) asc file.
Hi, I am using the translators PhotoCoordinateExtractor to VertexCreator and then writing to a shapefile in order to get points from photos. The problem is that the shapefiles then don't have a spatial reference.Is there any way of getting what the spatial reference / projected coordinate system is from the EXIF information or any FME feature attribute?Or should I just assume that its WGS84?Here are the attributes I know exist, but I dont think any of them can answer my question: exif_brightnessvalue (string) exif_imageuniqueid (string) fme_basename (string) fme_dataset (string) fme_feature_type (string) fme_geometry (string) fme_type (string) jpeg_exif_aperturevalue (string) jpeg_exif_colorspace (string) jpeg_exif_componentsconfiguration (string) jpeg_exif_datetime (string) jpeg_exif_datetimedigitized (string) jpeg_exif_datetimeoriginal (string) jpeg_exif_exifversion (string) jpeg
Hi, I'm trying to evaluate if multiple columns in a single row are populated with values and then count how many columns have a value.For example:COLACOLBCOLCCOLDCOUNT0000042010276210030001571I used the ExpressionEvaluator with the following expression:COUNT = (COLA/COLA)+(COLB/COLB)+(COLC/COLC)+(COLD/COLD)But obviously dividing by 0 is throwing the whole result off. Is there some form of COUNTIF in FME?Are you able to suggest a better solution / fix my expression to ignore dividing by zero?Any help would be greatly appreciated. My brain has decided to give up today...
This SQL works in Toad, plsqlDeveloper, sqlplus etc.. but not FME transformers that accept SQL statements. SELECT permit, mon, quantity FROM isf UNPIVOT (quantity FOR mon IN (jan, feb, mar));I tried this SQL with an Access database, and connections to a non spatial Oracle database. Connections to the data with simple SQL work just fine. Must be that "UNPIVOT" is not supported. Error message is Provider error `(-2147217900) Syntax error in FROM clause. Any help, or workaround is greatly appreciatedlink to example SQL to try in FME: http://www.orafaq.com/wiki/UNPIVOT
I have a road network with streetnames i want to check some gaps in the continuity of the streetnames
I'm attempting the below query in an SQL Creator. I get a "malformed statement" error. How should I format this to run? It works outside of FME... Thanks! SELECTfield1,field2, field3 FROM table1 INNER JOIN table2 ON table1.ID = table2.ID GROUP BY field1,field2
I am very new to FME, so apologies if I'm missing something obvious. . .I am trying to expose the filename of zipped FGDBs in a reader that uses a wildcard (i.e. *.gdb.zip). I want the filename of the zipfile, which is different from the underlying FGDB name in this case. Exposing the name via fme_basename or fme_dataset attributes does reveal everything from the FGDB nicely, but it does not appear to reveal the zipfile filename (which makes sense).So, any ideas how one might expose the zipped file filename when the reader is using a wildcard?Thanks for any help.-Chris
Folks,We have an AutoCAD file that has been treated very badly. Originally it was LatLong projected GIS data but a contractor with no idea about spatial data exported the data as simple CAD coordinates and scaled the CAD by 200K to get into some sort of reasonable scale.We're trying to work out how to transform the CAD back into LatLong. We tried defining a custom projection with a scale of 0.000005 but we're getting errors saying FME can't start the projection engine.In simple terms 1. the drawing is in a known spatially damaged state2. If we could scale the drawing by 0.000005 the drawing would be in a plane expression of LatLong3. We then need to somehow tell FME how to deal with this Sorry for the odd post but we're having a lot of trouble with this.Thanks in advance.
I use the NZTM coordinate system in my file geodbI have a workbench extracting me the center of polygans. The extracted values are in meters.Can someone tell me how to change the coordinates in degree decimal format?Equivalent to the ArcMap, calculate geometry center -> X coord specifying units as degree decimal
HiIs it possible to have xmlxqueryextractor to read from the source of a Sampler.My issue is the source XML file has multiple records therefore I only wish to process them singularly from a sampler of 1st...Cheers
Hi, I have file with starting point in GCS (longitude and latitude values) and all next points are defined as offsets in meters using using Cartesian coordinate system. From those points then I need to build a line(this part is not a problem). I found Offsetter but is seems like it accept GCS only(or whatever Coordinate System the feature is in). What I'm looking is something like Offsetter but with Geographic features (like GeographicBufferer) where you can specify X,Y in meters/miles. Please advice. Regards, Yarko
I'm attempting to extract an AutoCAD Map Object Data table with field definitions. For example the object data table name is "Attribute" and it contains a field named "ATTRIB_ID". I can get the table name with no problem and can write it out. If I use the "Prepend Table Name" & "Seperator Character" params I can produce something like "Attribute.ATTRIB_ID" which appears in the Feature Information pane but I'm unable to expose that value.Any suggestions would be appreciated!Thanks,Brek
I have many xls worksheets where I need to rename some fields as well as create some new fields. I created an xls with the lookup attributes I need as well as what to set the values for the new attributes. Original - Source AttributeNew - New attributeValue - attribute value where this needs to be set.I was able to Import this file and use within the AttributeManager without any issues with both the new and existing attributes mapping correctly. However because I have many spreadsheets that I need to update and the values periodically change for the new attributes I'd like to be able to feed in this table through the Schemamapper. However when I try and do this the attributes successfully rename but the new attributes aren't coming across. I'd like to keep the schema table in one file preferably.Can the schemamapper do this?
I have a large binary raster (1 band, values either 0 or 1) that I want to mask with a polygon shapefile (which contains 1 attribute column, id, with values 0). I was thinking of using Vector on Raster Overlayer for this. However the output file is the original raster, without changes. Am I using the VectorOnRasterOverlayer correctly?
I need to find the top/bottom turningpoint of a dataset - as seen on the image below. these are expressed as x,y,z and possible more attributes. Is there another way than python?
We’re doing nightly imports from various sources into PostgreSQL. Right now we aren’t using FME for these imports, but are in the process of switching to FME. The PostgreSQL tables have fixed “schemas”/table definitions and since there are views using the tables they cannot be recreated. So they are truncated before new data is inserted. The source may for example be an Oracle-table. We import a subset of the columns into a PostgreSQL table. Some column names may change, often we add a sequence and we may also change e g geometry type. There may be other transformations as well. If a column, that is to be imported into the target PostgreSQL-table, gets removed we want the import to fail and the target table to be left untouched. This also if the column isn’t set to mandatory in the PostgreSQL database. So far the only solution I’ve found is using an AttributeValidator to verify that the attribute exists. Without this validator the workflow is carried out without errors and the colum