Revision 11161 trunk/libraries/libGPE-GML/src/org/gvsig/gpe/gml/writer/geometries/OuterBoundaryIsWriter.java

View differences:

OuterBoundaryIsWriter.java
49 49
 *
50 50
 * $Id$
51 51
 * $Log$
52
 * Revision 1.1  2007-04-12 10:23:41  jorpiell
52
 * Revision 1.2  2007-04-12 10:35:04  jorpiell
53
 * Add the innerboundaryIs
54
 *
55
 * Revision 1.1  2007/04/12 10:23:41  jorpiell
53 56
 * Add some writers and the GPEXml parser
54 57
 *
55 58
 *
......
60 63
public class OuterBoundaryIsWriter {
61 64
	
62 65
	public static void start(Writer writer,double[] x, double[] y,
63
			double[] z, String srs, String id) throws IOException{
64
		GeometriesWriter.startGeometry(writer, GMLTags.GML_POLYGON, id, srs);
65
		
66
		CoordinatesWriter.write(writer, x, y, z);			
66
			double[] z) throws IOException{
67
		writer.write("<" + GMLTags.GML_OUTERBOUNDARYIS + ">");		
68
		LinearRingWriter.start(writer, x, y, z, null, null);
67 69
	}
68 70
	
69 71
	public static void end(Writer writer) throws IOException{
70
		GeometriesWriter.endGeometry(writer, GMLTags.GML_POLYGON);		
72
		LinearRingWriter.end(writer);
73
		writer.write("</" + GMLTags.GML_OUTERBOUNDARYIS + ">");		
71 74
	}
72 75
}

Also available in: Unified diff