Package com.esri.core.geometry

Examples of com.esri.core.geometry.MultiPoint


      LogUtils.Log_VariableArgumentLengthXY(LOG);
      return null;
    }

    try {
      MultiPoint mPoint = new MultiPoint();

      for (int i=0;i<xyPairs.length;i+=2){
        mPoint.add(xyPairs[i].get(), xyPairs[i+1].get());
      }

      return GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(mPoint, null, true));
    } catch (Exception e) {
        LogUtils.Log_InternalError(LOG, "ST_MultiPoint: " + e);
View Full Code Here


        LogUtils.Log_InvalidIndex(LOG, idx+1, 1, lines.getPointCount());
        return null;
      }
      break;
    case MultiPoint:
      MultiPoint mp = (MultiPoint)(esriGeom);
      try {
        pn = mp.getPoint(idx);
      } catch (Exception e) {
        LogUtils.Log_InvalidIndex(LOG, idx+1, 1, mp.getPointCount());
        return null;
      }
      break;
    default// ST_Geometry ST_PointN gives ERROR on Point or Polygon (on PostgreSQL)
      LogUtils.Log_InvalidType(LOG, GeometryUtils.OGCType.ST_LINESTRING, GeometryUtils.getType(geomref));
View Full Code Here

  private OGCGeometry simplifyBunch_(GeometryCursor gc) {
    // Combines geometries into multipoint, polyline, and polygon types,
    // simplifying them and unioning them,
    // then produces OGCGeometry from the result.
    // Can produce OGCConcreteGoemetryCollection
    MultiPoint dstMultiPoint = null;
    ArrayList<Geometry> dstPolylines = new ArrayList<Geometry>();
    ArrayList<Geometry> dstPolygons = new ArrayList<Geometry>();
    for (com.esri.core.geometry.Geometry g = gc.next(); g != null; g = gc
        .next()) {
      switch (g.getType()) {
      case Point:
        if (dstMultiPoint == null)
          dstMultiPoint = new MultiPoint();
        dstMultiPoint.add((Point) g);
        break;
      case MultiPoint:
        if (dstMultiPoint == null)
          dstMultiPoint = new MultiPoint();
        dstMultiPoint.add((MultiPoint) g, 0, -1);
        break;
      case Polyline:
        dstPolylines.add((Polyline) g.copy());
        break;
      case Polygon:
View Full Code Here

  private OGCGeometry simplifyBunch_(GeometryCursor gc) {
    // Combines geometries into multipoint, polyline, and polygon types,
    // simplifying them and unioning them,
    // then produces OGCGeometry from the result.
    // Can produce OGCConcreteGoemetryCollection
    MultiPoint dstMultiPoint = null;
    ArrayList<Geometry> dstPolylines = new ArrayList<Geometry>();
    ArrayList<Geometry> dstPolygons = new ArrayList<Geometry>();
    for (com.esri.core.geometry.Geometry g = gc.next(); g != null; g = gc
        .next()) {
      switch (g.getType()) {
      case Point:
        if (dstMultiPoint == null)
          dstMultiPoint = new MultiPoint();
        dstMultiPoint.add((Point) g);
        break;
      case MultiPoint:
        if (dstMultiPoint == null)
          dstMultiPoint = new MultiPoint();
        dstMultiPoint.add((MultiPoint) g, 0, -1);
        break;
      case Polyline:
        dstPolylines.add((Polyline) g.copy());
        break;
      case Polygon:
View Full Code Here

    return "Point";
  }

  @Override
  public OGCGeometry boundary() {
    return new OGCMultiPoint(new MultiPoint(getEsriGeometry()
        .getDescription()), esriSR);// return empty point
  }
View Full Code Here

    multiPoint = mp;
    esriSR = sr;
  }

  public OGCMultiPoint(Point startPoint, SpatialReference sr) {
    multiPoint = new MultiPoint();
    multiPoint.add((Point) startPoint);
    esriSR = sr;
  }
View Full Code Here

    multiPoint.add((Point) startPoint);
    esriSR = sr;
  }

  public OGCMultiPoint(OGCPoint startPoint, OGCPoint endPoint) {
    multiPoint = new MultiPoint();
    multiPoint.add((Point) startPoint.getEsriGeometry());
    multiPoint.add((Point) endPoint.getEsriGeometry());
    esriSR = startPoint.esriSR;
  }
View Full Code Here

    esriSR = startPoint.esriSR;
  }

  public OGCMultiPoint(SpatialReference sr) {
    esriSR = sr;
    multiPoint = new MultiPoint();
  }
View Full Code Here

    multiPoint = mp;
    esriSR = sr;
  }

  public OGCMultiPoint(Point startPoint, SpatialReference sr) {
    multiPoint = new MultiPoint();
    multiPoint.add((Point) startPoint);
    esriSR = sr;
  }
View Full Code Here

    multiPoint.add((Point) startPoint);
    esriSR = sr;
  }

  public OGCMultiPoint(OGCPoint startPoint, OGCPoint endPoint) {
    multiPoint = new MultiPoint();
    multiPoint.add((Point) startPoint.getEsriGeometry());
    multiPoint.add((Point) endPoint.getEsriGeometry());
    esriSR = startPoint.esriSR;
  }
View Full Code Here

TOP

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

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.