org.geolatte.geom.codec.support.GeometryBuilder 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.support;
import org.geolatte.geom.Geometry;
import org.geolatte.geom.GeometryType;
import org.geolatte.geom.Position;
import org.geolatte.geom.crs.CoordinateReferenceSystem;
abstract public class GeometryBuilder {
public static GeometryBuilder create(GeometryType type) {
if (type == GeometryType.GEOMETRYCOLLECTION) {
return new CollectionGeometryBuilder();
} else {
return new SimpleGeometryBuilder(type);
}
}
abstract public Geometry
createGeometry(CoordinateReferenceSystem
crs);
abstract public int getCoordinateDimension();
abstract public void setPositions(Holder positions);
abstract public boolean isEmpty();
}