Package gistoolkit.features.featureutils

Examples of gistoolkit.features.featureutils.EnvelopeBuffer.expandToInclude()


                    EnvelopeBuffer tempEnvelopeBuffer = new EnvelopeBuffer();
                    for (int i=0; i<tempRecords.length; i++){
                        if (tempRecords[i] != null){
                            gistoolkit.features.Shape tempShape = tempRecords[i].getShape();
                            if (tempShape != null){
                                tempEnvelopeBuffer.expandToInclude(tempShape.getEnvelope());
                            }
                        }
                    }
                    tempEnvelope = tempEnvelopeBuffer.getEnvelope();
                }
View Full Code Here


                ImageInformation tempImageInformation = ImageReader.readImage(tempFile.getAbsolutePath());
                if (tempImageInformation != null){
               
                    // draw the tile on the image.
                    Envelope tempTileEnvelope = myIndex.getWorldCoordinates(tempResolution, tempPoints[i].x, tempPoints[i].y);
                    tempWorldBuffer.expandToInclude(tempTileEnvelope);
                    int tempTileStartX = (int) (((tempTileEnvelope.getMinX() - inEnvelope.getMinX())/inEnvelope.getWidth()) * tempWidth);
                    int tempTileStartY = tempHeight - (int) (((tempTileEnvelope.getMinY() - inEnvelope.getMinY())/inEnvelope.getHeight()) * tempHeight);
                    int tempTileEndX = (int) (((tempTileEnvelope.getMaxX() - inEnvelope.getMinX())/inEnvelope.getWidth()) * tempWidth);
                    int tempTileEndY = tempHeight - (int) (((tempTileEnvelope.getMaxY() - inEnvelope.getMinY())/inEnvelope.getHeight()) * tempHeight);
                    if (i==0) {
View Full Code Here

                        ImageInformation tempInformation = ImageUtilities.readImageInformation(tempImageFile);
                        if (tempInformation != null){
                           
                            // calculate the envelope for this file.
                            Envelope tempImgEnvelope = ImageUtilities.calculateEnvelope(tempFiles[i], tempInformation);
                            tempEnvelopeBuffer.expandToInclude(tempImgEnvelope);
                           
                            // save in the source list
                            ImageTile tempImageTile = new ImageTile(tempImageFile.getAbsolutePath(), tempImgEnvelope, tempInformation.getImageWidth(), tempInformation.getImageHeight());
                            mySourceList.add(tempImageTile);
                        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.