MapViewer ECW custom image renderer - error:image region outside image area
535003Oct 5 2006 — edited Oct 10 2006Hi,
I am encountering the following error when trying to implement an ECW custom image renderer.
com.ermapper.ecw.JNCSInvalidSetViewException: Specified image region is outside image area
If i subtract 0.2 from dWorldBRX and add 0.2 to dWorldBRY so it lies just within the MBR of the image it displays all image tiles, but i am left without 0.2m of the image to the right and bottom of the tile. Has anyone encountered this error (source code for paintECWfile is as per the forum)?
dWorldTLX = Math.max(dWorldTLX, dataWindow.getMinX());
dWorldTLY = Math.min(dWorldTLY, dataWindow.getMaxY());
dWorldBRX = Math.min(dWorldBRX, dataWindow.getMaxX());
dWorldBRY = Math.max(dWorldBRY, dataWindow.getMinY());
\\i've added the following 2 lines
dWorldBRX = dWorldBRX - 0.2;
dWorldBRY = dWorldBRY + 0.2;