Skip to main content
Question

raster resampling error


koenvdw
Contributor
Forum|alt.badge.img+6

Hi

Does anybody know how to solve this?

 

 

Is it only in the twentieth file or are all the files troublesome?

8 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

Check that particular clipper polygon, I bet it's really narrow so that you end up with less than one pixel for one of the raster dimensions after your resampling. In order to avoid this you'll need to enforce a minimum size for the clipper features.


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • October 30, 2019

Or it's a larger clipper polygon that just gets the edge of the raster. Get the properties of the features coming from the raster port and discard any where num of columns or num of rows = 0


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • October 30, 2019
redgeographics wrote:

Check that particular clipper polygon, I bet it's really narrow so that you end up with less than one pixel for one of the raster dimensions after your resampling. In order to avoid this you'll need to enforce a minimum size for the clipper features.

Or it's a larger polygon that just gets the edge of the raster. Get the properties of the features coming from the raster port and discard any where num of columns or num of rows = 0


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • October 30, 2019
ebygomm wrote:

Or it's a larger clipper polygon that just gets the edge of the raster. Get the properties of the features coming from the raster port and discard any where num of columns or num of rows = 0

That could be possible...

I'm merging the tiles before the clipper now.

But if that fails I'll try to discard the ones with columns or rows = 0.

Where can I find the attribute columns or rows so I can use the tester transformer.

 


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • October 30, 2019
koenvdw wrote:

That could be possible...

I'm merging the tiles before the clipper now.

But if that fails I'll try to discard the ones with columns or rows = 0.

Where can I find the attribute columns or rows so I can use the tester transformer.

 

The raster property extractor will create the attributes you need to use in the tester

mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • October 30, 2019

You could throw in a RasterPropertyExtractor after the Clipper, to get the number of rows/columns, then use a Tester to filter out those with a zero for either value. It would help to debug the issue and also let the workspace run to completion without those features.


mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • October 30, 2019
mark2atsafe wrote:

You could throw in a RasterPropertyExtractor after the Clipper, to get the number of rows/columns, then use a Tester to filter out those with a zero for either value. It would help to debug the issue and also let the workspace run to completion without those features.

Which is pretty much what @ebygomm said - I really ought to read other answers more closely before posting myself!


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • October 30, 2019
mark2atsafe wrote:

Which is pretty much what @ebygomm said - I really ought to read other answers more closely before posting myself!

Great minds think alike and fools seldom differ :-)


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