Combination View Flat View Tree View
Threads [ Previous | Next ]
[EPR-API] Raster bands subsampling
toggle
Hi,
I'm having some problem with EPR-API.
I have two rasters pointing to the same source area but having different sub-sampling factors:

1long xoffset = 0, yoffset = 0, xsize = 12, ysize = 10, xstep = 3, ystep = 2;
2
3raster1 = epr_create_compatible_raster(band_id, xsize, ysize, xstep, ystep);
4epr_read_band_raster(band_id, xoffset, yoffset, raster1);
5
6raster2 = epr_create_compatible_raster(band_id, xsize, ysize, 1, 1);
7epr_read_band_raster(band_id, xoffset, yoffset, raster2);


Now I would expect that holds the following relation

1for(y=0; y < raster1->raster_height; ++y)
2  for(x=0; x < raster1->raster_width; ++x)
3    epr_get_pixel_as_float(raster1, x, y) == epr_get_pixel_as_float(raster2, x*xstep, y*ystep);


Unfortunately this doesn't work and I can't figure out what is the problem.

Please, can anyone give me some hint?
Is it a bug?

regards

--
Antonio Valentino
Flag Flag
RE: [EPR-API] Raster bands subsampling
4/6/11 10:37 AM as a reply to Antonio Valentino.
Hi Antonio,

thanks for reporting this issue.
We will have a look at it.
I have also created an issue for this.

best wishes
Marco
Flag Flag
RE: [EPR-API] Raster bands subsampling
4/6/11 2:41 PM as a reply to Marco Peters.
Hi Marco,

Thank you very much.

Marco Peters:
I have also created an issue for this.


In the last days I opened a couple of issues for epr-api at https://github.com/bcdev/epr-api/issues.
I didn't realized that there is a another issue tracker on www.brockmann-consult.de for epr-api.

I apologize for the mess.

Antonio
Flag Flag
RE: [EPR-API] Raster bands subsampling
4/6/11 5:00 PM as a reply to Antonio Valentino.
Thanks for mentioning that you have used the issue tracker at GitHub. I didn't noticed it.
We will consolidate both and use only one of them in the future.
Yet not sure which one will survive.

Thanks for your commitment.

best wishes
Marco
Flag Flag

 

Welcome to the BEAM Forum!

We encourage you to sign in our forum and participate in the BEAM community. The forum is maintained by the BEAM project team who will most likely answer your questions within 24 hours (except during common holidays) - if not done by other community members. Collaborate, share your knowledge and learn from other users!

If you don't find what you are looking for, please also consider the following external forums: