private CoordinateSequence readCoordinateSequenceLineString(int size) throws IOException { CoordinateSequence seq = this.readCoordinateSequence(size); if (this.isStrict) { return seq; } if (seq.size() == 0 || seq.size() >= 2) { return seq; } return CoordinateSequences.extend(this.csFactory, seq, 2); }
private CoordinateSequence readCoordinateSequenceRing(int size) throws IOException { CoordinateSequence seq = this.readCoordinateSequence(size); if (this.isStrict) { return seq; } if (CoordinateSequences.isRing(seq)) { return seq; } return CoordinateSequences.ensureValidRing(this.csFactory, seq); }
private CoordinateSequence readCoordinateSequenceLineString( int size ) throws IOException { CoordinateSequence seq = readCoordinateSequence(size); if (isStrict) return seq; if (seq.size() == 0 || seq.size() >= 2) return seq; return CoordinateSequences.extend(csFactory, seq, 2); }
private CoordinateSequence readCoordinateSequenceRing( int size ) throws IOException { CoordinateSequence seq = readCoordinateSequence(size); if (isStrict) return seq; if (CoordinateSequences.isRing(seq)) return seq; return CoordinateSequences.ensureValidRing(csFactory, seq); }
public String toString() { return CoordinateSequences.toString(this); }