]> granicus.if.org Git - postgis/commitdiff
replaced by PGbox2d.java
authorSandro Santilli <strk@keybit.net>
Sun, 30 Jan 2005 09:48:34 +0000 (09:48 +0000)
committerSandro Santilli <strk@keybit.net>
Sun, 30 Jan 2005 09:48:34 +0000 (09:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1355 b70326c6-7e19-0410-871a-916f4a2858ee

jdbc2/src/org/postgis/PGbox.java [deleted file]

diff --git a/jdbc2/src/org/postgis/PGbox.java b/jdbc2/src/org/postgis/PGbox.java
deleted file mode 100644 (file)
index 920e75a..0000000
+++ /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