How to Get Buffer for Road in Arcgis Android? -
i developing 1 application using arcgis
. here want implement buffer both point , line segments (road).
here buffer point using method
geometryengine.buffer(geometry1,mmapview.getspatialreference(), meters, null)
where road if single segment able draw buffer.i unable draw buffer multiple segments.
please give me solution this.i want
my code
polygon = geometryengine.buffer(geometry1, mmapview.getspatialreference(), meters, null); withingeometry = geometryengine.project(polygon, mmapview.getspatialreference(), mmapview.getspatialreference()); simplefillsymbol sls = new simplefillsymbol(color.transparent); sls.setalpha(75); graphic graphics= new graphic(withingeometry,sls); buffergraphiclayer.addgraphic(graphics); mmapview.addlayer(buffergraphiclayer);
there 2 options should produce result want, both involving geometryengine.union(geometry[], spatialreference)
method:
- call
union
on array ofgeometry
objects want buffer produce singlegeometry
, , callbuffer
on singlegeometry
. - call
buffer
on array ofgeometry
objects want buffer producepolygon
array, , callunion
onpolygon
array.
Comments
Post a Comment