On Mon, May 9, 2011 at 7:19 AM, andrea antonello
<andrea.antone...@gmail.com> wrote:
> Hi coverage friends,
> I have a strange scaling issue that is giving troubles to my testcases
> and need some advice.
>
> Let's assume I have a small raster containing the data:
>
> {1000.0, 1000.0, 1200.0, 1250.0, 1300.0, 1350.0, 1450.0}, //
> {750.0, 850.0, 860.0, 900.0, 1000.0, 1200.0, 1250.0}, //
> {700.0, 750.0, 800.0, 850.0, 900.0, 1000.0, 1100.0}, //
> {650.0, 700.0, 750.0, 800.0, 850.0, 490.0, 450.0}, //
> {430.0, 500.0, 600.0, 700.0, 800.0, 500.0, 450.0}, //
> {700.0, 750.0, 760.0, 770.0, 850.0, 1000.0, 1150.0} //
>
> I use the jai scxaling operation to scale it from 6 rows to be 5 rows.
> Well, on linux and mac systems I get:
>
> {1000.0, 1200.0, 1250.0, 1300.0, 1450.0}, //
> {750.0, 860.0, 900.0, 1000.0, 1250.0}, //
> {700.0, 800.0, 850.0, 900.0, 1100.0}, //
> {430.0, 600.0, 700.0, 800.0, 450.0}, //
> {700.0, 760.0, 770.0, 850.0, 1150.0} //
>
> While on windows I get:
>
> {1000.0, 1200.0, 1250.0, 1300.0, 1450.0}, //
> {750.0, 860.0, 900.0, 1000.0, 1250.0}, //
> {650.0, 750.0, 800.0, 850.0, 450.0}, //
> {430.0, 600.0, 700.0, 800.0, 450.0}, //
> {700.0, 760.0, 770.0, 850.0, 1150.0} //
>
> The fact is that the center of the resulting 3. row is between row 3
> and 4 of the starting data. Probably some floating point precision
> thing?
> In the case of nearest neighbor scaling, I assume the upper row should
> be picked?
> Any idea how to solve this. My latest banging the head against the
> wall didn't give the necessary results.

Uh, never seen this one. Things that might help isolate the issue:
- super-duper sure you're using the same interpolation? Are you
forcing a specific one explicitly?
- what about native librarires, are they installed on some machine but
not on other?

Cheers
Andrea



-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to