Codota Logo
GeometryUtils.hasM
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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 points
 *            list of points
 */
public LineString(List<Point> points) {
  this(GeometryUtils.hasZ(points), GeometryUtils.hasM(points));
  setPoints(points);
}
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 rings
 *            list of rings
 */
public CurvePolygon(List<T> rings) {
  this(GeometryUtils.hasZ(rings), GeometryUtils.hasM(rings));
  setRings(rings);
}
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 polygons
 *            list of polygons
 */
public TIN(List<Polygon> polygons) {
  this(GeometryUtils.hasZ(polygons), GeometryUtils.hasM(polygons));
  setPolygons(polygons);
}
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 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

/**
 * Constructor
 * 
 * @param points
 *            list of points
 */
public CircularString(List<Point> points) {
  this(GeometryUtils.hasZ(points), GeometryUtils.hasM(points));
  setPoints(points);
}
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.utilGeometryUtilshasM

Javadoc

Determine if the geometries contain a M value

Popular methods of GeometryUtils

  • simplifyPoints
    Simplify the ordered points (representing a line, polygon, etc) using the Douglas Peucker algorithm
  • hasZ
    Determine if the geometries contain a Z 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

  • Finding current android device location
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • notifyDataSetChanged (ArrayAdapter)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
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