Package com.esri.core.geometry

Examples of com.esri.core.geometry.GeometryCursor


      if (dstPolylines.size() == 1) {
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            dstPolylines.get(0), esriSR, true, null);
        result.add(resMP);
      } else {
        GeometryCursor res = OperatorUnion.local().execute(
            new SimpleGeometryCursor(dstPolylines), esriSR, null);
        Geometry resPolyline = res.next();
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            resPolyline, esriSR, true, null);
        result.add(resMP);
      }
    }

    if (dstPolygons.size() > 0) {
      if (dstPolygons.size() == 1) {
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            dstPolygons.get(0), esriSR, true, null);
        result.add(resMP);
      } else {
        GeometryCursor res = OperatorUnion.local().execute(
            new SimpleGeometryCursor(dstPolygons), esriSR, null);
        Geometry resPolygon = res.next();
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            resPolygon, esriSR, true, null);
        result.add(resMP);
      }
    }
View Full Code Here


      if (dstPolylines.size() == 1) {
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            dstPolylines.get(0), esriSR, true, null);
        result.add(resMP);
      } else {
        GeometryCursor res = OperatorUnion.local().execute(
            new SimpleGeometryCursor(dstPolylines), esriSR, null);
        Geometry resPolyline = res.next();
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            resPolyline, esriSR, true, null);
        result.add(resMP);
      }
    }

    if (dstPolygons.size() > 0) {
      if (dstPolygons.size() == 1) {
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            dstPolygons.get(0), esriSR, true, null);
        result.add(resMP);
      } else {
        GeometryCursor res = OperatorUnion.local().execute(
            new SimpleGeometryCursor(dstPolygons), esriSR, null);
        Geometry resPolygon = res.next();
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            resPolygon, esriSR, true, null);
        result.add(resMP);
      }
    }
View Full Code Here

    return !isEmpty() && geometries.get(0).isMeasured();
  }

  @Override
  public OGCGeometry envelope() {
    GeometryCursor gc = getEsriGeometryCursor();
    Envelope env = new Envelope();
    for (Geometry g = gc.next(); g != null; g = gc.next()) {
      Envelope e = new Envelope();
      g.queryEnvelope(e);
      env.merge(e);
    }
View Full Code Here

      if (dstPolylines.size() == 1) {
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            dstPolylines.get(0), esriSR, true, null);
        result.add(resMP);
      } else {
        GeometryCursor res = OperatorUnion.local().execute(
            new SimpleGeometryCursor(dstPolylines), esriSR, null);
        Geometry resPolyline = res.next();
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            resPolyline, esriSR, true, null);
        result.add(resMP);
      }
    }

    if (dstPolygons.size() > 0) {
      if (dstPolygons.size() == 1) {
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            dstPolygons.get(0), esriSR, true, null);
        result.add(resMP);
      } else {
        GeometryCursor res = OperatorUnion.local().execute(
            new SimpleGeometryCursor(dstPolygons), esriSR, null);
        Geometry resPolygon = res.next();
        Geometry resMP = OperatorSimplifyOGC.local().execute(
            resPolygon, esriSR, true, null);
        result.add(resMP);
      }
    }
View Full Code Here

    return !isEmpty() && geometries.get(0).isMeasured();
  }

  @Override
  public OGCGeometry envelope() {
    GeometryCursor gc = getEsriGeometryCursor();
    Envelope env = new Envelope();
    for (Geometry g = gc.next(); g != null; g = gc.next()) {
      Envelope e = new Envelope();
      g.queryEnvelope(e);
      env.merge(e);
    }
View Full Code Here

TOP

Related Classes of com.esri.core.geometry.GeometryCursor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.