/** * Write the provided list of coordinates out. * * <p>There are a range of constants that control exactly what is written: * * <ul> * <li>useDummyZ: if true dummyZ will be added to each coordiante * <li>namespaceAware: is true the prefix and namespaceUri will be used * <li> * </ul> * * @param c * @param output * @throws SAXException * @deprecated use #writeCoordinates(CoordinateSequence, ContentHandler) instead */ public void writeCoordinates(Coordinate[] c, ContentHandler output) throws SAXException { writeCoordinates(new CoordinateArraySequence(c), output); }
coordSeq = ((Point) geometry).getCoordinateSequence(); try { coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException e) { throw new RuntimeException(e); coordSeq = ((LineString) geometry).getCoordinateSequence(); try { coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException s) { throw new RuntimeException(s);
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); } }
coords[3] = bounds.getMaxY(); CoordinateSequence coordSeq = new PackedCoordinateSequence.Double(coords, 2, 0); coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException se) { throw new RuntimeException(se);
/** * Write the provided list of coordinates out. * <p> * There are a range of constants that control exactly what * is written: * <ul> * <li>useDummyZ: if true dummyZ will be added to each coordiante * <li>namespaceAware: is true the prefix and namespaceUri will be used * <li> * </ul> * * @param c * @param output * @throws SAXException * @deprecated use #writeCoordinates(CoordinateSequence, ContentHandler) instead */ public void writeCoordinates(Coordinate[] c, ContentHandler output) throws SAXException { writeCoordinates(new CoordinateArraySequence(c), output); }
/** * Write the provided list of coordinates out. * <p> * There are a range of constants that control exactly what * is written: * <ul> * <li>useDummyZ: if true dummyZ will be added to each coordiante * <li>namespaceAware: is true the prefix and namespaceUri will be used * <li> * </ul> * * @param c * @param output * @throws SAXException * @deprecated use #writeCoordinates(CoordinateSequence, ContentHandler) instead */ public void writeCoordinates(Coordinate[] c, ContentHandler output) throws SAXException { writeCoordinates(new CoordinateArraySequence(c), output); }
coordSeq = ((Point) geometry).getCoordinateSequence(); try { coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException e) { throw new RuntimeException(e); coordSeq = ((LineString) geometry).getCoordinateSequence(); try { coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException s) { throw new RuntimeException(s);
coordSeq = ((Point) geometry).getCoordinateSequence(); try { coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException e) { throw new RuntimeException(e); coordSeq = ((LineString) geometry).getCoordinateSequence(); try { coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException s) { throw new RuntimeException(s);
try { coordSeq = geometry.getExteriorRing().getCoordinateSequence(); coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException s) { throw new RuntimeException(s); coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException s) { throw new RuntimeException(s);
try { coordSeq = geometry.getExteriorRing().getCoordinateSequence(); coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException s) { throw new RuntimeException(s); coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException s) { throw new RuntimeException(s);
coords[3] = bounds.getMaxY(); CoordinateSequence coordSeq = new PackedCoordinateSequence.Double(coords, 2); coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException se) { throw new RuntimeException(se);
coords[3] = bounds.getMaxY(); CoordinateSequence coordSeq = new PackedCoordinateSequence.Double(coords, 2); coordWriter.writeCoordinates(coordSeq, contentHandler); } catch (SAXException se) { throw new RuntimeException(se);