Tabnine Logo
Geometry.geometryChanged
Code IndexAdd Tabnine to your IDE (free)

How to use
geometryChanged
method
in
com.vividsolutions.jts.geom.Geometry

Best Java code snippets using com.vividsolutions.jts.geom.Geometry.geometryChanged (Showing top 20 results out of 315)

origin: com.vividsolutions/jts

/**
 * Adds the common coordinate bits back into a Geometry.
 * The coordinates of the Geometry are changed.
 *
 * @param geom the Geometry to which to add the common coordinate bits
 */
public void addCommonBits(Geometry geom)
{
 Translater trans = new Translater(commonCoord);
 geom.apply(trans);
 geom.geometryChanged();
}
origin: com.vividsolutions/jts

/**
 * Removes the common coordinate bits from a Geometry.
 * The coordinates of the Geometry are changed.
 *
 * @param geom the Geometry from which to remove the common coordinate bits
 * @return the shifted Geometry
 */
public Geometry removeCommonBits(Geometry geom)
{
 if (commonCoord.x == 0.0 && commonCoord.y == 0.0)
  return geom;
 Coordinate invCoord = new Coordinate(commonCoord);
 invCoord.x = -invCoord.x;
 invCoord.y = -invCoord.y;
 Translater trans = new Translater(invCoord);
 geom.apply(trans);
 geom.geometryChanged();
 return geom;
}
origin: org.geotools/gt-render

public void geometryChanged() {
  geometry.geometryChanged();
}
origin: com.vividsolutions/jts-core

/**
 * Adds the common coordinate bits back into a Geometry.
 * The coordinates of the Geometry are changed.
 *
 * @param geom the Geometry to which to add the common coordinate bits
 */
public void addCommonBits(Geometry geom)
{
 Translater trans = new Translater(commonCoord);
 geom.apply(trans);
 geom.geometryChanged();
}
origin: com.vividsolutions/jts-core

/**
 * Removes the common coordinate bits from a Geometry.
 * The coordinates of the Geometry are changed.
 *
 * @param geom the Geometry from which to remove the common coordinate bits
 * @return the shifted Geometry
 */
public Geometry removeCommonBits(Geometry geom)
{
 if (commonCoord.x == 0.0 && commonCoord.y == 0.0)
  return geom;
 Coordinate invCoord = new Coordinate(commonCoord);
 invCoord.x = -invCoord.x;
 invCoord.y = -invCoord.y;
 Translater trans = new Translater(invCoord);
 geom.apply(trans);
 geom.geometryChanged();
 return geom;
}
origin: org.geoserver/kml

/**
 * Extracts the
 * 
 * @param sf
 * @param context
 * @return
 */
private Geometry getFeatureGeometry(SimpleFeature sf, final double height) {
  Geometry geom = (Geometry) sf.getDefaultGeometry();
  if (!Double.isNaN(height) && height != 0) {
    geom.apply(new CoordinateFilter() {
      public void filter(Coordinate c) {
        c.setCoordinate(new Coordinate(c.x, c.y, height));
      }
    });
    geom.geometryChanged();
  }
  return geom;
}
origin: org.geotools/gt-widgets-swing-pending

private void dragGeometryNode(int mx, int my) {
  Coordinate mouseCoord = map2D.getRenderingStrategy().toMapCoord(mx, my);
  Geometry geo = geoms.get(0);
  Set<Geometry> set = editedNodes.keySet();
  for (Iterator<Geometry> ite = set.iterator(); ite.hasNext();) {
    Geometry subgeo = ite.next();
    Integer[] nodeIndexes = editedNodes.get(subgeo);
    for (int index : nodeIndexes) {
      subgeo.getCoordinates()[index].x = mouseCoord.x;
      subgeo.getCoordinates()[index].y = mouseCoord.y;
    }
    subgeo.geometryChanged();
  }
  clearMemoryLayer();
  setMemoryLayerGeometry(geoms);
}
origin: org.geotools/gt-widgets-swing-pending

