Skip to main content
Question

RasterCellCoercer transformer


Forum|alt.badge.img+1
Hi guys,

 

 

I am using RasterCellCoercer and then CoordinateExtractor to convert an ESRI ASCII Grid into a CSV file.  Does anyone know where in the original cell the X and Y coordinate are taken from?  Ie: is it in the centre of the cell, top-left corner, etc?

 

 

Thankyou

 

3 replies

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • October 8, 2013
Hi,

 

 

Search for the cell origin on FMEpedia, since the transformer doc states:

 

"Points: one point feature will be created for each of the raster's cells, positioned at the cell's origin."

takashi
Contributor
  • October 8, 2013
Hi,

 

 

The RasterCellCoercer with "Polygons" option as "Output Cell Geometry" parameter might help you. You can use the BoundsExtractor to get coordinates of any corner of each cell  after transforming input raster to cell polygons.

 

 

Takashi

Forum|alt.badge.img+1
  • Author
  • October 8, 2013
Thanks Itay and Takashi,

 

 

I used the RasterPropertiesExtractor transformer and was able to identify the cell's origin that way.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings