LONG my_buffer(SE_SHAPE shape, LFLOAT distance) { LONG nparts = 0; LONG npoints = 0; LONG nsubs = 0; LONG sr; SE_SHAPE temp = NULL; sr = SE_shape_get_num_parts(shape,&nparts,&nsubs); if (sr != SE_SUCCESS) return sr; sr = SE_shape_get_num_points(shape,SE_ALL,SE_ALL,&npoints); if (sr != SE_SUCCESS) return sr; sr = SE_shape_create(NULL,&temp); if (sr != SE_SUCCESS) return sr; sr = SE_shape_duplicate(shape,temp); if (sr != SE_SUCCESS) goto bailout; npoints += (360 * nsubs) + 500; sr = SE_shape_generate_buffer(temp,distance,npoints,shape); bailout: SE_shape_free(temp); return sr; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.