[geos-commits] r2055 - trunk/source/headers/geos/geom

svn_geos at osgeo.org svn_geos at osgeo.org
Fri Dec 21 15:30:13 EST 2007


Author: benjubb
Date: 2007-12-21 15:30:13 -0500 (Fri, 21 Dec 2007)
New Revision: 2055

Modified:
   trunk/source/headers/geos/geom/Geometry.h
Log:
changed IsRectangle to be public

Modified: trunk/source/headers/geos/geom/Geometry.h
===================================================================
--- trunk/source/headers/geos/geom/Geometry.h	2007-12-21 20:03:37 UTC (rev 2054)
+++ trunk/source/headers/geos/geom/Geometry.h	2007-12-21 20:30:13 UTC (rev 2055)
@@ -288,6 +288,9 @@
 	/// Returns whether or not the set of points in this Geometry is empty.
 	virtual bool isEmpty() const=0; //Abstract
 
+	/// Polygon overrides to check for actual rectangle
+	virtual bool isRectangle() const { return false; }
+
 	/// Returns the dimension of this Geometry (0=point, 1=line, 2=surface)
 	virtual Dimension::DimensionType getDimension() const=0; //Abstract
 
@@ -707,7 +710,7 @@
 	//Geometry* fromInternalGeometry(const Geometry *g) const;
 
 	/// Polygon overrides to check for actual rectangle
-	virtual bool isRectangle() const { return false; }
+	//virtual bool isRectangle() const { return false; } -- moved to public
 
 	Geometry(const Geometry &geom);
 



More information about the geos-commits mailing list