Java 类com.vividsolutions.jts.geom.CoordinateSequences 实例源码

项目:Earth    文件:WKBReader.java   
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);
}
项目:Earth    文件:WKBReader.java   
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);
}
项目:hortonmachine    文件:SpatialiteWKBReader.java   
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);
}
项目:hortonmachine    文件:SpatialiteWKBReader.java   
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);
}
项目:jts    文件:PackedCoordinateSequence.java   
public String toString() {
    return CoordinateSequences.toString(this);
}