summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/postgresql/PGpolygon.java
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-11-01 16:55:02 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-11-01 16:55:02 +0000
commit46fb81636c84ad5fc4007e567f2d82ddb4394567 (patch)
tree1e0068abbbbef6e2bee8098f40e653eae3d31397 /src/interfaces/jdbc/postgresql/PGpolygon.java
parent09634ebdfe2207eb379ca8566ffe599126125714 (diff)
Remove various files that were moved to various subdirectories...
Requested by: Peter T Mount peter@retep.org.uk
Diffstat (limited to 'src/interfaces/jdbc/postgresql/PGpolygon.java')
-rw-r--r--src/interfaces/jdbc/postgresql/PGpolygon.java60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/interfaces/jdbc/postgresql/PGpolygon.java b/src/interfaces/jdbc/postgresql/PGpolygon.java
deleted file mode 100644
index a17ceed67fa..00000000000
--- a/src/interfaces/jdbc/postgresql/PGpolygon.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- *
- * This implements a polygon (based on java.awt.Polygon)
- *
- */
-
-package postgresql;
-
-import java.io.*;
-import java.sql.*;
-
-public class PGpolygon implements Serializable
-{
- public int npoints;
-
- public PGpoint point[];
-
- public PGpolygon(int num,PGpoint[] points)
- {
- npoints = num;
- this.point = points;
- }
-
- /**
- * This constructor is used by the driver.
- */
- public PGpolygon(String s) throws SQLException
- {
- PGtokenizer t = new PGtokenizer(PGtokenizer.removePara(s),',');
- npoints = t.getSize();
- point = new PGpoint[npoints];
- for(int p=0;p<npoints;p++)
- point[p] = new PGpoint(t.getToken(p));
- }
-
- public boolean equals(Object obj)
- {
- PGpolygon p = (PGpolygon)obj;
-
- if(p.npoints != npoints)
- return false;
-
- for(int i=0;i<npoints;i++)
- if(!point[i].equals(p.point[i]))
- return false;
-
- return true;
- }
-
- /**
- * This returns the polygon in the syntax expected by postgresql
- */
- public String toString()
- {
- StringBuffer b = new StringBuffer();
- for(int p=0;p<npoints;p++)
- b.append(point[p].toString());
- return b.toString();
- }
-}