Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MapViewer ECW custom image renderer - error:image region outside image area

535003Oct 5 2006 — edited Oct 10 2006
Hi,

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;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2006
Added on Oct 5 2006
4 comments
774 views