Skip to main content
Question

raster resampling error

  • October 30, 2019
  • 8 replies
  • 17 views

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?

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.

8 replies

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3701 replies
  • October 30, 2019

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+44
  • Influencer
  • 3427 replies
  • 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+44
  • Influencer
  • 3427 replies
  • October 30, 2019

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
  • 47 replies
  • 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

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+44
  • Influencer
  • 3427 replies
  • October 30, 2019

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+56
  • Safer
  • 2554 replies
  • 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+56
  • Safer
  • 2554 replies
  • 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.

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+44
  • Influencer
  • 3427 replies
  • October 30, 2019

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 :-)