Skip to main content
Solved

My input is contour lines, I want to convert to raster. How can I do this? I was thinking contour->vector->raster, but i am not sure how to convert contour to vector. Any help would be appreciated

  • January 20, 2022
  • 3 replies
  • 80 views

My input is contour lines, I want to convert to raster. How can I do this? I was thinking contour->vector->raster, but i am not sure how to convert contour to vector. Any help would be appreciated

Best answer by redgeographics

The contours are probably already vector, so you could use for example an ImageRasterizer or MapnikRasterizer to rasterize them.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • Best Answer
  • January 20, 2022

The contours are probably already vector, so you could use for example an ImageRasterizer or MapnikRasterizer to rasterize them.


  • Author
  • 2 replies
  • January 20, 2022

The contours are probably already vector, so you could use for example an ImageRasterizer or MapnikRasterizer to rasterize them.

I am not sure, looking at my contours they are polylines I think it would be termed. I used both transformers and it was returning errors.


  • Author
  • 2 replies
  • January 20, 2022

The contours are probably already vector, so you could use for example an ImageRasterizer or MapnikRasterizer to rasterize them.

Oh it is working now, I added a featureColorSetter and then the ImageRasterizer and it works! Thank you for the help :)