src/main/java/mil/nga/sf/wkb/GeometryWriter.java
public static void writePolygon(ByteWriter writer, Polygon polygon)
			throws IOException {

		writer.writeInt(polygon.numRings());

		for (LineString ring : polygon.getRings()) {
			writeLineString(writer, ring);
		}
	}
public static void writePolygon(ByteWriter writer, Polygon polygon)
			throws IOException {

		writer.writeInt(polygon.numRings());

		for (LineString ring : polygon.getRings()) {
			writeLineString(writer, ring);
		}
	}
public static void writePolygon ( ByteWriter writer , Polygon polygon ) throws IOException { writer . writeInt ( polygon . numRings ( ) ) ; for ( LineString ring : polygon . getRings ( ) ) { writeLineString ( writer , ring ) ; } }
Write a Polygon

@param writer
@param polygon
@throws IOException
Write a Polygon