/** * Returns the spline curve form that matches the given string, or returns a new one if none * match it. * * @param code The name of the code to fetch or to create. * @return A code matching the given name. */ public static SplineCurveForm valueOf(String code) { return valueOf(SplineCurveForm.class, code); } }
/** * Returns the B-spline surface form that matches the given string, or returns a new one if none * match it. * * @param code The name of the code to fetch or to create. * @return A code matching the given name. */ public static BSplineSurfaceForm valueOf(String code) { return valueOf(BSplineSurfaceForm.class, code); } }
/** * Returns the KnotType that matches the given string, or returns a new one if none match it. * * @param code The name of the code to fetch or to create. * @return A code matching the given name. */ public static KnotType valueOf(String code) { return valueOf(KnotType.class, code); } }
public DirectPosition getEndPoint() { return points.getDirectPosition(points.size() - 1, null); }
public LineString createLineString(List points) throws MismatchedReferenceSystemException, MismatchedDimensionException { return getGeometryFactory().createLineString(points); }
public Point createPoint(Position position) throws MismatchedReferenceSystemException, MismatchedDimensionException { return new MockPoint(position.getDirectPosition()); }
public DirectPosition getStartPoint() { return points.getDirectPosition(0, null); }
public MultiPrimitive createMultiPrimitive() { return getGeometryFactory().createMultiPrimitive(); }
public Polygon createPolygon(SurfaceBoundary boundary) throws MismatchedReferenceSystemException, MismatchedDimensionException { return getGeometryFactory().createPolygon(boundary); }
/** * Parse a single coordinate from a <code>StreamTokenizer</code> * * @param tokenizer * @return a single DirectPosition * @throws IOException * @throws ParseException */ private DirectPosition getPreciseCoordinate(StreamTokenizer tokenizer) throws IOException, ParseException { DirectPosition pos = geometryFactory.createDirectPosition(); pos.setOrdinate(0, getNextNumber(tokenizer)); pos.setOrdinate(1, getNextNumber(tokenizer)); if (isNumberNext(tokenizer)) { pos.setOrdinate(1, getNextNumber(tokenizer)); } return pos; }
public Envelope createEnvelope(DirectPosition lowerCorner, DirectPosition upperCorner) throws MismatchedReferenceSystemException, MismatchedDimensionException { return getGeometryFactory().createEnvelope(lowerCorner, upperCorner); }
public PolyhedralSurface createPolyhedralSurface(List tiles) throws MismatchedReferenceSystemException, MismatchedDimensionException { return getGeometryFactory().createPolyhedralSurface(tiles); }
/** Returns the list of enumerations of the same kind than this enum. */ public SplineCurveForm[] family() { return values(); }
/** Returns the list of enumerations of the same kind than this enum. */ public KnotType[] family() { return values(); }
/** Returns the list of enumerations of the same kind than this enum. */ public BSplineSurfaceForm[] family() { return values(); }
public LineSegment createLineSegment(Position startPoint, Position endPoint) throws MismatchedReferenceSystemException, MismatchedDimensionException { return getGeometryFactory().createLineSegment(startPoint, endPoint); }
public Tin createTin(Set post, Set stopLines, Set breakLines, double maxLength) throws MismatchedReferenceSystemException, MismatchedDimensionException { return getGeometryFactory().createTin(post, stopLines, breakLines, maxLength); }
public LineString createLineString(PointArray points) throws MismatchedReferenceSystemException, MismatchedDimensionException { return getGeometryFactory().createLineString(points); }
public Polygon createPolygon(SurfaceBoundary boundary, Surface spanSurface) throws MismatchedReferenceSystemException, MismatchedDimensionException { return getGeometryFactory().createPolygon(boundary, spanSurface); }
public LineSegment createLineSegment(DirectPosition from, DirectPosition to) { return getGeometryFactory().createLineSegment(from, to); }