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]
www.ozblog.com.au
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to