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

View differences:

GeometriesWriter.java
50 50
 *
51 51
 * $Id$
52 52
 * $Log$
53
 * Revision 1.1  2007-04-12 10:23:41  jorpiell
53
 * Revision 1.2  2007-04-12 17:06:44  jorpiell
54
 * First GML writing tests
55
 *
56
 * Revision 1.1  2007/04/12 10:23:41  jorpiell
54 57
 * Add some writers and the GPEXml parser
55 58
 *
56 59
 *
......
61 64
public class GeometriesWriter {
62 65
	
63 66
	public static void startGeometry(Writer writer,String tagName,String id,String srs) throws IOException{
67
		writer.write("\n");
64 68
		writer.write("<" + GMLTags.GML_NAMESPACE + ":" + tagName);
65 69
		if (id != null){
66
			writer.write(" " + GMLTags.GML_GEOMETRIES_ID + "='" + id + "'");
70
			writer.write(" " + GMLTags.GML_ID + "='" + id + "'");
67 71
		}
68 72
		if (srs != null){
69 73
			writer.write(" " + GMLTags.GML_SRS_NAME + "='");
70 74
			writer.write(GMLProjectionFactory.getProjection(srs));
71 75
			writer.write("'");
72 76
		}
73
		writer.write("'>");		
77
		writer.write(">");		
74 78
	}
75 79
	
76 80
	public static void endGeometry(Writer writer,String tagName) throws IOException{
81
		writer.write("\n");
77 82
		writer.write("</" + GMLTags.GML_NAMESPACE + ":" + tagName + ">");
78 83
	}
79 84
	

Also available in: Unified diff