@Test public void testWKT() { final SimpleEnvelope envelope = new SimpleEnvelope( new SimpleDirectPosition(null, 4, 8, -2), new SimpleDirectPosition(null, 8, 9, 3)); assertEquals("BOX3D(4.0 8.0 -2.0, 8.0 9.0 3.0)", envelope.toString()); validate(envelope); }
@Override public String toString() { final int dimension = getDimension(); final StringBuilder buffer = new StringBuilder(64).append("BOX").append(dimension).append('D'); char separator = '('; for (int i=0; i<dimension; i++) { buffer.append(separator).append(getMinimum(i)); separator = ' '; } buffer.append(','); for (int i=0; i<dimension; i++) { buffer.append(' ').append(getMaximum(i)); } return buffer.append(')').toString(); }
SimpleEnvelope implements Envelope, Serializable { @Override public String toString() { final int dimension = getDimension(); final StringBuilder buffer = new StringBuilder(64).append("BOX").append(dimension).append('D'); char separator = '('; for (int i=0; i<dimension; i++) { buffer.append(separator).append(getMinimum(i)); separator = ' '; } buffer.append(','); for (int i=0; i<dimension; i++) { buffer.append(' ').append(getMaximum(i)); } return buffer.append(')').toString(); } }
SimpleEnvelope implements Envelope, Serializable { @Override public String toString() { final int dimension = getDimension(); final StringBuilder buffer = new StringBuilder(64).append("BOX").append(dimension).append('D'); char separator = '('; for (int i=0; i<dimension; i++) { buffer.append(separator).append(getMinimum(i)); separator = ' '; } buffer.append(','); for (int i=0; i<dimension; i++) { buffer.append(' ').append(getMaximum(i)); } return buffer.append(')').toString(); } SimpleEnvelope(final DirectPosition lowerCorner, final DirectPosition upperCorner);  SimpleEnvelope(final Envelope envelope); }
SimpleEnvelope implements Envelope, Serializable { @Override public String toString() { final int dimension = getDimension(); final StringBuilder buffer = new StringBuilder(64).append("BOX").append(dimension).append('D'); char separator = '('; for (int i=0; i<dimension; i++) { buffer.append(separator).append(getMinimum(i)); separator = ' '; } buffer.append(','); for (int i=0; i<dimension; i++) { buffer.append(' ').append(getMaximum(i)); } return buffer.append(')').toString(); } SimpleEnvelope(final DirectPosition lowerCorner, final DirectPosition upperCorner);  SimpleEnvelope(final Envelope envelope); @Override final int getDimension(); @Override CoordinateReferenceSystem getCoordinateReferenceSystem(); @Override DirectPosition getLowerCorner(); @Override DirectPosition getUpperCorner(); @Override double getMinimum(final int dimension); @Override double getMaximum(int dimension); @Override double getMedian(int dimension); @Override double getSpan(int dimension); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
SimpleEnvelope implements Envelope, Serializable { @Override public String toString() { final int dimension = getDimension(); final StringBuilder buffer = new StringBuilder(64).append("BOX").append(dimension).append('D'); char separator = '('; for (int i=0; i<dimension; i++) { buffer.append(separator).append(getMinimum(i)); separator = ' '; } buffer.append(','); for (int i=0; i<dimension; i++) { buffer.append(' ').append(getMaximum(i)); } return buffer.append(')').toString(); } SimpleEnvelope(final DirectPosition lowerCorner, final DirectPosition upperCorner);  SimpleEnvelope(final Envelope envelope); @Override final int getDimension(); @Override CoordinateReferenceSystem getCoordinateReferenceSystem(); @Override DirectPosition getLowerCorner(); @Override DirectPosition getUpperCorner(); @Override double getMinimum(final int dimension); @Override double getMaximum(int dimension); @Override double getMedian(int dimension); @Override double getSpan(int dimension); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }