Buffer Service - Spatial References

686
1
03-28-2011 10:31 AM
StevenJohnstone
New Contributor
I am trying to buffer a PolyLine (with a single path) by defining the Input Spatial Reference as '4326' which is the geographic WGS 84.  If I define the Buffer Spatial Reference also as '4326' I get an error back saying :

'An error occured while buffering geometry. Unable to complete the operation.
The coordinates or measures are out of bounds'

If I change the Buffer Spatial Reference to the WGS_1984_Web_Mercator (102113)  projected coordinate system it works fine.

Does anyone know why this doesn't work using 4326 as the Buffer Spatial Reference?  And does using the 102113 WKID as the Buffer Spatial Reference when the input and output references are 4326 give me an accurate result?

I am using the following as the geometry to buffer :

{"geometries":[{"paths":[[[-2.173058,51.865281],[-1.973058,52.065281000000006]]]}],"geometryType":"esriGeometryPolyline"}
0 Kudos
1 Reply
zhangshangfei
New Contributor
the buffer's parameters has two spatialreference,you should set bufferSpatialReference as 102113,and
outSpatialReference as 4326 or your map's spatialReference.
good luck for you!
0 Kudos