On Thursday, September 15, 2011 01:53:05 AM Levi Putna wrote:
> My code:
>         
>         //Buffer Geometry
> 
> 
>                 GeometryFactory fac = new GeometryFactory();
> 
>         if(drawType == ShapeType.POINT){
>             Point point = fac.createPoint(new
> Coordinate(translationX,translationY)); bufferGeometry =
> point.buffer(buffer,8);
>         }else if (drawType == ShapeType.LINE){
>              LineString line = fac.createLineString(coordinateSequence);
>             bufferGeometry = line.buffer(buffer,8);
>         }
>         
>         Coordinate[] bufferGeometryCoordinates =
> bufferGeometry.getCoordinates();
> 
> 
> Cheers,
Hi Levi: we have used bufferOp for our buffer spatial operation implementation. 
You could test this option              

Geometry bufferedGeometry =  
com.vividsolutions.jts.operation.buffer.BufferOp.bufferOp(sourceGeometry,       
        
distance,
quadrantSegments, 
endCapStyle);

cheers
-- 
Mauricio Pazos


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to