Package com.esri.core.geometry

Examples of com.esri.core.geometry.Polygon


      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    try {
      Polygon mPolygon = new Polygon();

      int arg_idx=0;
      for (List<DoubleWritable> multipath : multipaths)
        {
          if (multipath.size() %2 != 0){
            LogUtils.Log_VariableArgumentLengthXY(LOG, arg_idx);
            return null;
          }

          mPolygon.startPath(multipath.get(0).get(), multipath.get(0).get());

          for (int i=2;i<multipath.size();i+=2){
            mPolygon.lineTo(multipath.get(i).get(), multipath.get(i+1).get());
          }

          mPolygon.closeAllPaths();

          arg_idx++;
        }

      return GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(mPolygon, null, true));
View Full Code Here


      Envelope e = new Envelope();
      g.queryEnvelope(e);
      env.merge(e);
    }

    Polygon polygon = new Polygon();
    polygon.addEnvelope(env, false);
    return new OGCPolygon(polygon, esriSR);
  }
View Full Code Here

TOP

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

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.