![JAR search and dependency download from the Maven repository](/logo.png)
org.openlr.binary.writer.GeoCoordinateLocationReferenceWriter Maven / Gradle / Ivy
The newest version!
package org.openlr.binary.writer;
import org.openlr.binary.format.Status;
import org.openlr.locationreference.GeoCoordinateLocationReference;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
class GeoCoordinateLocationReferenceWriter {
private final StatusWriter statusWriter;
private final CoordinateWriter coordinateWriter;
GeoCoordinateLocationReferenceWriter(StatusWriter statusWriter, CoordinateWriter coordinateWriter) {
this.statusWriter = statusWriter;
this.coordinateWriter = coordinateWriter;
}
void write(GeoCoordinateLocationReference geoCoordinateLocationReference, ByteArrayOutputStream outputStream) throws IOException {
Status status = new Status(3, false, 0, true);
statusWriter.write(status, outputStream);
coordinateWriter.writeAbsoluteCoordinate(geoCoordinateLocationReference.getCoordinate(), outputStream);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy