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

How to use
hasZ
method
in
mil.nga.sf.util.GeometryUtils

Best Java code snippets using mil.nga.sf.util.GeometryUtils.hasZ (Showing top 17 results out of 315)

origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param polygons
 *            list of polygons
 */
public MultiPolygon(List<Polygon> polygons) {
  this(GeometryUtils.hasZ(polygons), GeometryUtils.hasM(polygons));
  setPolygons(polygons);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param polygons
 *            list of polygons
 */
public TIN(List<Polygon> polygons) {
  this(GeometryUtils.hasZ(polygons), GeometryUtils.hasM(polygons));
  setPolygons(polygons);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param lineStrings
 *            list of line strings
 */
public MultiLineString(List<LineString> lineStrings) {
  this(GeometryUtils.hasZ(lineStrings), GeometryUtils.hasM(lineStrings));
  setLineStrings(lineStrings);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param rings
 *            list of rings
 */
public Polygon(List<LineString> rings) {
  this(GeometryUtils.hasZ(rings), GeometryUtils.hasM(rings));
  setRings(rings);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param points
 *            list of points
 */
public LinearRing(List<Point> points) {
  this(GeometryUtils.hasZ(points), GeometryUtils.hasM(points));
  setPoints(points);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param points
 *            list of points
 */
public LineString(List<Point> points) {
  this(GeometryUtils.hasZ(points), GeometryUtils.hasM(points));
  setPoints(points);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param rings
 *            list of rings
 */
public CurvePolygon(List<T> rings) {
  this(GeometryUtils.hasZ(rings), GeometryUtils.hasM(rings));
  setRings(rings);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param polygons
 *            list of polygons
 */
public PolyhedralSurface(List<Polygon> polygons) {
  this(GeometryUtils.hasZ(polygons), GeometryUtils.hasM(polygons));
  setPolygons(polygons);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param geometries
 *            list of geometries
 */
public GeometryCollection(List<T> geometries) {
  this(GeometryUtils.hasZ(geometries), GeometryUtils.hasM(geometries));
  setGeometries(geometries);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param points
 *            list of points
 */
public Line(List<Point> points) {
  this(GeometryUtils.hasZ(points), GeometryUtils.hasM(points));
  setPoints(points);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param rings
 *            list of rings
 */
public Triangle(List<LineString> rings) {
  this(GeometryUtils.hasZ(rings), GeometryUtils.hasM(rings));
  setRings(rings);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param points
 *            list of points
 */
public CircularString(List<Point> points) {
  this(GeometryUtils.hasZ(points), GeometryUtils.hasM(points));
  setPoints(points);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param points
 *            list of points
 */
public MultiPoint(List<Point> points) {
  this(GeometryUtils.hasZ(points), GeometryUtils.hasM(points));
  setPoints(points);
}
origin: mil.nga/sf

/**
 * Constructor
 * 
 * @param lineStrings
 *            list of line strings
 */
public CompoundCurve(List<LineString> lineStrings) {
  this(GeometryUtils.hasZ(lineStrings), GeometryUtils.hasM(lineStrings));
  setLineStrings(lineStrings);
}
origin: mil.nga.sf/sf-geojson

/**
 * Sets the coordinates from a GeoJSON Position list
 * 
 * @param positionList
 *            position list
 */
private void setCoordinates(List<List<Position>> positionList) {
  List<mil.nga.sf.LineString> lineStrings = new ArrayList<>();
  for (List<Position> lineStringPositions : positionList) {
    List<mil.nga.sf.Point> positions = new ArrayList<>();
    for (Position position : lineStringPositions) {
      positions.add(position.toSimplePoint());
    }
    mil.nga.sf.LineString lineString = new mil.nga.sf.LineString(
        GeometryUtils.hasZ(positions),
        GeometryUtils.hasM(positions));
    lineString.setPoints(positions);
    lineStrings.add(lineString);
  }
  if (multiLineString == null) {
    multiLineString = new mil.nga.sf.MultiLineString(lineStrings);
  } else {
    multiLineString.setGeometries(lineStrings);
  }
}
origin: mil.nga.sf/sf-geojson

/**
 * Sets the coordinates from a GeoJSON Position list
 * 
 * @param positionList
 *            position list
 */
private void setCoordinates(List<List<Position>> positionList) {
  List<mil.nga.sf.LineString> rings = new ArrayList<>();
  for (List<Position> ringPositions : positionList) {
    List<mil.nga.sf.Point> points = new ArrayList<>();
    for (Position position : ringPositions) {
      points.add(position.toSimplePoint());
    }
    mil.nga.sf.LinearRing ring = new mil.nga.sf.LinearRing(
        GeometryUtils.hasZ(points), GeometryUtils.hasM(points));
    ring.setPoints(points);
    rings.add(ring);
  }
  if (polygon == null) {
    polygon = new mil.nga.sf.Polygon(rings);
  } else {
    polygon.setRings(rings);
  }
}
origin: mil.nga.sf/sf-geojson

/**
 * Sets the coordinates from a GeoJSON Position list
 * 
 * @param positionList
 *            position list
 */
private void setCoordinates(List<List<List<Position>>> positionList) {
  List<mil.nga.sf.Polygon> polygons = new ArrayList<>();
  for (List<List<Position>> polygonPositions : positionList) {
    List<mil.nga.sf.LineString> rings = new ArrayList<>();
    for (List<Position> ringPositions : polygonPositions) {
      List<mil.nga.sf.Point> points = new ArrayList<>();
      for (Position position : ringPositions) {
        points.add(position.toSimplePoint());
      }
      mil.nga.sf.LinearRing ring = new mil.nga.sf.LinearRing(
          GeometryUtils.hasZ(points), GeometryUtils.hasM(points));
      ring.setPoints(points);
      rings.add(ring);
    }
    mil.nga.sf.Polygon polygon = new mil.nga.sf.Polygon(rings);
    polygons.add(polygon);
  }
  if (multiPolygon == null) {
    multiPolygon = new mil.nga.sf.MultiPolygon(polygons);
  } else {
    multiPolygon.setGeometries(polygons);
  }
}
mil.nga.sf.utilGeometryUtilshasZ

Javadoc

Determine if the geometries contain a Z value

Popular methods of GeometryUtils

  • simplifyPoints
    Simplify the ordered points (representing a line, polygon, etc) using the Douglas Peucker algorithm
  • hasM
    Determine if the geometries contain a M value
  • closedPolygon
    Check if the polygon outer ring is explicitly closed, where the first and last point are the same
  • distance
    Get the Pythagorean theorem distance between two points
  • getCentroid
    Get the centroid point of the Geometry
  • getDimension
    Get the dimension of the Geometry, 0 for points, 1 for curves, 2 for surfaces. If a collection, the
  • minimize
    Minimize the polyhedral surface
  • minimizeGeometry
    Minimize the geometry using the shortest x distance between each connected set of points. The result
  • normalize
    Normalize the polyhedral surface
  • normalizeGeometry
    Normalize the geometry so all points outside of the min and max value range are adjusted to fall wit
  • perpendicularDistance
    Calculate the perpendicular distance between the point and the line represented by the start and end
  • pointInPolygon
    Check if the point is in the polygon
  • perpendicularDistance,
  • pointInPolygon,
  • pointOnLine,
  • pointOnPath,
  • pointOnPolygonEdge

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Path (java.nio.file)
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top plugins for Android Studio
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