public int hashCode() { return super.hashCode() ^ (int) this.length(); }
protected void mediumWKT(StringBuffer sb) { if ((subgeoms == null) || (subgeoms.length == 0)) { sb.append(" EMPTY"); } else { sb.append('('); innerWKT(sb); sb.append(')'); } }
protected ComposedGeom(int type, String value, boolean haveM) throws SQLException { super(type); value = initSRID(value); String typestring = getTypeString(); if (value.indexOf(typestring) == 0) { int pfxlen = typestring.length(); subgeoms = createSubGeomArray(subgeomcount); for (int p = 0; p < subgeomcount; p++) { subgeoms[p] = createSubGeomInstance(tokens.get(p), haveM);
public boolean checkConsistency() { if (super.checkConsistency()) { if (isEmpty()) { return true; } // cache to avoid getMember opcode int _dimension = this.dimension; boolean _haveMeasure = this.haveMeasure; int _srid = this.srid; for (int i = 0; i < subgeoms.length; i++) { Geometry sub = subgeoms[i]; if (!(sub.checkConsistency() && sub.dimension == _dimension && sub.haveMeasure == _haveMeasure && sub.srid == _srid)) { return false; } } return true; } else { return false; } }
protected ComposedGeom(int type, String value, boolean haveM) throws SQLException { super(type); value = initSRID(value); String typestring = getTypeString(); if (value.indexOf(typestring) == 0) { int pfxlen = typestring.length(); subgeoms = createSubGeomArray(subgeomcount); for (int p = 0; p < subgeomcount; p++) { subgeoms[p] = createSubGeomInstance(tokens.get(p), haveM);
public boolean checkConsistency() { if (super.checkConsistency()) { if (isEmpty()) { return true; } // cache to avoid getMember opcode int _dimension = this.dimension; boolean _haveMeasure = this.haveMeasure; int _srid = this.srid; for (int i = 0; i < subgeoms.length; i++) { Geometry sub = subgeoms[i]; if (!(sub.checkConsistency() && sub.dimension == _dimension && sub.haveMeasure == _haveMeasure && sub.srid == _srid)) { return false; } } return true; } else { return false; } }
protected void mediumWKT(StringBuffer sb) { if ((subgeoms == null) || (subgeoms.length == 0)) { sb.append(" EMPTY"); } else { sb.append('('); innerWKT(sb); sb.append(')'); } }
public int hashCode() { return super.hashCode() ^ (int) this.length(); }