Question

RasterCellCoercer transformer

  • 8 October 2013
  • 3 replies
  • 6 views

Badge +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

Userlevel 4
Badge +13
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."
Userlevel 2
Badge +17
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
Badge +1
Thanks Itay and Takashi,

 

 

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

Reply