+ Reply to Thread
Results 1 to 4 of 4

Thread: GeometryEngine.buffer Problem

  1. #1
    Scott Pio
    Join Date
    May 2010
    Posts
    15
    Points
    0
    Answers Provided
    0


    0

    Default GeometryEngine.buffer Problem

    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/1...-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

  2. #2
    Weifeng He
    Join Date
    Dec 2009
    Posts
    96
    Points
    31
    Answers Provided
    5


    0

    Default Re: GeometryEngine.buffer Problem

    When you say not accurate, do you mean the area value not accurate? Are you using an equal area projection in this case?

  3. #3
    Scott Pio
    Join Date
    May 2010
    Posts
    15
    Points
    0
    Answers Provided
    0


    0

    Default Re: GeometryEngine.buffer Problem

    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.

  4. #4
    Scott Pio
    Join Date
    May 2010
    Posts
    15
    Points
    0
    Answers Provided
    0


    0

    Default Re: GeometryEngine.buffer Problem

    Bump.

    Still need help with this.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts