GeometryEngine.buffer Problem

2884
3
02-22-2012 07:03 AM
ScottPio
New Contributor
I think we found a bug in the GeometryEngine.buffer method.    We are buffering lines, points and polygons.  The buffering seems to work and is accurate in Decimal Degrees, but it is not accurate in Miles or Meters when outputting.

Here are sure to put it in the correct spacial reference and are hopefully calculating getting the correct unit type for the buffer.  Like I said, it seems to work and is accurate in Decimal Degrees, just not Miles or Meters.

We are using this list of WKIDs for the distance portion of the calculation.

http://spoiledtechie.com/post/2011/11/23/ESRI-WKID-(Well-Known-ID)-List-of-Units.aspx

We have double and triple checked the IDs to make sure they are accurate and they as well seem to be.  So maybe the buffer method isn't completely built out yet.

I would appreciate any forward motion on this.  Thank You!

Scott
0 Kudos
3 Replies
WeifengHe
Occasional Contributor II
When you say not accurate, do you mean the area value not accurate?  Are you using an equal area projection in this case?
0 Kudos
ScottPio
New Contributor
This is "some" of the code we are using to run the service

Polygon polygon = GeometryEngine.buffer(geometry, spatialReference, inputDistance,
         Unit.create(inputUnits));

Variables being

SpatialReference =SpatialReference.create(WGS_1984_WKID_LINEAR);
WGS_1984_WKID_LINEAR = 102113;
inputDistance = .0256;
inputUnits = being one of the below three

private static final int ESRI_METERS_UNIT_GUID = 9001;
private static final int DECIMAL_DEGREES_UNIT_GUID = 9102;
private static final int ESRI_MILES_UNIT_GUID = 9030;

The Decimal degrees when shown on the map looks accurate, while Meters and Miles look huge and well outside the bounds of what it should be.
0 Kudos
ScottPio
New Contributor
Bump.

Still need help with this.
0 Kudos