Skip to main content
Question

How to define the origin of grid created with RasterDEMGenerator before a raster is generated?


makt
Contributor
Forum|alt.badge.img+1
  • Contributor
I am using the RasterDEMGenerator to create a raster surface from points and I need to align its cells to existing rasters I already have.

 

 

A common way to do this in FME seems to be to use RasterDEMGenerator to create a raster, then use RasterMosiacker to do a snap. However, RasterMosiacker requires either offsetting or resampling the raster that RasterDEMGenerator already made. I do not want to do either since I am trying to retain the maximum precision possible (I'm trying to recreate an existing dataset).

 

 

How can I tell RasterDEMGenerator not just cell spacing but also where exactly to place the first cell (for instance defining the _origin_x and _origin_y)?  

 

 

 

4 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 14, 2014
There is a RasterCellOriginSetter. transformer

makt
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 14, 2014
From what I understand of RasterCellOriginSetter, it requires a raster? I'm looking to define the cell origin before RasterDEMGenerator creates a raster.

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 15, 2014
Hi,

 

 

Would it not be possible to use an RasterNumericCreator to create a "blank" raster the size of the total tiles and then add the tiles by performing rasterexpressions?

 

Afterwards turning it into a dem?

makt
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 15, 2014
Hi Gio,

 

 

Intereseting approach - in my case this would also involve extrapolating cell values where no points exist, but a raster cell needs a value. Is it documented how RasterDEMGenerator extrapolates?

 

 

Seems like this would be a solution albeit a bit complex?

Reply


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