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.Geometry.geometryChanged()

  {
    AffineTransformation transformer = createWorldToScreenTransform( view.getEnvelopeInternal(), screenSize );
   
    Geometry position = (Geometry)intersection.clone();
    position.apply( transformer );
    position.geometryChanged();
   
    return position;
  }
 
  /**
 
View Full Code Here

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

        coord.x = normX(coord.x + lon_shift);
        if (ctx.isGeo() && Math.abs(coord.x) == 180 && random.nextBoolean())
          coord.x = - coord.x;//invert sign of dateline boundary some of the time
      }
    });
    pGeom.geometryChanged();
    assertFalse(pGeom.isValid());
    return (JtsGeometry) ctx.readShapeFromWkt(pGeom.toText());
  }

  @Test
View Full Code Here

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

                    shape = null;
                } else {
                    // first generalize and transform the geometry into the rendering CRS
                    Decimator d = getDecimator(sa.xform);
                    geom = d.decimateTransformGeneralize(geom, sa.rxform);
                    geom.geometryChanged();
                    // then post process it (provide reverse transform if available)
                    MathTransform reverse = null;
                    if (sa.crsxform != null) {
                        if (sa.crsxform instanceof ConcatenatedTransform
                                && ((ConcatenatedTransform) sa.crsxform).transform1
View Full Code Here

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

                        // apply the affine transform turning the coordinates into pixels
                        d = new Decimator(-1, -1);
                        geom = d.decimateTransformGeneralize(geom, sa.axform);
   
                        // wrap into a lite shape
                        geom.geometryChanged();
                        shape = new LiteShape2(geom, null, null, false, false);
                    }
                }
            } else {
                MathTransform xform = null;
View Full Code Here

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

        // if it's touching both datelines then don't wrap it, as it might be something
        // like antarctica
        if (datelineWrappingCheckEnabled && width > radius && width < radius * 2) {
            Geometry wrapped = (Geometry) geometry.clone();
            wrapped.apply(new WrappingCoordinateFilter(radius, radius * 2, mt, northEast));
            wrapped.geometryChanged();
            // did we un-wrap it?
            if (wrapped.getEnvelopeInternal().getWidth() < radius) {
                geometry = wrapped;
                env = geometry.getEnvelopeInternal();
            }
View Full Code Here

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

                // in this case we can keep the original geometry, which is already in
            } else {
                // in all other cases we make a copy and offset it
                Geometry offseted = (Geometry) geometry.clone();
                offseted.apply(new OffsetOrdinateFilter(northEast ? 1 : 0, offset));
                offseted.geometryChanged();      
                geomType = accumulate(geoms, offseted, geomType);
            }

            curr += radius * 2;
        }
View Full Code Here

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

                    }
                }
                return ((double) count) / (n * painter.getLineCount());
            } catch (Exception e) {
                Geometry g = representativeGeom.getGeometry();
                g.geometryChanged();
                Envelope ePoly = g.getEnvelopeInternal();
                Envelope eglyph = toEnvelope(transform.createTransformedShape(glyphBounds).getBounds2D());
                Envelope inter = intersection(ePoly, eglyph);
                if (inter != null) {
                    return (inter.getWidth() * inter.getHeight())
 
View Full Code Here

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

                    geom.apply(new CoordinateFilter() {
                        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.Geometry.geometryChanged()

                geom.apply(new CoordinateFilter() {
                    public void filter(Coordinate c) {
                        c.setCoordinate(new Coordinate(c.x, c.y, height));
                    }
                });
                geom.geometryChanged();
            }

            return geom;
        }
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.