org.geolatte.geom.codec.Sfa121WkbEncoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-geom Show documentation
Show all versions of geolatte-geom Show documentation
This geoLatte-geom library offers a geometry model that conforms to the OGC Simple Features for SQL
specification.
The newest version!
package org.geolatte.geom.codec;
import org.geolatte.geom.ByteBuffer;
import org.geolatte.geom.ByteOrder;
import org.geolatte.geom.Geometry;
import org.geolatte.geom.Position;
/**
* A WKB encoder for the format specified in Simple Feature Access, version 1.2.1
*/
public class Sfa121WkbEncoder implements WkbEncoder {
@Override
public ByteBuffer encode(Geometry
geometry, ByteOrder byteOrder) {
BaseWkbVisitor
visitor = Sfa121WkbDialect.INSTANCE.mkVisitor(geometry, byteOrder);
geometry.accept(visitor);
return visitor.result();
}
}