@Test public void testReadBoundary() throws IOException { String inputLocation = getShapeFilePath("dbf"); ShpFiles shpFile = new ShpFiles(inputLocation + "/map.shp"); GeometryFactory geometryFactory = new GeometryFactory(); org.geotools.data.shapefile.shp.ShapefileReader gtlReader = new org.geotools.data.shapefile.shp.ShapefileReader(shpFile, false, true, geometryFactory); String gtlbounds = gtlReader.getHeader().minX() + ":" + gtlReader.getHeader().minY() + ":" + gtlReader.getHeader().maxX() + ":" + gtlReader.getHeader().maxY(); BoundBox bounds = ShapefileReader.readBoundBox(sc, inputLocation); String myBounds = bounds.getXMin() + ":" + bounds.getYMin() + ":" + bounds.getXMax() + ":" + bounds.getYMax(); assertEquals(gtlbounds, myBounds); gtlReader.close(); }
public void close() throws IOException { shpInputStream.close(); }
ShapeFileReader extends RecordReader<ShapeKey, ShpRecord> { public void close() throws IOException { shpInputStream.close(); } }
ShapeFileReader extends RecordReader<ShapeKey, ShpRecord> { public void close() throws IOException { shpInputStream.close(); } ShapeFileReader();  ShapeFileReader(int[] indexes); }
ShapeFileReader extends RecordReader<ShapeKey, ShpRecord> { public void close() throws IOException { shpInputStream.close(); } ShapeFileReader();  ShapeFileReader(int[] indexes); void initialize(InputSplit split, TaskAttemptContext context); boolean nextKeyValue(); ShapeKey getCurrentKey(); ShpRecord getCurrentValue(); float getProgress(); void close(); }
ShapeFileReader extends RecordReader<ShapeKey, ShpRecord> { public void close() throws IOException { shpInputStream.close(); } ShapeFileReader();  ShapeFileReader(int[] indexes); void initialize(InputSplit split, TaskAttemptContext context); boolean nextKeyValue(); ShapeKey getCurrentKey(); ShpRecord getCurrentValue(); float getProgress(); void close();  }