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?


2 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • 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
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 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.


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