private void dragGeometryNode(int mx, int my) {
  Coordinate mouseCoord = map2D.getRenderingStrategy().toMapCoord(mx, my);
  Geometry geo = geoms.get(0);
  Set<Geometry> set = editedNodes.keySet();
  for (Iterator<Geometry> ite = set.iterator(); ite.hasNext();) {
    Geometry subgeo = ite.next();
    Integer[] nodeIndexes = editedNodes.get(subgeo);
    for (int index : nodeIndexes) {
      subgeo.getCoordinates()[index].x = mouseCoord.x;
      subgeo.getCoordinates()[index].y = mouseCoord.y;
    }
    subgeo.geometryChanged();
  }
  clearMemoryLayer();
  setMemoryLayerGeometry(geoms);
}
origin: org.geotools/gt-widgets-swing-pending

private void dragGeometryNode(int mx, int my) {
  Coordinate mouseCoord = map2D.getRenderingStrategy().toMapCoord(mx, my);
  Geometry geo = geoms.get(0);
  Set<Geometry> set = editedNodes.keySet();
  for (Iterator<Geometry> ite = set.iterator(); ite.hasNext();) {
    Geometry subgeo = ite.next();
    Integer[] nodeIndexes = editedNodes.get(subgeo);
    for (int index : nodeIndexes) {
      subgeo.getCoordinates()[index].x = mouseCoord.x;
      subgeo.getCoordinates()[index].y = mouseCoord.y;
    }
    subgeo.geometryChanged();
  }
  clearMemoryLayer();
  setMemoryLayerGeometry(geoms);
}
origin: org.geotools/gt-widgets-swing-pending

private void dragGeometryNode(int mx, int my) {
  Coordinate mouseCoord = map2D.getRenderingStrategy().toMapCoord(mx, my);
  Geometry geo = geoms.get(0);
  Set<Geometry> set = editedNodes.keySet();
  for (Iterator<Geometry> ite = set.iterator(); ite.hasNext();) {
    Geometry subgeo = ite.next();
    Integer[] nodeIndexes = editedNodes.get(subgeo);
    for (int index : nodeIndexes) {
      subgeo.getCoordinates()[index].x = mouseCoord.x;
      subgeo.getCoordinates()[index].y = mouseCoord.y;
    }
    subgeo.geometryChanged();
  }
  clearMemoryLayer();
  setMemoryLayerGeometry(geoms);
}
origin: org.n52.shetland/shetland

/**
 * Switches the coordinates of a JTS Geometry.
 *
 * @param <G>
 *            the geometry type
 * @param geometry
 *            Geometry to switch coordinates.
 * @return Geometry with switched coordinates
 */
public static <G extends Geometry> G switchCoordinateAxisOrder(G geometry) {
  if (geometry == null) {
    return null;
  }
  @SuppressWarnings("unchecked")
  G geom = (G) geometry.clone();
  geom.apply(COORDINATE_SWITCHING_FILTER);
  geom.geometryChanged();
  return geom;
}
origin: org.geotools/gt-widgets-swing-pending

private void dragGeometryNode(int mx, int my) {
  Coordinate mouseCoord = map2D.getRenderingStrategy().toMapCoord(mx, my);
  Geometry geo = geoms.get(0);
  Set<Geometry> set = editedNodes.keySet();
  for (Iterator<Geometry> ite = set.iterator(); ite.hasNext();) {
    Geometry subgeo = ite.next();
    Integer[] nodeIndexes = editedNodes.get(subgeo);
    for (int index : nodeIndexes) {
      subgeo.getCoordinates()[index].x = mouseCoord.x;
      subgeo.getCoordinates()[index].y = mouseCoord.y;
    }
    subgeo.geometryChanged();
  }
  clearMemoryLayer();
  setMemoryLayerGeometry(geoms);
}
origin: org.geotools/gt-widgets-swing-pending

