Select to view content in your preferred language

GeometryService Buffer Union results error

974
2
06-09-2010 02:18 PM
ChrisSmith
Emerging Contributor
Hi

I am developing a silverlight app that uses the Rest geometry service to buffer and union the results

The following call works...(two overlapping polygons)
ArcGIS/rest/services/Geometry/GeometryServer/buffer?inSR=102100&outSR=102100&bufferSR=102100&distances=150&unit=9001&unionResults=true&geometries={"geometryType":"esriGeometryPolygon","geometries":[{"rings":[[[4760.63429102416,6695169.72251856],[6535.0182566172,6695140.63425683],[5555.71344500574,6693657.13290855],[4915.77168692301,6694190.41770695],[4760.63429102416,6695169.72251856]]]},{"rings":[[[6215.04737757584,6693773.48595547],[5924.1647602655,6694520.08467324],[6292.61607552526,6695024.28120991],[7145.87175296891,6694617.04554567],[6215.04737757584,6693773.48595547]]]}]}&f=json&

but if a third overlapping polygon is added it just returns an empty javascript object {} ...
ArcGIS/rest/services/Geometry/GeometryServer/buffer?inSR=102100&outSR=102100&bufferSR=102100&distances=150&unit=9001&unionResults=true&geometries={"geometryType":"esriGeometryPolygon","geometries":[{"rings":[[[4760.63429102416,6695169.72251856],[6535.0182566172,6695140.63425683],[5555.71344500574,6693657.13290855],[4915.77168692301,6694190.41770695],[4760.63429102416,6695169.72251856]]]},{"rings":[[[6215.04737757584,6693773.48595547],[5924.1647602655,6694520.08467324],[6292.61607552526,6695024.28120991],[7145.87175296891,6694617.04554567],[6215.04737757584,6693773.48595547]]]},{"rings":[[[6408.07694930826,6694260.45725222],[6572.15136340347,6694079.49282491],[7066.78746471993,6693843.03263989],[7549.35927088233,6694289.41156059],[7568.66214312882,6694651.34041522],[6408.07694930826,6694260.45725222]]]}]}&f=json&

The arcgis server logs contain the following error...
Method failed.HRESULT = 0x80040267 : This is a FACILITY_ITF error that is specific to the interface that returned this error. See the documentation of the interface that returned this error for information about this HRESULT.

Any help appreciated

Thanks

chris
0 Kudos
2 Replies
ChrisSmith
Emerging Contributor
I have found the cause of the problem, the third polygon has been manually digitised anti-clockwise thus making it a donut hole - so reorder the points in the final polygon and the request now works...

/ArcGIS/rest/services/Geometry/GeometryServer/buffer?inSR=102100&outSR=102100&bufferSR=102100&distances=150&unit=9001&unionResults=true&geometries={"geometryType":"esriGeometryPolygon","geometries":[{"rings":[[[4760.63429102416,6695169.72251856],[6535.0182566172,6695140.63425683],[5555.71344500574,6693657.13290855],[4915.77168692301,6694190.41770695],[4760.63429102416,6695169.72251856]]]},{"rings":[[[6215.04737757584,6693773.48595547],[5924.1647602655,6694520.08467324],[6292.61607552526,6695024.28120991],[7145.87175296891,6694617.04554567],[6215.04737757584,6693773.48595547]]]},{"rings":[[[6408.07694930826,6694260.45725222],[7568.66214312882,6694651.34041522],[7549.35927088233,6694289.41156059],[7066.78746471993,6693843.03263989],[6572.15136340347,6694079.49282491],[6408.07694930826,6694260.45725222]]]}]}&f=json&
0 Kudos
CoreyAlix
Regular Contributor
Are things (roadways) required to be digitized clockwise?  I'm running into a similar issue but reversing the points of my linear features does not always result in a successful response.
0 Kudos