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?
Have a look at the MapnikRasterizer.
Hi @andreas_lgrb, maybe this workflow does the trick.
- 3DForer: Set the attribute value to z coordinate of the polygons.
- PointCloudCombiner: Transform the polygons into a point cloud.
- NumericRasterizer: Transform the point cloud into a raster.
Hi @andreas_lgrb, maybe this workflow does the trick.
- 3DForer: Set the attribute value to z coordinate of the polygons.
- PointCloudCombiner: Transform the polygons into a point cloud.
- 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.
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.
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?
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.
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.
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.