Tabnine Logo
ReferencedEnvelope3D.expandToInclude
Code IndexAdd Tabnine to your IDE (free)

How to use
expandToInclude
method
in
org.geotools.geometry.jts.ReferencedEnvelope3D

Best Java code snippets using org.geotools.geometry.jts.ReferencedEnvelope3D.expandToInclude (Showing top 9 results out of 315)

origin: geotools/geotools

/**
 * Enlarges this <code>Envelope</code> so that it contains the given {@link Coordinate}. Has no
 * effect if the point is already on or within the envelope.
 *
 * @param p the Coordinate to expand to include
 */
public void expandToInclude(Coordinate p) {
  expandToInclude(p.x, p.y, p.z);
}
origin: geotools/geotools

/** Include the provided coordinates, expanding as necessary. */
public void include(double x, double y, double z) {
  expandToInclude(x, y, z);
}
origin: geotools/geotools

/**
 * Enlarges this <code>Envelope</code> so that it contains the given point. Has no effect if the
 * point is already on or within the envelope.
 *
 * @param x the value to lower the minimum x to or to raise the maximum x to
 * @param y the value to lower the minimum y to or to raise the maximum y to
 * @param z the value to lower the minimum z to or to raise the maximum z to
 */
public void expandToInclude(double x, double y, double z) {
  if (isNull()) {
    expandToInclude(x, y);
    minz = z;
    maxz = z;
  } else {
    expandToInclude(x, y);
    if (z < minz) {
      minz = z;
    }
    if (z > maxz) {
      maxz = z;
    }
  }
}
origin: geotools/geotools

/** Include the provided bounding box, expanding as necessary. */
public void include(final BoundingBox3D bbox) {
  if (crs == null) {
    this.crs = bbox.getCoordinateReferenceSystem();
  }
  expandToInclude(getJTSEnvelope(bbox));
}
origin: geotools/geotools

public ReferencedEnvelope3D get3DEnvelope(Geometry geom) {
  Coordinate[] coordinates = geom.getCoordinates();
  ReferencedEnvelope3D env = new ReferencedEnvelope3D();
  for (Coordinate coordinate : coordinates) {
    env.expandToInclude(coordinate);
  }
  return env;
}
origin: geotools/geotools

@Override
public void expandToInclude(DirectPosition pt) {
  double x = pt.getOrdinate(0);
  double y = pt.getOrdinate(1);
  double z = pt.getDimension() >= 3 ? pt.getOrdinate(2) : Double.NaN;
  expandToInclude(x, y, z);
}
/**
origin: geotools/geotools

targetEnvelope.expandToInclude(pt);
targetEnvelope.expandToInclude(pt);
targetEnvelope.expandToInclude(pt);
targetEnvelope.expandToInclude(pt);
origin: geotools/geotools

JTS.transform(this, target, transform, numPointsForTransformation);
target.expandToInclude(0, 0, this.minz);
target.expandToInclude(0, 0, this.maxz);
origin: geotools/geotools

@Test
public void include() throws Exception {
  ReferencedEnvelope3D australia = new ReferencedEnvelope3D(DefaultGeographicCRS.WGS84_3D);
  australia.include(40, 110, 0);
  australia.include(10, 150, 10);
  ReferencedEnvelope3D newZealand =
      new ReferencedEnvelope3D(DefaultEngineeringCRS.CARTESIAN_3D);
  newZealand.include(50, 165, 0);
  newZealand.include(33, 180, 5);
  try {
    australia.expandToInclude(newZealand);
    fail("Expected a mismatch of CoordinateReferenceSystem");
  } catch (MismatchedReferenceSystemException t) {
    // expected
  }
  try {
    australia.include(newZealand);
    fail("Expected a mismatch of CoordinateReferenceSystem");
  } catch (MismatchedReferenceSystemException t) {
    // expected
  }
}
org.geotools.geometry.jtsReferencedEnvelope3DexpandToInclude

Javadoc

Enlarges this Envelope so that it contains the given point. Has no effect if the point is already on or within the envelope.

Popular methods of ReferencedEnvelope3D

  • <init>
  • getCoordinateReferenceSystem
  • getMaxZ
  • getMinZ
  • getDimension
    Returns the number of dimensions.
  • getMaximum
    Returns the maximal ordinate along the specified dimension.
  • getMinimum
    Returns the minimal ordinate along the specified dimension.
  • init
    Sets this envelope to the specified bounding box.
  • intersects
    Check if this bounding box intersects the provided bounds.
  • isEmpty
    Returns true if lengths along all dimension are zero.
  • isNull
  • setToNull
    Makes this Envelope a "null" envelope, that is, the envelope of the empty geometry.
  • isNull,
  • setToNull,
  • centre,
  • checkCoordinateReferenceSystemDimension,
  • contains,
  • covers,
  • distance,
  • ensureCompatibleReferenceSystem,
  • equals

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 12 Jupyter Notebook extensions
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