int endX = (int) ((llp2.getLongitude() - ullon) / degPerHorBlock); int endY = (int) ((ullat - llp2.getLatitude()) / degPerVerBlock);
int endX = (int) Math.ceil((llp2.getLongitude() - ullon) / degPerHorBlock); int endY = (int) Math.ceil((ullat - llp2.getLatitude()) / degPerVerBlock);
    public OMGraphicList getTiledImages(Projection proj) throws IOException {        float ullat = pso;        float ullon = lso;        LatLonPoint llp1 = proj.getUpperLeft();        LatLonPoint llp2 = proj.getLowerRight();        int startX = (int) ((llp1.getLongitude() - ullon) / degPerHorBlock);        int startY = (int) ((ullat - llp1.getLatitude()) / degPerVerBlock);                int endX = (int) ((llp2.getLongitude() - ullon) / degPerHorBlock);        int endY = (int) ((ullat - llp2.getLatitude()) / degPerVerBlock);        if (startX < 0) startX = 0;        if (startY < 0) startY = 0;        if (endX > numHorBlocks_N) endX = numHorBlocks_N;        if (endY > numVerBlocks_M) endY = numVerBlocks_M;        return getTiledImages(new Rectangle(startX, startY, endX - startX, endY - startY), proj);    }