From 25ff5879fdd9f7eb719c87e96a6ad388625d359b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sun, 30 Jan 2005 09:48:34 +0000 Subject: [PATCH] replaced by PGbox2d.java git-svn-id: http://svn.osgeo.org/postgis/trunk@1355 b70326c6-7e19-0410-871a-916f4a2858ee --- jdbc2/src/org/postgis/PGbox.java | 72 -------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 jdbc2/src/org/postgis/PGbox.java diff --git a/jdbc2/src/org/postgis/PGbox.java b/jdbc2/src/org/postgis/PGbox.java deleted file mode 100644 index 920e75a9f..000000000 --- a/jdbc2/src/org/postgis/PGbox.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.postgis; - -import org.postgresql.util.PGobject; -import org.postgresql.util.PGtokenizer; - -import java.sql.SQLException; - -/* - * Updates Oct 2002 - data members made private - getLLB() and getURT() methods - * added - */ - -public class PGbox extends PGobject { - - /** - * The lower left bottom corner of the box. - */ - private Point llb; - - /** - * The upper right top corner of the box. - */ - private Point urt; - - public PGbox() { - // do nothing. - } - - public PGbox(Point llb, Point urt) { - this.llb = llb; - this.urt = urt; - } - - public PGbox(String value) throws SQLException { - setValue(value); - } - - public void setValue(String value) throws SQLException { - value = value.trim(); - if (value.startsWith("BOX")) { - value = value.substring(5); - } - PGtokenizer t = new PGtokenizer(PGtokenizer.removePara(value.trim()), ','); - llb = new Point(t.getToken(0)); - urt = new Point(t.getToken(1)); - } - - public String getValue() { - return "BOX(" + llb.getValue() + "," + urt.getValue() + ")"; - } - - public String toString() { - return getValue(); - } - - public Object clone() { - PGbox obj = new PGbox(llb, urt); - obj.setType(type); - return obj; - } - - /** Returns the lower left bottom corner of the box as a Point object */ - public Point getLLB() { - return llb; - } - - /** Returns the upper right top corner of the box as a Point object */ - public Point getURT() { - return urt; - } - -} \ No newline at end of file -- 2.40.0