+
+ try (BufferedReader in = new BufferedReader(
+ new InputStreamReader(geom.open(InputStream.class), StandardCharsets.UTF_8))) {
+ System.out.println(in.readLine());
+ } catch (IOException e) {
+ throw new UncheckedIOException("Cannot parse " + c, e);
+ }
+ updateBoundingBox(c);
+ }
+
+ public static boolean hasGeometry(Content c, QNamed name) {
+ return hasGeometry(c, name.qName());
+ }
+
+ public static boolean hasGeometry(Content c, QName name) {
+ QName jsonFileName = getJsonFileName(name);
+ return c.hasChild(jsonFileName);