Examples of expandToInclude()


Examples of com.vividsolutions.jts.geom.Envelope.expandToInclude()

            }
            Coordinate c = v.getCoordinate();
            if (c.x < 0) {
                leftEnv.expandToInclude(c);
            } else {
                rightEnv.expandToInclude(c);
                aRightCoordinate = c.x;
            }
        }

        if (leftEnv.getArea() == 0) {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.expandToInclude()

        drawLevel = DRAW_ALL;
    }

    public void zoomToLocation(Coordinate c) {
        Envelope e = new Envelope();
        e.expandToInclude(c);
        e.expandBy(0.002);
        modelBounds = e;
        matchAspect();
        drawLevel = DRAW_ALL;
    }
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.expandToInclude()

        drawLevel = DRAW_ALL;
    }

    public void zoomToVertex(Vertex v) {
        Envelope e = new Envelope();
        e.expandToInclude(v.getCoordinate());
        e.expandBy(0.002);
        modelBounds = e;
        drawLevel = DRAW_ALL;
    }
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.expandToInclude()

        Envelope env = new Envelope();

        Edge e = anno.getReferencedEdge();
        if (e != null) {
            this.enqueueHighlightedEdge(e);
            env.expandToInclude(e.getFromVertex().getCoordinate());
            env.expandToInclude(e.getToVertex().getCoordinate());
        }

        ArrayList<Vertex> vertices = new ArrayList<Vertex>();
        Vertex v = anno.getReferencedVertex();
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.expandToInclude()

        Edge e = anno.getReferencedEdge();
        if (e != null) {
            this.enqueueHighlightedEdge(e);
            env.expandToInclude(e.getFromVertex().getCoordinate());
            env.expandToInclude(e.getToVertex().getCoordinate());
        }

        ArrayList<Vertex> vertices = new ArrayList<Vertex>();
        Vertex v = anno.getReferencedVertex();
        if (v != null) {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.expandToInclude()

        }

        ArrayList<Vertex> vertices = new ArrayList<Vertex>();
        Vertex v = anno.getReferencedVertex();
        if (v != null) {
            env.expandToInclude(v.getCoordinate());
            vertices.add(v);
        }

        if (e == null && v == null)
            return;
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.expandToInclude()

    @Override
    protected Envelope computeEnvelopeInternal() {
        final Envelope result = new Envelope();
        for (LineString ls : components) {
            result.expandToInclude(ls.getEnvelopeInternal());
        }
        return result;
    }

    public int getNumGeometries() {
View Full Code Here

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

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

                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

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

                        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.