[geos-commits] r3299 - in trunk: include/geos/operation/buffer src/operation/buffer

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Apr 27 05:42:03 EDT 2011


Author: strk
Date: 2011-04-27 02:42:02 -0700 (Wed, 27 Apr 2011)
New Revision: 3299

Modified:
   trunk/include/geos/operation/buffer/BufferOp.h
   trunk/src/operation/buffer/BufferOp.cpp
Log:
Sync BufferOp class to JTS r378. Do not port the unused isSingleSided property.

Modified: trunk/include/geos/operation/buffer/BufferOp.h
===================================================================
--- trunk/include/geos/operation/buffer/BufferOp.h	2011-04-23 10:30:12 UTC (rev 3298)
+++ trunk/include/geos/operation/buffer/BufferOp.h	2011-04-27 09:42:02 UTC (rev 3299)
@@ -4,7 +4,7 @@
  * GEOS - Geometry Engine Open Source
  * http://geos.refractions.net
  *
- * Copyright (C) 2009  Sandro Santilli <strk at keybit.net>
+ * Copyright (C) 2009-2011 Sandro Santilli <strk at keybit.net>
  * Copyright (C) 2005-2007 Refractions Research Inc.
  * Copyright (C) 2001-2002 Vivid Solutions Inc.
  *
@@ -15,7 +15,7 @@
  *
  **********************************************************************
  *
- * Last port: operation/buffer/BufferOp.java r262 (JTS-1.12)
+ * Last port: operation/buffer/BufferOp.java r378 (JTS-1.12)
  *
  **********************************************************************/
 
@@ -51,15 +51,17 @@
  * Computes the buffer of a geometry, for both positive and negative
  * buffer distances.
  *
- * In GIS, the buffer of a geometry is defined as
- * the Minkowski sum or difference of the geometry
+ * In GIS, the positive (or negative) buffer of a geometry is defined as
+ * the Minkowski sum (or difference) of the geometry
  * with a circle with radius equal to the absolute value of the buffer
  * distance.
  * In the CAD/CAM world buffers are known as </i>offset curves</i>.
- * In morphological analysis they are known as <i>erosion</i> and <i>dilation</i>.
+ * In morphological analysis the operation of positive and negative buffering
+ * is referred to as <i>erosion</i> and <i>dilation</i>.
  *
  * The buffer operation always returns a polygonal result.
- * The negative or zero-distance buffer of lines and points is always an empty Polygon.
+ * The negative or zero-distance buffer of lines and points is always
+ * an empty Polygon.
  * 
  * Since true buffer curves may contain circular arcs,
  * computed buffer polygons can only be approximations to the true geometry.
@@ -190,7 +192,6 @@
 	{
 	}
 
-
 	/**
 	 * Specifies the end cap style of the generated buffer.
 	 * The styles supported are CAP_ROUND, CAP_BUTT, and CAP_SQUARE.

Modified: trunk/src/operation/buffer/BufferOp.cpp
===================================================================
--- trunk/src/operation/buffer/BufferOp.cpp	2011-04-23 10:30:12 UTC (rev 3298)
+++ trunk/src/operation/buffer/BufferOp.cpp	2011-04-27 09:42:02 UTC (rev 3299)
@@ -4,7 +4,7 @@
  * GEOS - Geometry Engine Open Source
  * http://geos.refractions.net
  *
- * Copyright (C) 2009  Sandro Santilli <strk at keybit.net>
+ * Copyright (C) 2009-2011 Sandro Santilli <strk at keybit.net>
  * Copyright (C) 2005-2007 Refractions Research Inc.
  * Copyright (C) 2001-2002 Vivid Solutions Inc.
  *
@@ -15,7 +15,7 @@
  *
  **********************************************************************
  *
- * Last port: operation/buffer/BufferOp.java r262 (JTS-1.12)
+ * Last port: operation/buffer/BufferOp.java r378 (JTS-1.12)
  *
  **********************************************************************/
 



More information about the geos-commits mailing list