I have a feature class which already possesses a defined CRS. I am creating some polygon outlines from an Arc ASCII file and writing them to the feature class mentioned above. Also, i am reading a tiff image which contains the CRS information to be assigned to the feature class after the outlines have been loaded. So the goal now is to extract the CRS information from the tiff image(done) and assign it to the feature class to which the polygons are being written. How do we achieve it ? I am confused between the Reprojector and the Co-ordinateSystemSetter or is there any other way ?
Hi @abhinav4972,
I'm sorry, but FME cannot modify an existing feature class. However, it can reproject the source data into the same CRS before writing. Please add a Reprojector to reproject the data into the destination CRS.
The CoordinateSystemSetter will just change the coordinate system on the features, without reprojecting, and should only be used if the source data has a missing or incorrect CRS.
Hi @abhinav4972,
I'm not sure I fully understand what you're trying to achieve, however, hopefully I be of help here.
Firstly I'll explain the difference between the Reprojector and the CoordinateSystemSetter. For the Reprojector to work a known input Coordinate System is needed. For some formats (e.g., CAD) the coordinates themselves will have some x and y values, however, the coordinate system is unknown. This is where the CoordinateSystemSetter comes in handy. All it does it create the coordinate system flag so that FME knows what it is and can use it - No changes to the coordinates (x and y) take place.
I'm guessing the TIFF and the ASCII are in the same coordinate system, however, while the ASCII grid is projected (has proper x y's) it has an unknown coordinate system. You want to extract the coordinate system from the TIFF and add it to the polygons?
One option is to use a VariableSetter and VariableRetriever combination (attached), however, will only work for one Tiff at a time (perhaps that's all you need). Another option is to check out the FeatureMerger transformer out (this is similar to a join and requites a common attribute).
variablesetterexample.fmw
Hi @abhinav4972,
I'm not sure I fully understand what you're trying to achieve, however, hopefully I be of help here.
Firstly I'll explain the difference between the Reprojector and the CoordinateSystemSetter. For the Reprojector to work a known input Coordinate System is needed. For some formats (e.g., CAD) the coordinates themselves will have some x and y values, however, the coordinate system is unknown. This is where the CoordinateSystemSetter comes in handy. All it does it create the coordinate system flag so that FME knows what it is and can use it - No changes to the coordinates (x and y) take place.
I'm guessing the TIFF and the ASCII are in the same coordinate system, however, while the ASCII grid is projected (has proper x y's) it has an unknown coordinate system. You want to extract the coordinate system from the TIFF and add it to the polygons?
One option is to use a VariableSetter and VariableRetriever combination (attached), however, will only work for one Tiff at a time (perhaps that's all you need). Another option is to check out the FeatureMerger transformer out (this is similar to a join and requites a common attribute).
variablesetterexample.fmw
Hi @abhinav4972,
I'm sorry, but FME cannot modify an existing feature class. However, it can reproject the source data into the same CRS before writing. Please add a Reprojector to reproject the data into the destination CRS.
The CoordinateSystemSetter will just change the coordinate system on the features, without reprojecting, and should only be used if the source data has a missing or incorrect CRS.