@Test public void testBBox() { Metadata meta = reader.parse(); assertNotNull("meta", meta); IdInfo idInfo = meta.getIdinfo(); assertNotNull("idInfo", idInfo); Envelope bounding = idInfo.getBounding(); assertNotNull(bounding); assertEquals(-180.0, bounding.getMinX(), 0.00001); assertEquals(180.0, bounding.getMaxX(), 0.00001); assertEquals(-90.0, bounding.getMinY(), 0.00001); assertEquals(90.0, bounding.getMaxY(), 0.00001); }
public Metadata parse() { try (InputStream inputStream = shapefileFiles.getInputStream(ShpFileType.SHP_XML, this)) { return parseMetadata(reader(inputStream)); } catch (IOException | XMLStreamException e) { throw new RuntimeException(e); } }
ShpXmlFileReader implements FileReader { public Metadata parse() { try (InputStream inputStream = shapefileFiles.getInputStream(ShpFileType.SHP_XML, this)) { return parseMetadata(reader(inputStream)); } catch (IOException | XMLStreamException e) { throw new RuntimeException(e); } } }
ShpXmlFileReader implements FileReader { public Metadata parse() { try (InputStream inputStream = shapefileFiles.getInputStream(ShpFileType.SHP_XML, this)) { return parseMetadata(reader(inputStream)); } catch (IOException | XMLStreamException e) { throw new RuntimeException(e); } } ShpXmlFileReader(ShpFiles shapefileFiles); }
ShpXmlFileReader implements FileReader { public Metadata parse() { try (InputStream inputStream = shapefileFiles.getInputStream(ShpFileType.SHP_XML, this)) { return parseMetadata(reader(inputStream)); } catch (IOException | XMLStreamException e) { throw new RuntimeException(e); } } ShpXmlFileReader(ShpFiles shapefileFiles); Metadata parse(); String id(); }
ShpXmlFileReader implements FileReader { public Metadata parse() { try (InputStream inputStream = shapefileFiles.getInputStream(ShpFileType.SHP_XML, this)) { return parseMetadata(reader(inputStream)); } catch (IOException | XMLStreamException e) { throw new RuntimeException(e); } } ShpXmlFileReader(ShpFiles shapefileFiles); Metadata parse(); String id();  }