congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GeometryEnvelopeBuilder.buildEnvelope
Code IndexAdd Tabnine to your IDE (free)

How to use
buildEnvelope
method
in
mil.nga.sf.util.GeometryEnvelopeBuilder

Best Java code snippets using mil.nga.sf.util.GeometryEnvelopeBuilder.buildEnvelope (Showing top 9 results out of 315)

origin: mil.nga/sf

/**
 * Get the minimum bounding box for this Geometry
 * 
 * @return geometry envelope
 */
public GeometryEnvelope getEnvelope() {
  return GeometryEnvelopeBuilder.buildEnvelope(this);
}
origin: mil.nga/sf

/**
 * Add CurvePolygon
 * 
 * @param envelope
 *            geometry envelope
 * @param curvePolygon
 *            curve polygon
 */
private static void addCurvePolygon(GeometryEnvelope envelope,
    CurvePolygon<Curve> curvePolygon) {
  updateHasZandM(envelope, curvePolygon);
  List<Curve> rings = curvePolygon.getRings();
  for (Curve ring : rings) {
    buildEnvelope(ring, envelope);
  }
}
origin: mil.nga.geopackage/geopackage-core

/**
 * Get the envelope if it exists or build it from the geometry if not null
 * 
 * @return geometry envelope
 * @since 3.1.0
 */
public GeometryEnvelope getOrBuildEnvelope() {
  GeometryEnvelope envelope = getEnvelope();
  if (envelope == null) {
    Geometry geometry = getGeometry();
    if (geometry != null) {
      envelope = GeometryEnvelopeBuilder.buildEnvelope(geometry);
    }
  }
  return envelope;
}
origin: mil.nga/sf

/**
 * Build Geometry Envelope
 * 
 * @param geometry
 *            geometry to build envelope from
 * @return geometry envelope
 */
public static GeometryEnvelope buildEnvelope(Geometry geometry) {
  GeometryEnvelope envelope = new GeometryEnvelope();
  envelope.setMinX(Double.MAX_VALUE);
  envelope.setMaxX(-Double.MAX_VALUE);
  envelope.setMinY(Double.MAX_VALUE);
  envelope.setMaxY(-Double.MAX_VALUE);
  buildEnvelope(geometry, envelope);
  return envelope;
}
origin: ngageoint/geopackage-android

Geometry geometry = geomData.getGeometry();
if (geometry != null) {
  envelope = GeometryEnvelopeBuilder.buildEnvelope(geometry);
origin: ngageoint/geopackage-android

for (Geometry geometry : geometries) {
  if (envelope == null) {
    envelope = GeometryEnvelopeBuilder.buildEnvelope(geometry);
  } else {
    GeometryEnvelopeBuilder.buildEnvelope(geometry, envelope);
origin: mil.nga/sf

List<Geometry> geometries = geomCollection.getGeometries();
for (Geometry subGeometry : geometries) {
  buildEnvelope(subGeometry, envelope);
origin: ngageoint/geopackage-android

envelope = GeometryEnvelopeBuilder.buildEnvelope(point);
resultCount = 0;
featureFound = false;
origin: ngageoint/geopackage-android

envelope = GeometryEnvelopeBuilder.buildEnvelope(point);
resultCount = 0;
featureFound = false;
mil.nga.sf.utilGeometryEnvelopeBuilderbuildEnvelope

Javadoc

Build Geometry Envelope

Popular methods of GeometryEnvelopeBuilder

  • addCompoundCurve
    Add CompoundCurve
  • addCurvePolygon
    Add CurvePolygon
  • addLineString
    Add LineString
  • addMultiLineString
    Add MultiLineString
  • addMultiPoint
    Add MultiPoint
  • addMultiPolygon
    Add MultiPolygon
  • addPoint
    Add Point
  • addPolygon
    Add Polygon
  • addPolyhedralSurface
    Add PolyhedralSurface
  • updateHasZandM
    Update the has z and m values

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 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