Skip to main content
Question

Is there a way to clip a vector line to a raster feature and find out the length of that line within the raster?

  • September 8, 2017
  • 2 replies
  • 23 views

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.

2 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • September 8, 2017

Hi @morgantitus3030,

Do you have a line and would you like to clip a raster? If you have a line : use the transformer LengthCalculator to calculate your line, and create a buffer to clip the raster.

Thanks,

Danilo


takashi
Celebrity
  • 7843 replies
  • September 8, 2017

Hi @morgantitus3030, if you intend to clip a line by the raster extents (rectangle area), can clip the line by the raster directly with the Clipper. You can then calculate the length of the clipped line with the LengthCalculator.

If you need to clip the line with Data MBR (Minimum Bounding Rectangle) Extents or Data Extents of the raster, consider using the RasterExtentsCoercer to create a preferable clipper area.