Question

Vector-Raster-conversion

  • 27 June 2016
  • 8 replies
  • 108 views

Badge

I want to convert a polygon shape file into a raster tif. The integer values of an attribute of the polygon shape should become the cell values of the output raster. I tried the NumericRasterizer, but this transformer creates multiple tif files for each unique cell value. Is a an alternative transformer to do this quiet simple task or another transformer to combine the multiple raster files into one output raster?


8 replies

Userlevel 4

Have a look at the MapnikRasterizer.

Userlevel 2
Badge +17

Hi @andreas_lgrb, maybe this workflow does the trick.

  1. 3DForer: Set the attribute value to z coordinate of the polygons.
  2. PointCloudCombiner: Transform the polygons into a point cloud.
  3. NumericRasterizer: Transform the point cloud into a raster.
Badge

Hi @andreas_lgrb, maybe this workflow does the trick.

  1. 3DForer: Set the attribute value to z coordinate of the polygons.
  2. PointCloudCombiner: Transform the polygons into a point cloud.
  3. NumericRasterizer: Transform the point cloud into a raster.

Hi takashi,

nice idea, but the number of input polygons is too large to create a point cloud. Performance is very low.

thanks anyway.

Userlevel 2
Badge +17

Hi takashi,

nice idea, but the number of input polygons is too large to create a point cloud. Performance is very low.

thanks anyway.

@andreas_lgrb, the performance might be improved if you would create a single multi-area feature from all the polygons beforehand.

Badge +5
this transformer creates multiple tif files for each unique cell value

I'm not seeing that. Can you clarify? The only reason this would create multiple outputs is if you had a group-by set. If you turn off the group-by parameter then you wouldn't get multiple outputs. Does that help?

Badge
this transformer creates multiple tif files for each unique cell value

I'm not seeing that. Can you clarify? The only reason this would create multiple outputs is if you had a group-by set. If you turn off the group-by parameter then you wouldn't get multiple outputs. Does that help?

without group-by parameter specified, I don't receive the right cell value from the polygon attribute which represents ma classification value.

The problem could be solved using the arcGIS toolbox->conversion tools->to raster->polygon to raster. There I can choose a value field in the polygon shape which is converted to the cell value in the raster file.

Badge +5

without group-by parameter specified, I don't receive the right cell value from the polygon attribute which represents ma classification value.

The problem could be solved using the arcGIS toolbox->conversion tools->to raster->polygon to raster. There I can choose a value field in the polygon shape which is converted to the cell value in the raster file.

Do you use a 3DForcer transformer set to that attribute? The NumericRasterizer defaults to the Z value of a feature, so setting the Z value to the attribute will force the NumericRasterizer to use that value.

Badge

Problem solved:

1. Setting the attribute value of the polygon shape to a Z value (AttributeCreator)

2. then using this Z value within a 3DForcer

3. and finally using the NumericRasterizer (without Group by) a raster is created with the correct pixel values.

Reply