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()
@Deprecated public void setCoordianteReferenceSystem(CoordinateReferenceSystem crs)
crs
- the CoordinateReferenceSystem to setpublic 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 segments) throws MismatchedReferenceSystemException, MismatchedDimensionException
@Deprecated public Curve createCurve(PointArray points) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Curve createCurve(PointArray points, boolean closed) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Point createPoint(double ord1, double ord2)
ord1
- ord2
- public Point createPoint(double ord1, double ord2, double ord3)
ord1
- ord2
- ord3
- public Point createPoint(double[] ordinates) throws MismatchedDimensionException
ordinates
- 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 surfaces) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Surface createSurface(SurfaceBoundary boundary) throws MismatchedReferenceSystemException, MismatchedDimensionException
public SurfaceBoundary createSurfaceBoundary(Ring exterior, List 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 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 tiles) throws MismatchedReferenceSystemException, MismatchedDimensionException
public Tin createTin(Set post, Set stopLines, Set breakLines, double maxLength) throws MismatchedReferenceSystemException, MismatchedDimensionException
public CompositeCurve createCompositeCurve(List generator)
public CompositePoint createCompositePoint(Point generator)
public CompositeSurface createCompositeSurface(List generator)
public MultiCurve createMultiCurve(Set curves)
public MultiPoint createMultiPoint(Set points)
public MultiPrimitive createMultiPrimitive(Set primitives)
public MultiSurface createMultiSurface(Set surfaces)
Copyright © 1996–2019 Geotools. All rights reserved.