org.opentripplanner.common.geometry.Serializable2DPackedCoordinateSequenceFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.common.geometry;
import java.io.Serializable;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.CoordinateSequence;
import org.locationtech.jts.geom.CoordinateSequenceFactory;
public class Serializable2DPackedCoordinateSequenceFactory implements Serializable, CoordinateSequenceFactory {
private static final long serialVersionUID = 1L;
@Override
public CoordinateSequence create(Coordinate[] coordinates) {
return new PackedCoordinateSequence.Double(coordinates, 2);
//return new IntPackedCoordinateSequence(coordinates);
}
@Override
public CoordinateSequence create(CoordinateSequence coordSeq) {
throw new UnsupportedOperationException();
}
@Override
public CoordinateSequence create(int size, int dimension) {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy