Select to view content in your preferred language

Buffer task returns 0 results.

605
4
11-01-2010 10:36 AM
BrentHoskisson
Frequent Contributor
Occasionally (not all the time) if my buffer feature is a line or a polygon, the buffer returns 0 results.  Buffering a point always seems to work (all arguments and properties remaining the same).  Is there some issues to know about polygons or lines that cause a buffer to succeeed or fail?
0 Kudos
4 Replies
JenniferNery
Esri Regular Contributor
I cannot think of any issue with drawing a Polygon or Polyline besides that maybe the geometry need to be simplified first.

You may also use the Editor's Add to see if it will give you a different result from using Draw. Or if you want to continue to use Draw, try to call SimplifyAsync on the geometry before calling BufferAsync.
0 Kudos
BrentHoskisson
Frequent Contributor
Simplify didn't fix anything.  The shape it is buffering is just a two point line drawn by the user on the map.  It takes the simplified shape and still will not give a buffer shape back.  No errors are returned at all, No results and no errors.  I am just wondering if there is another way to check what might be happening.  If the shape needed to be simplified, wouldn't the program fall into my Failed event?

Are there any examples to help us create our own geometry service?
0 Kudos
JenniferNery
Esri Regular Contributor
If the shape needed to be simplified, wouldn't the program fall into my Failed event?


Not necessarily, sometimes you can get incorrect values because the input was incorrect.  But here's how you can create your own Geometry Service: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_java_help/index.html#/Geometry_servic...
0 Kudos
BrentHoskisson
Frequent Contributor
Well, it's all working again with nothing I did.  Just got back to work and it's running.  It just appears from the outside that the Buffer task is unstable as it relates to Lines and Polygons.
0 Kudos