Codota Logo
ReferencedEnvelope3D.getMaxZ
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: geotools/geotools

public double getMaxZ() {
  return envelope.getMaxZ();
}
origin: geotools/geotools

/**
 * Creates a new envelope from an existing JTS envelope.
 *
 * @param envelope The envelope to initialize from.
 * @param crs The coordinate reference system.
 * @throws MismatchedDimensionExceptionif the CRS dimension is not valid.
 */
public ReferencedEnvelope3D(final Envelope envelope, final CoordinateReferenceSystem crs)
    throws MismatchedDimensionException {
  super(envelope, crs);
  if (envelope instanceof ReferencedEnvelope3D) {
    this.minz = ((ReferencedEnvelope3D) envelope).getMinZ();
    this.maxz = ((ReferencedEnvelope3D) envelope).getMaxZ();
  }
}
origin: geotools/geotools

/** Returns the maximal ordinate along the specified dimension. */
public double getMaximum(final int dimension) {
  switch (dimension) {
    case 0:
      return getMaxX();
    case 1:
      return getMaxY();
    case 2:
      return getMaxZ();
    default:
      throw new IndexOutOfBoundsException(String.valueOf(dimension));
  }
}
origin: geotools/geotools

/** Returns the center ordinate along the specified dimension. */
public double getMedian(final int dimension) {
  switch (dimension) {
    case 0:
      return 0.5 * (getMinX() + getMaxX());
    case 1:
      return 0.5 * (getMinY() + getMaxY());
    case 2:
      return 0.5 * (getMinZ() + getMaxZ());
    default:
      throw new IndexOutOfBoundsException(String.valueOf(dimension));
  }
}
origin: geotools/geotools

/**
 * Tests if the <code>Envelope other</code> lies wholely inside this <code>Envelope</code>
 * (inclusive of the boundary).
 *
 * @param other the <code>Envelope</code> to check
 * @return true if this <code>Envelope</code> covers the <code>other</code>
 */
public boolean covers(ReferencedEnvelope3D other) {
  if (isNull() || other.isNull()) {
    return false;
  }
  return super.covers(other) && other.getMinZ() >= minz && other.getMaxZ() <= maxz;
}
origin: geotools/geotools

public boolean equals(Object obj) {
  if (obj == EVERYTHING) {
    return true;
  }
  if (obj instanceof ReferencedEnvelope3D) {
    ReferencedEnvelope3D other = (ReferencedEnvelope3D) obj;
    if (other.crs != EVERYTHING.crs) return false;
    if (other.getMinX() != EVERYTHING.getMinX()) return false;
    if (other.getMinY() != EVERYTHING.getMinY()) return false;
    if (other.getMinZ() != EVERYTHING.getMinZ()) return false;
    if (other.getMaxX() != EVERYTHING.getMaxX()) return false;
    if (other.getMaxY() != EVERYTHING.getMaxY()) return false;
    if (other.getMaxZ() != EVERYTHING.getMaxZ()) return false;
    return true;
  }
  return super.equals(obj);
}
origin: geotools/geotools

/**
 * Computes the coordinate of the centre of this envelope (as long as it is non-null
 *
 * @return the centre coordinate of this envelope <code>null</code> if the envelope is null
 */
public Coordinate centre() {
  if (isNull()) return null;
  return new Coordinate(
      (getMinX() + getMaxX()) / 2.0,
      (getMinY() + getMaxY()) / 2.0,
      (getMinZ() + getMaxZ()) / 2.0);
}
origin: geotools/geotools

/**
 * Enlarges this <code>Envelope</code> so that it contains the <code>other</code> Envelope. Has
 * no effect if <code>other</code> is wholly on or within the envelope.
 *
 * @param other the <code>Envelope</code> to expand to include
 */
public void expandToInclude(ReferencedEnvelope3D other) {
  ensureCompatibleReferenceSystem(other);
  if (other.isNull()) {
    return;
  }
  if (isNull()) {
    super.expandToInclude(other);
    minz = other.getMinZ();
    maxz = other.getMaxZ();
  } else {
    super.expandToInclude(other);
    if (other.minz < minz) {
      minz = other.minz;
    }
    if (other.maxz > maxz) {
      maxz = other.maxz;
    }
  }
}
origin: geotools/geotools

/**
 * Translates this envelope by given amounts in the X and Y direction.
 *
 * @param transX the amount to translate along the X axis
 * @param transY the amount to translate along the Y axis
 * @param transZ the amount to translate along the Z axis
 */
public void translate(double transX, double transY, double transZ) {
  if (isNull()) {
    return;
  }
  init(
      getMinX() + transX,
      getMaxX() + transX,
      getMinY() + transY,
      getMaxY() + transY,
      getMinZ() + transZ,
      getMaxZ() + transZ);
}
origin: geotools/geotools

@Test
public void empty() {
  // ensure empty can grab a default CRS when starting from nothing
  ReferencedEnvelope3D bbox = new ReferencedEnvelope3D(); // this is empty
  assertNull(bbox.getCoordinateReferenceSystem());
  ReferencedEnvelope3D australia = new ReferencedEnvelope3D(DefaultGeographicCRS.WGS84_3D);
  australia.include(40, 110, 0);
  australia.include(10, 150, 10);
  bbox.include(australia);
  assertEquals(australia.getCoordinateReferenceSystem(), bbox.getCoordinateReferenceSystem());
  assertEquals(0, bbox.getMinZ(), 0d);
  assertEquals(10, bbox.getMaxZ(), 0d);
}
origin: org.geoserver.web/gs-web-core

private void updateFields() {
  ReferencedEnvelope e = (ReferencedEnvelope) getModelObject();
  if (e != null) {
    this.minX = e.getMinX();
    this.minY = e.getMinY();
    this.maxX = e.getMaxX();
    this.maxY = e.getMaxY();
    this.crs = e.getCoordinateReferenceSystem();
    if (is3D()) {
      if (e instanceof ReferencedEnvelope3D) {
        this.minZ = ((ReferencedEnvelope3D) e).getMinZ();
        this.maxZ = ((ReferencedEnvelope3D) e).getMaxZ();
      } else {
        this.minZ = Double.NaN;
        this.maxZ = Double.NaN;
      }
    } else {
      this.minZ = Double.NaN;
      this.maxZ = Double.NaN;
    }
  }
}
org.geotools.geometry.jtsReferencedEnvelope3DgetMaxZ

Javadoc

Returns the Envelopes maximum z-value. min z > max z indicates that this is a null Envelope.

Popular methods of ReferencedEnvelope3D

  • <init>
  • getCoordinateReferenceSystem
  • getMinZ
  • expandToInclude
  • 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

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now