1
1
/*
2
2
* PGgeometry.java
3
- *
3
+ *
4
4
* PostGIS extension for PostgreSQL JDBC driver - PGobject Geometry Wrapper
5
- *
5
+ *
6
6
* (C) 2004 Paul Ramsey, [email protected]
7
- *
7
+ *
8
8
* (C) 2005 Markus Schaber, [email protected]
9
- *
9
+ *
10
10
* (C) 2015 Phillip Ross, [email protected]
11
11
*
12
12
* This library is free software; you can redistribute it and/or
22
22
* You should have received a copy of the GNU Lesser General Public
23
23
* License along with this library; if not, write to the Free Software
24
24
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25
- *
25
+ *
26
26
*/
27
27
28
28
package org .postgis ;
@@ -37,7 +37,6 @@ public class PGgeometry extends PGobject {
37
37
private static final long serialVersionUID = 0x100 ;
38
38
39
39
Geometry geom ;
40
- BinaryParser bp = new BinaryParser ();
41
40
42
41
public PGgeometry () {
43
42
this .setType ("geometry" );
@@ -54,7 +53,7 @@ public PGgeometry(String value) throws SQLException {
54
53
}
55
54
56
55
public void setValue (String value ) throws SQLException {
57
- geom = geomFromString (value , bp );
56
+ geom = geomFromString (value , new BinaryParser () );
58
57
}
59
58
60
59
public static Geometry geomFromString (String value ) throws SQLException {
@@ -131,7 +130,7 @@ public Geometry getGeometry() {
131
130
public void setGeometry (Geometry newgeom ) {
132
131
this .geom = newgeom ;
133
132
}
134
-
133
+
135
134
public int getGeoType () {
136
135
return geom .type ;
137
136
}
@@ -153,7 +152,7 @@ public Object clone() {
153
152
154
153
/**
155
154
* Splits a String at the first occurrence of border character.
156
- *
155
+ *
157
156
* Poor man's String.split() replacement, as String.split() was invented at
158
157
* jdk1.4, and the Debian PostGIS Maintainer had problems building the woody
159
158
* backport of his package using DFSG-free compilers. In all the cases we
0 commit comments