Did you figure it out? If you need an example there is a gt-process-geometry 
class that has examples of everything. 

-- 
Jody Garnett


On Wednesday, 14 September 2011 at 5:53 PM, Levi Putna wrote:

> Geometry 
> 
> 
> Hey guys hope everyone is enjoying foss4g.
> 
> I have been working on the SmartBufferPoint and SmartBufferLine tool and hit 
> a wall.
> 
> I'm using "com.vividsolutions.jts.geom.Geometry.buffer(double distance, int 
> quadrantSegments)" to buffer my geometry however no mater what value I set 
> for distance, I still get the same amount of buffer. 
> 
> Is there a bug with this method, am I using it wrong or is there a better way 
> to buffer a Geometry? 
> 
> 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,
> 
> Mr Levi Putna
> [email protected] (mailto:[email protected])
> www.ozblog.com.au (http://www.ozblog.com.au)
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel

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

Reply via email to