/** * Gets the start Z ordinate of the segment * * @return the Z ordinate value */ public double getStartZ() { Coordinate p = ls.getCoordinate(0); return p.z; }
/** * Gets the end Z ordinate of the segment * * @return the Z ordinate value */ public double getEndZ() { Coordinate p = ls.getCoordinate(1); return p.z; }
/** * Gets the start X ordinate of the segment * * @return the X ordinate value */ public double getStartX() { Coordinate p = ls.getCoordinate(0); return p.x; }
/** * Gets the start coordinate of the segment * * @return a Coordinate */ public Coordinate getStart() { return ls.getCoordinate(0); }
/** * Gets the end coordinate of the segment * * @return a Coordinate */ public Coordinate getEnd() { return ls.getCoordinate(1); }
/** * Gets the start Y ordinate of the segment * * @return the Y ordinate value */ public double getStartY() { Coordinate p = ls.getCoordinate(0); return p.y; }
/** * Gets the end Y ordinate of the segment * * @return the Y ordinate value */ public double getEndY() { Coordinate p = ls.getCoordinate(1); return p.y; }
/** * Gets the end X ordinate of the segment * * @return the X ordinate value */ public double getEndX() { Coordinate p = ls.getCoordinate(1); return p.x; }
public void visitItem(Object item) { LineSegment seg = (LineSegment) item; counter.countSegment(seg.getCoordinate(0), seg.getCoordinate(1)); } }
public Geometry getGeometry() { int level = recursionLevelForSize(numPts); LineSegment baseLine = getSquareBaseLine(); Coordinate[] pts = getBoundary(level, baseLine.getCoordinate(0), baseLine.getLength()); return geomFactory.createPolygon( geomFactory.createLinearRing(pts), null); }
public Geometry getGeometry() { int level = recursionLevelForSize(numPts); LineSegment baseLine = getSquareBaseLine(); Coordinate origin = baseLine.getCoordinate(0); LinearRing[] holes = getHoles(level, origin.x, origin.y, getDiameter()); LinearRing shell = (LinearRing) ((Polygon) geomFactory.toGeometry(getSquareExtent())).getExteriorRing(); return geomFactory.createPolygon( shell, holes); }
/** * Gets the start Y ordinate of the segment * * @return the Y ordinate value */ public double getStartY() { Coordinate p = ls.getCoordinate(0); return p.y; }
/** * Gets the end Y ordinate of the segment * * @return the Y ordinate value */ public double getEndY() { Coordinate p = ls.getCoordinate(1); return p.y; }
/** * Gets the end Z ordinate of the segment * * @return the Z ordinate value */ public double getEndZ() { Coordinate p = ls.getCoordinate(1); return p.z; }
/** * Gets the start coordinate of the segment * * @return a Coordinate */ public Coordinate getStart() { return ls.getCoordinate(0); }
/** * Gets the start Z ordinate of the segment * * @return the Z ordinate value */ public double getStartZ() { Coordinate p = ls.getCoordinate(0); return p.z; }
/** * Gets the start X ordinate of the segment * * @return the X ordinate value */ public double getStartX() { Coordinate p = ls.getCoordinate(0); return p.x; }
/** * Gets the end coordinate of the segment * * @return a Coordinate */ public Coordinate getEnd() { return ls.getCoordinate(1); }
public void visitItem(Object item) { LineSegment seg = (LineSegment) item; counter.countSegment(seg.getCoordinate(0), seg.getCoordinate(1)); } }
public Geometry getGeometry() { int level = recursionLevelForSize(numPts); LineSegment baseLine = getSquareBaseLine(); Coordinate origin = baseLine.getCoordinate(0); LinearRing[] holes = getHoles(level, origin.x, origin.y, getDiameter()); LinearRing shell = (LinearRing) ((Polygon) geomFactory.toGeometry(getSquareExtent())).getExteriorRing(); return geomFactory.createPolygon( shell, holes); }