public class GeometryBuilder extends Object
The factory interfaces provided by GeoAPI are hard to use in isolation (they are even hard to collect a matched set in order to work on the same problem). The main advantage a "builder" has over a factory is that it does not have to be thread safe and can hold state in order to make your job easier.
Constructor and Description |
---|
GeometryBuilder(CoordinateReferenceSystem crs) |
GeometryBuilder(Hints hints) |
GeometryBuilder(String code) |
public GeometryBuilder(CoordinateReferenceSystem crs)
public GeometryBuilder(String code) throws NoSuchAuthorityCodeException, FactoryException
public GeometryBuilder(Hints hints)
public CoordinateReferenceSystem getCoordinateReferenceSystem()
public void setCoordinateReferenceSystem(CoordinateReferenceSystem crs)
crs
- the CoordinateReferenceSystem to setpublic Precision getPrecision()
public PositionFactory getPositionFactory()
public PrimitiveFactory getPrimitiveFactory()
public AggregateFactory getAggregateFactory()
public GeometryFactory getGeometryFactory()
public ComplexFactory getComplexFactory()
public DirectPosition createDirectPosition(double[] ordinates)
public PointArray createPointArray()
public PointArray createPointArray(double[] array)
public PointArray createPointArray(double[] array, int start, int end)
public PointArray createPositionList(float[] array, int start, int end)
public Curve createCurve(List<CurveSegment> segments) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Curve createCurve(PointArray points, boolean closed) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Point createPoint(double ord1, double ord2)
public Point createPoint(double ord1, double ord2, double ord3)
public Point createPoint(double[] ordinates) throws MismatchedDimensionException
MismatchedDimensionException
public Point createPoint(Position position) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Primitive createPrimitive(Envelope envelope) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Ring createRing(List<OrientableCurve> orientableCurves) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Solid createSolid(SolidBoundary boundary) throws MismatchedReferenceSystemException, MismatchedDimensionException
public SurfaceBoundary createSurfaceBoundary(PointArray points) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Surface createSurface(List<SurfacePatch> surfaces) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Surface createSurface(SurfaceBoundary boundary) throws MismatchedReferenceSystemException, MismatchedDimensionException
public SurfaceBoundary createSurfaceBoundary(Ring exterior, List<Ring> interiors) throws MismatchedReferenceSystemException, MismatchedDimensionException
public SurfaceBoundary createSurfaceBoundary(Ring exterior) throws MismatchedReferenceSystemException, MismatchedDimensionException
public SurfaceBoundary createSurfaceBoundary(OrientableCurve curve) throws MismatchedReferenceSystemException, MismatchedDimensionException
public DirectPosition createDirectPosition()
public Envelope createEnvelope(DirectPosition lowerCorner, DirectPosition upperCorner) throws MismatchedReferenceSystemException, MismatchedDimensionException
public LineSegment createLineSegment(Position startPoint, Position endPoint) throws MismatchedReferenceSystemException, MismatchedDimensionException
public LineString createLineString(List<Position> points) throws MismatchedReferenceSystemException, MismatchedDimensionException
public LineString createLineString(PointArray points) throws MismatchedReferenceSystemException, MismatchedDimensionException
public LineSegment createLineSegment(DirectPosition from, DirectPosition to)
public MultiPrimitive createMultiPrimitive()
public Polygon createPolygon(SurfaceBoundary boundary) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Polygon createPolygon(SurfaceBoundary boundary, Surface spanSurface) throws MismatchedReferenceSystemException, MismatchedDimensionException
public PolyhedralSurface createPolyhedralSurface(List<Polygon> tiles) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Tin createTin(Set<Position> post, Set<LineString> stopLines, Set<LineString> breakLines, double maxLength) throws MismatchedReferenceSystemException, MismatchedDimensionException
public CompositeCurve createCompositeCurve(List<OrientableCurve> generator)
public CompositePoint createCompositePoint(Point generator)
public CompositeSurface createCompositeSurface(List<OrientableSurface> generator)
public MultiCurve createMultiCurve(Set<OrientableCurve> curves)
public MultiPoint createMultiPoint(Set<Point> points)
public MultiPrimitive createMultiPrimitive(Set<Primitive> primitives)
public MultiSurface createMultiSurface(Set<OrientableSurface> surfaces)
Copyright © 1996–2023 Geotools. All rights reserved.