@Test public void testWKT() { final SimpleDirectPosition pos = new SimpleDirectPosition(null, 4, 8, -2); assertEquals("POINT(4.0 8.0 -2.0)", pos.toString()); validate(pos); }
@Override public String toString() { final StringBuilder buffer = new StringBuilder("POINT"); char separator = '('; for (final double ordinate : ordinates) { buffer.append(separator).append(ordinate); separator = ' '; } return buffer.append(')').toString(); }
SimpleDirectPosition implements DirectPosition, Serializable { @Override public String toString() { final StringBuilder buffer = new StringBuilder("POINT"); char separator = '('; for (final double ordinate : ordinates) { buffer.append(separator).append(ordinate); separator = ' '; } return buffer.append(')').toString(); } }
SimpleDirectPosition implements DirectPosition, Serializable { @Override public String toString() { final StringBuilder buffer = new StringBuilder("POINT"); char separator = '('; for (final double ordinate : ordinates) { buffer.append(separator).append(ordinate); separator = ' '; } return buffer.append(')').toString(); } SimpleDirectPosition(final int dimension);  SimpleDirectPosition(final CoordinateReferenceSystem crs);  SimpleDirectPosition(final CoordinateReferenceSystem crs, final double... ordinates);  SimpleDirectPosition(final DirectPosition position); }
SimpleDirectPosition implements DirectPosition, Serializable { @Override public String toString() { final StringBuilder buffer = new StringBuilder("POINT"); char separator = '('; for (final double ordinate : ordinates) { buffer.append(separator).append(ordinate); separator = ' '; } return buffer.append(')').toString(); } SimpleDirectPosition(final int dimension);  SimpleDirectPosition(final CoordinateReferenceSystem crs);  SimpleDirectPosition(final CoordinateReferenceSystem crs, final double... ordinates);  SimpleDirectPosition(final DirectPosition position); @Override CoordinateReferenceSystem getCoordinateReferenceSystem(); @Override int getDimension(); @Override double[] getCoordinate(); @Override double getOrdinate(final int dimension); @Override void setOrdinate(final int dimension, final double value); @Override DirectPosition getDirectPosition(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
SimpleDirectPosition implements DirectPosition, Serializable { @Override public String toString() { final StringBuilder buffer = new StringBuilder("POINT"); char separator = '('; for (final double ordinate : ordinates) { buffer.append(separator).append(ordinate); separator = ' '; } return buffer.append(')').toString(); } SimpleDirectPosition(final int dimension);  SimpleDirectPosition(final CoordinateReferenceSystem crs);  SimpleDirectPosition(final CoordinateReferenceSystem crs, final double... ordinates);  SimpleDirectPosition(final DirectPosition position); @Override CoordinateReferenceSystem getCoordinateReferenceSystem(); @Override int getDimension(); @Override double[] getCoordinate(); @Override double getOrdinate(final int dimension); @Override void setOrdinate(final int dimension, final double value); @Override DirectPosition getDirectPosition(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); final double[] ordinates; }