/** * Close the shell of the polygon */ public PolygonBuilder close() { shell.close(); return this; }
public PolygonBuilder(LineStringBuilder lineString, Orientation orientation, boolean coerce) { this.orientation = orientation; if (coerce) { lineString.close(); } validateLinearRing(lineString); this.shell = lineString; }
/** * Add a new hole to the polygon * @param hole linear ring defining the hole * @param coerce if set to true, it will try to close the hole by adding starting point as end point * @return this */ public PolygonBuilder hole(LineStringBuilder hole, boolean coerce) { if (coerce) { hole.close(); } validateLinearRing(hole); holes.add(hole); return this; }
/** * Close the shell of the polygon */ public PolygonBuilder close() { shell.close(); return this; }
/** * Close the shell of the polygon */ public PolygonBuilder close() { shell.close(); return this; }
/** * Close the shell of the polygon */ public PolygonBuilder close() { shell.close(); return this; }
public PolygonBuilder(LineStringBuilder lineString, Orientation orientation, boolean coerce) { this.orientation = orientation; if (coerce) { lineString.close(); } validateLinearRing(lineString); this.shell = lineString; }
public PolygonBuilder(LineStringBuilder lineString, Orientation orientation, boolean coerce) { this.orientation = orientation; if (coerce) { lineString.close(); } validateLinearRing(lineString); this.shell = lineString; }
public PolygonBuilder(LineStringBuilder lineString, Orientation orientation, boolean coerce) { this.orientation = orientation; if (coerce) { lineString.close(); } validateLinearRing(lineString); this.shell = lineString; }
/** * Add a new hole to the polygon * @param hole linear ring defining the hole * @param coerce if set to true, it will try to close the hole by adding starting point as end point * @return this */ public PolygonBuilder hole(LineStringBuilder hole, boolean coerce) { if (coerce) { hole.close(); } validateLinearRing(hole); holes.add(hole); return this; }
/** * Add a new hole to the polygon * @param hole linear ring defining the hole * @param coerce if set to true, it will try to close the hole by adding starting point as end point * @return this */ public PolygonBuilder hole(LineStringBuilder hole, boolean coerce) { if (coerce) { hole.close(); } validateLinearRing(hole); holes.add(hole); return this; }
/** * Add a new hole to the polygon * @param hole linear ring defining the hole * @param coerce if set to true, it will try to close the hole by adding starting point as end point * @return this */ public PolygonBuilder hole(LineStringBuilder hole, boolean coerce) { if (coerce) { hole.close(); } validateLinearRing(hole); holes.add(hole); return this; }