Examples of geometryChanged()


Examples of com.vividsolutions.jts.geom.Geometry.geometryChanged()

                            public void filter(Coordinate c){
                                c.setCoordinate(new Coordinate(c.x, c.y, height));
                            }
                        }
                    );
                    geom.geometryChanged();
                }
            } catch (IOException ioe){
                LOGGER.log(Level.WARNING, "Couldn't render height template for " + f.getID(), ioe);
            }
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineString.geometryChanged()

        LineString g = gf.createLineString(csf.create(new double[] {0,0,0,10,0,0}));
        assertTrue(g.isValid());
       
        Decimator d = new Decimator(4, 4);
        d.decimate(g);
        g.geometryChanged();
        assertTrue(g.isValid());
        assertEquals(3, g.getCoordinateSequence().size());
    }
   
    @Test
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineString.geometryChanged()

        LineString g = gf.createLineString(csf.create(new double[] {0,0,0,2,2,2,0,0}));
        assertTrue(g.isValid());
       
        Decimator d = new Decimator(3, 3);
        d.decimateTransformGeneralize(g, new AffineTransform2D(new AffineTransform()));
        g.geometryChanged();
        assertTrue(g.isValid());
        assertEquals(4, g.getCoordinateSequence().size());
    }
   
    /**
 
View Full Code Here

Examples of com.vividsolutions.jts.geom.LinearRing.geometryChanged()

        LinearRing g = gf.createLinearRing(csf.create(new double[] {0,0,0,10,2,10,2,0,0,0}));
        assertTrue(g.isValid());
       
        Decimator d = new Decimator(4, 4);
        d.decimate(g);
        g.geometryChanged();
        assertTrue(g.isValid());
        assertEquals(4, g.getCoordinateSequence().size());
    }
   
    /**
 
View Full Code Here

Examples of com.vividsolutions.jts.geom.LinearRing.geometryChanged()

        LinearRing g = gf.createLinearRing(csf.create(new double[] {0,0,0,10,2,10,2,0,0,0}));
        assertTrue(g.isValid());
       
        Decimator d = new Decimator(20, 20);
        d.decimate(g);
        g.geometryChanged();
        assertTrue(g.isValid());
        assertEquals(4, g.getCoordinateSequence().size());
    }
   
    @Test
View Full Code Here

Examples of com.vividsolutions.jts.geom.Point.geometryChanged()

                        gp[0] = glyphBounds.getX() + ((double) glyphBounds.getWidth())
                            * (((double) j) / (n + 1));
                        transform.transform(gp, 0, tp, 0, 1);
                        c.x = tp[0];
                        c.y = tp[1];
                        pp.geometryChanged();
                       
                        // useful to debug the sampling point positions
                        // painter.graphics.setColor(Color.CYAN);
                        // painter.graphics.drawRect((int) (c.x - 1), (int) (c.y - 1), 2, 2);
                       
View Full Code Here

Examples of com.vividsolutions.jts.geom.Point.geometryChanged()

            int max = -1;
            int maxIdx = -1;
            int containCounter = -1;
            for (int i = 0; i < steps; i++) {
                c.x = env.getMinX() + step * i;
                pp.geometryChanged();
                if(!pg.contains(pp)) {
                    containCounter = 0;
                } else if(i == 0) {
                    containCounter = 1;
                } else {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Point.geometryChanged()

            }
                   
            if(maxIdx != -1) {
                int midIdx = max > 1 ? maxIdx - max / 2 : maxIdx;
                c.x = env.getMinX() + step * midIdx;
                pp.geometryChanged();
                centroid = pp;
            } else {
                return false;
            }
        }
View Full Code Here

Examples of com.vividsolutions.jts.geom.Point.geometryChanged()

                double dx = Math.cos(Math.toRadians(angle)) * radius;
                double dy = Math.sin(Math.toRadians(angle)) * radius;
               
                c.x = cc.x + dx;
                c.y = cc.y + dy;
                testPoint.geometryChanged();
                if(!pg.contains(testPoint))
                    continue;
               
                textStyle.setDisplacementX(dx);
                textStyle.setDisplacementY(dy);
View Full Code Here

Examples of com.vividsolutions.jts.geom.Polygon.geometryChanged()

                    } else {
                        tempCoordinates[0].x = pX; tempCoordinates[0].y = pY; 
                        tempCoordinates[1].x = nX; tempCoordinates[1].y = pY;
                        tempCoordinates[2].x = nX; tempCoordinates[2].y = nY;
                        tempCoordinates[3].x = pX; tempCoordinates[3].y = nY;
                        polygon.geometryChanged();
                    }

                    // transform to EckertIV and compute area
                    Geometry targetGeometry = JTS.transform(polygon, transform);
                    matrix[i][j] = (float) targetGeometry.getArea();
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.