Tabnine Logo
MultiPath.getPathSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getPathSize
method
in
com.esri.core.geometry.MultiPath

Best Java code snippets using com.esri.core.geometry.MultiPath.getPathSize (Showing top 14 results out of 315)

origin: com.esri.geometry/esri-geometry-api

/**
 * Returns the segment count in the given multipath path.
 * 
 * @param pathIndex
 *            The path to determine the segment.
 * @return The segment of the multipath.
 */
public int getSegmentCount(int pathIndex) {
  int segCount = getPathSize(pathIndex);
  if (!isClosedPath(pathIndex))
    segCount--;
  return segCount;
}
origin: Esri/geometry-api-java

/**
 * Returns the segment count in the given multipath path.
 * 
 * @param pathIndex
 *            The path to determine the segment.
 * @return The segment of the multipath.
 */
public int getSegmentCount(int pathIndex) {
  int segCount = getPathSize(pathIndex);
  if (!isClosedPath(pathIndex))
    segCount--;
  return segCount;
}
origin: com.esri.geometry/esri-geometry-api

  @Override
  public OGCPoint pointN(int n) {
    int nn;
    if (n == multiPath.getPathSize(0)) {
      nn = multiPath.getPathStart(0);
    } else
      nn = multiPath.getPathStart(0) + n;

    return (OGCPoint) OGCGeometry.createFromEsriGeometry(
        multiPath.getPoint(nn), esriSR);
  }
}
origin: Esri/geometry-api-java

  @Override
  public OGCPoint pointN(int n) {
    int nn;
    if (n == multiPath.getPathSize(0)) {
      nn = multiPath.getPathStart(0);
    } else
      nn = multiPath.getPathStart(0) + n;

    return (OGCPoint) OGCGeometry.createFromEsriGeometry(
        multiPath.getPoint(nn), esriSR);
  }
}
origin: Esri/geometry-api-java

/**
 * Returns the specified Point N in this LineString.
 * @param n The 0 based index of the Point.
 */
public OGCPoint pointN(int n) {
  int nn;
  if (multiPath.isClosedPath(0) && n == multiPath.getPathSize(0)) {
    nn = multiPath.getPathStart(0);
  } else
    nn = n + multiPath.getPathStart(0);
  return (OGCPoint) OGCGeometry.createFromEsriGeometry(
      multiPath.getPoint(nn), esriSR);
}
origin: com.esri.geometry/esri-geometry-api

/**
 * Returns the specified Point N in this LineString.
 * @param n The 0 based index of the Point.
 */
public OGCPoint pointN(int n) {
  int nn;
  if (multiPath.isClosedPath(0) && n == multiPath.getPathSize(0)) {
    nn = multiPath.getPathStart(0);
  } else
    nn = n + multiPath.getPathStart(0);
  return (OGCPoint) OGCGeometry.createFromEsriGeometry(
      multiPath.getPoint(nn), esriSR);
}
origin: Esri/geometry-api-java

Point2D v_2 = new Point2D();
MultiPathImpl src_mp = (MultiPathImpl) src._getImpl();
int path_size = src.getPathSize(ipath);
int path_start = src.getPathStart(ipath);
for (int i = 0, n = src.getPathSize(ipath); i < n; i++) {
  src_mp.getXY(path_start + i, pt_1);
  src_mp.getXY(path_start + (i + 1) % path_size, pt_2);
origin: com.esri.geometry/esri-geometry-api

if (multi_path.getPathSize(ipath) < 2)
  return newgeom; //return empty geometry
origin: com.esri.geometry/esri-geometry-api

Point2D v_2 = new Point2D();
MultiPathImpl src_mp = (MultiPathImpl) src._getImpl();
int path_size = src.getPathSize(ipath);
int path_start = src.getPathStart(ipath);
for (int i = 0, n = src.getPathSize(ipath); i < n; i++) {
  src_mp.getXY(path_start + i, pt_1);
  src_mp.getXY(path_start + (i + 1) % path_size, pt_2);
origin: Esri/geometry-api-java

if (multi_path.getPathSize(ipath) < 2)
  return newgeom; //return empty geometry
origin: Esri/geometry-api-java

jsonWriter.addValueArray();
int startindex = pp.getPathStart(i);
int numVertices = pp.getPathSize(i);
double startx = 0.0, starty = 0.0, startz = NumberUtils.NaN(), startm = NumberUtils.NaN();
double z = NumberUtils.NaN(), m = NumberUtils.NaN();
origin: com.esri.geometry/esri-geometry-api

jsonWriter.addValueArray();
int startindex = pp.getPathStart(i);
int numVertices = pp.getPathSize(i);
double startx = 0.0, starty = 0.0, startz = NumberUtils.NaN(), startm = NumberUtils.NaN();
double z = NumberUtils.NaN(), m = NumberUtils.NaN();
origin: Esri/geometry-api-java

if (multi_path_b.getPathSize(ipath) > 0)
origin: com.esri.geometry/esri-geometry-api

if (multi_path_b.getPathSize(ipath) > 0)
com.esri.core.geometryMultiPathgetPathSize

Javadoc

Returns the number of vertices in a path.

Popular methods of MultiPath

  • getPoint
  • getPointCount
  • getPathCount
    Returns the number of paths in this multipath.
  • getPathEnd
    Returns the index immediately following the last index of the path.
  • getPathStart
    Returns the start index of the path.
  • lineTo
    Adds a Line Segment to the given end point.
  • startPath
    Starts a new path at a point.
  • addSegment
    Adds a new segment to this multipath.
  • calculateLength2D
  • _getImpl
  • add
    Appends all paths from another multipath.
  • addPath
    Adds a new path to this multipath.
  • add,
  • addPath,
  • closePathWithLine,
  • createInstance,
  • estimateMemorySize,
  • getBoundary,
  • getDescription,
  • getPointByVal,
  • getSegmentCount

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • 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