package uk.ac.leeds.ccg.shapefile; import java.io.*; import cmp.LEDataStream.*; /** * Wrapper for a Shapefile polygon. */ public class ShapePolygon extends ShapeArc implements Serializable { public ShapePolygon( LEDataInputStream file ) throws IOException, InvalidShapefileException { file.setLittleEndianMode(true); int shapeType = file.readInt(); if ( shapeType != Shapefile.POLYGON ) { throw new InvalidShapefileException ("Error: Attempt to load non polygon shape as polygon."); } for ( int i = 0; i<4; i++ ) { box[i] = file.readDouble(); } numParts = file.readInt(); numPoints = file.readInt(); parts = new int[numParts]; for(int i = 0;i to reduce * memory usage. * * * */