diss

Convex hull

Discussion created by diss on Jan 12, 2012
Latest reply on Dec 4, 2012 by xcwyqyhh0323
Hello everybody,

I try to create a convex hull of points with java and arcobjects - therefore I like to use the tool Minimum bounding rectangle from the Data Management Toolbox. The points are within the point shapefile test.shp.

I tried it like that:

                GeoProcessor GP = new GeoProcessor();
                MinimumBoundingGeometry mbg = new MinimumBoundingGeometry();
  mbg.setInFeatures("d:/test.shp");
  mbg.setGeometryType("convex_hull");
  mbg.setOutFeatureClass("d:/output.shp");
  GP.execute(mbg, null);

Unfortunately, it doesn't work. Does anybody know what to do?

Thanks for any help!

Outcomes