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