private void dragGeometryNode(int mx, int my) {
  Coordinate mouseCoord = map2D.getRenderingStrategy().toMapCoord(mx, my);
  Geometry geo = geoms.get(0);
  Set<Geometry> set = editedNodes.keySet();
  for (Iterator<Geometry> ite = set.iterator(); ite.hasNext();) {
    Geometry subgeo = ite.next();
    Integer[] nodeIndexes = editedNodes.get(subgeo);
    for (int index : nodeIndexes) {
      subgeo.getCoordinates()[index].x = mouseCoord.x;
      subgeo.getCoordinates()[index].y = mouseCoord.y;
    }
    subgeo.geometryChanged();
  }
  clearMemoryLayer();
  setMemoryLayerGeometry(geoms);
}
origin: org.geotools/gt-widgets-swing-pending

private void dragGeometryNode(int mx, int my) {
  Coordinate mouseCoord = map2D.getRenderingStrategy().toMapCoord(mx, my);
  Geometry geo = geoms.get(0);
  Set<Geometry> set = editedNodes.keySet();
  for (Iterator<Geometry> ite = set.iterator(); ite.hasNext();) {
    Geometry subgeo = ite.next();
    Integer[] nodeIndexes = editedNodes.get(subgeo);
    for (int index : nodeIndexes) {
      subgeo.getCoordinates()[index].x = mouseCoord.x;
      subgeo.getCoordinates()[index].y = mouseCoord.y;
    }
    subgeo.geometryChanged();
  }
  clearMemoryLayer();
  setMemoryLayerGeometry(geoms);
}
origin: com.spatial4j/spatial4j

 geom.geometryChanged();//applies to call component Geometries
return crossings[0];
origin: harbby/presto-connectors

 geom.geometryChanged();//applies to call component Geometries
return crossings[0];
origin: org.geotools/gt-main

if (decimator != null) {
  decimator.decimateTransformGeneralize(this.geometry,this.mathTransform);
  this.geometry.geometryChanged();
} else {
    this.geometry.geometryChanged();
    this.geometry.geometryChanged();
origin: org.geotools/gt-render

geom.geometryChanged();
  geom.geometryChanged();
  shape = new LiteShape2(geom, null, null, false, false);
origin: org.geotools/gt2-render

representativeGeom.geometryChanged(); // djb -- jessie should
origin: org.geomajas.plugin/geomajas-plugin-printing

geometry.geometryChanged();
com.vividsolutions.jts.geomGeometrygeometryChanged

Javadoc

Notifies this geometry that its coordinates have been changed by an external party (for example, via a CoordinateFilter). When this method is called the geometry will flush and/or update any derived information it has cached (such as its Envelope ). The operation is applied to all component Geometries.

Popular methods of Geometry

  • getEnvelopeInternal
    Gets an Envelope containing the minimum and maximum x and y values in this Geometry. If the geometr
  • getCoordinates
    Returns an array containing the values of all the vertices for this geometry. If the geometry is a c
  • isEmpty
    Tests whether the set of points covered by this Geometry is empty.
  • getCentroid
    Computes the centroid of this Geometry. The centroid is equal to the centroid of the set of componen
  • getGeometryN
    Returns an element Geometry from a GeometryCollection(or this, if the geometry is not a collection).
  • toText
    Returns the Well-known Text representation of this Geometry. For a definition of the Well-known Text
  • getNumGeometries
    Returns the number of Geometrys in a GeometryCollection(or 1, if the geometry is not a collection).
  • getFactory
    Gets the factory which contains the context in which this geometry was created.
  • getGeometryType
    Returns the name of this Geometry's actual class.
  • getSRID
    Returns the ID of the Spatial Reference System used by the Geometry. JTS supports Spatial Reference
  • getCoordinate
    Returns a vertex of this Geometry (usually, but not necessarily, the first one). The returned coordi
  • intersection
    Computes a Geometry representing the point-set which is common to both this Geometry and the other
  • getCoordinate,
  • intersection,
  • buffer,
  • contains,
  • getArea,
  • getEnvelope,
  • intersects,
  • union,
  • apply,
  • getLength

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • Menu (java.awt)
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ImageIO (javax.imageio)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now