/** Method to be subclasses in order to allow for gml3 encoding for null enevelope. */ protected void encodeNullBounds() { start("null"); String text = "unknown"; try { contentHandler.characters(text.toCharArray(), 0, text.length()); } catch (Exception e) // this shouldnt happen!! { LOGGER.log(Level.WARNING, "got exception while writing null boundedby", e); } end("null"); }
/** * Method to be subclasses in order to allow for gml3 encoding for null enevelope. */ protected void encodeNullBounds() { start("null"); String text = "unknown"; try{ contentHandler.characters(text.toCharArray(), 0, text.length()); } catch(Exception e) //this shouldnt happen!! { System.out.println("got exception while writing null boundedby:"+e.getLocalizedMessage()); e.printStackTrace(); } end("null"); }
/** * Method to be subclasses in order to allow for gml3 encoding for null enevelope. */ protected void encodeNullBounds() { start("null"); String text = "unknown"; try{ contentHandler.characters(text.toCharArray(), 0, text.length()); } catch(Exception e) //this shouldnt happen!! { System.out.println("got exception while writing null boundedby:"+e.getLocalizedMessage()); e.printStackTrace(); } end("null"); }
private void writeMulti(GeometryCollection geometry, String member) { for (int i = 0, n = geometry.getNumGeometries(); i < n; i++) { start(member); encode(geometry.getGeometryN(i)); end(member); } } }
private void writeMulti(GeometryCollection geometry, String member) { for (int i = 0, n = geometry.getNumGeometries(); i < n; i++) { start(member); encode(geometry.getGeometryN(i)); end(member); } } }
private void writePolygon(Polygon geometry) { String outBound = "outerBoundaryIs"; String lineRing = "LinearRing"; String inBound = "innerBoundaryIs"; start(outBound); start(lineRing); CoordinateSequence coordSeq; try { coordSeq = geometry.getExteriorRing().getCoordinateSequence(); coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException s) { throw new RuntimeException(s); } end(lineRing); end(outBound); for (int i = 0, ii = geometry.getNumInteriorRing(); i < ii; i++) { start(inBound); start(lineRing); try { coordSeq = geometry.getInteriorRingN(i).getCoordinateSequence(); coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException s) { throw new RuntimeException(s); } end(lineRing); end(inBound); } }
private void writeMulti(GeometryCollection geometry, String member) { for (int i = 0, n = geometry.getNumGeometries(); i < n; i++) { start(member); encode(geometry.getGeometryN(i)); end(member); } } }