Codota Logo
MultiPath.add
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain MultiPath
private void myMethod () {
MultiPath m =
  • Codota Iconnew Polyline()
  • Codota IconOGCGeometry oGCGeometry;(MultiPath) oGCGeometry.getEsriGeometry()
  • Smart code suggestions by Codota
}
origin: Esri/geometry-api-java

private void generate_polyline_cuts_() {
  MultiPath left = new Polyline();
  MultiPath right = new Polyline();
  MultiPath uncut = new Polyline();
  m_cuts.add(left);
  m_cuts.add(right);
  ArrayList<OperatorCutLocal.CutPair> cutPairs = new ArrayList<OperatorCutLocal.CutPair>(
      0);
  Cutter.CutPolyline(m_bConsiderTouch, (Polyline) m_cuttee, m_cutter,
      m_tolerance, cutPairs, null, m_progressTracker);
  for (int icut = 0; icut < cutPairs.size(); icut++) {
    OperatorCutLocal.CutPair cutPair = cutPairs.get(icut);
    if (cutPair.m_side == Side.Left) {
      left.add((MultiPath) cutPair.m_geometry, false);
    } else if (cutPair.m_side == Side.Right
        || cutPair.m_side == Side.Coincident) {
      right.add((MultiPath) cutPair.m_geometry, false);
    } else if (cutPair.m_side == Side.Undefined) {
      m_cuts.add((MultiPath) cutPair.m_geometry);
    } else {
      uncut.add((MultiPath) cutPair.m_geometry, false);
    }
  }
  if (!uncut.isEmpty()
      && (!left.isEmpty() || !right.isEmpty() || m_cuts.size() >= 3))
    m_cuts.add(uncut);
  if (left.isEmpty() && right.isEmpty() && m_cuts.size() < 3)
    m_cuts.clear(); // no cuts
}
origin: com.esri.geometry/esri-geometry-api

private void generate_polyline_cuts_() {
  MultiPath left = new Polyline();
  MultiPath right = new Polyline();
  MultiPath uncut = new Polyline();
  m_cuts.add(left);
  m_cuts.add(right);
  ArrayList<OperatorCutLocal.CutPair> cutPairs = new ArrayList<OperatorCutLocal.CutPair>(
      0);
  Cutter.CutPolyline(m_bConsiderTouch, (Polyline) m_cuttee, m_cutter,
      m_tolerance, cutPairs, null, m_progressTracker);
  for (int icut = 0; icut < cutPairs.size(); icut++) {
    OperatorCutLocal.CutPair cutPair = cutPairs.get(icut);
    if (cutPair.m_side == Side.Left) {
      left.add((MultiPath) cutPair.m_geometry, false);
    } else if (cutPair.m_side == Side.Right
        || cutPair.m_side == Side.Coincident) {
      right.add((MultiPath) cutPair.m_geometry, false);
    } else if (cutPair.m_side == Side.Undefined) {
      m_cuts.add((MultiPath) cutPair.m_geometry);
    } else {
      uncut.add((MultiPath) cutPair.m_geometry, false);
    }
  }
  if (!uncut.isEmpty()
      && (!left.isEmpty() || !right.isEmpty() || m_cuts.size() >= 3))
    m_cuts.add(uncut);
  if (left.isEmpty() && right.isEmpty() && m_cuts.size() < 3)
    m_cuts.clear(); // no cuts
}
origin: com.esri.geometry/esri-geometry-api

  polyline = new OGCMultiLineString(esriSR);
((MultiPath)polyline.getEsriGeometry()).add((Polyline)g, false);
continue;
origin: Esri/geometry-api-java

  polyline = new OGCMultiLineString(esriSR);
((MultiPath)polyline.getEsriGeometry()).add((Polyline)g, false);
continue;
origin: Esri/geometry-api-java

    cutHandles.get(icutIndex), sideIndex);
if (side == 2)
  left.add((MultiPath) cutGeometry, false);
else if (side == 1)
  right.add((MultiPath) cutGeometry, false);
else
origin: com.esri.geometry/esri-geometry-api

    cutHandles.get(icutIndex), sideIndex);
if (side == 2)
  left.add((MultiPath) cutGeometry, false);
else if (side == 1)
  right.add((MultiPath) cutGeometry, false);
else
com.esri.core.geometryMultiPathadd

Javadoc

Appends all paths from another multipath.

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
  • addPath
    Adds a new path to this multipath.
  • closePathWithLine
    Closes the last path of this multipath with a line segment. The closing segment is a segment that co
  • addPath,
  • closePathWithLine,
  • createInstance,
  • estimateMemorySize,
  • getBoundary,
  • getDescription,
  • getPathSize,
  • getPointByVal,
  • getSegmentCount

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getSystemService (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Collectors (java.util.stream)
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