Revision 11475 trunk/libraries/libGPE-GML/src/org/gvsig/gpe/gml/utils/GMLUtilsParser.java

View differences:

GMLUtilsParser.java
3 3
import java.awt.geom.Point2D;
4 4
import java.awt.geom.Rectangle2D;
5 5
import java.io.IOException;
6
import java.util.Hashtable;
6 7

  
7 8
import org.gvsig.exceptions.BaseException;
8 9
import org.gvsig.gpe.gml.GMLTags;
10
import org.gvsig.gpe.gml.GPEGmlParser;
9 11
import org.gvsig.gpe.gml.GMLFeaturesParser.Extent;
10 12
import org.gvsig.gpe.gml.exceptions.GMLFileReadException;
11 13
import org.gvsig.gpe.gml.exceptions.GMLNoGeometryException;
......
13 15
import org.gvsig.gpe.gml.factories.IGeometriesFactory;
14 16
import org.gvsig.gpe.gml.schemas.XMLSchemaParser;
15 17
import org.kxml2.io.KXmlParser;
18
import org.xmlpull.v1.XmlPullParser;
16 19
import org.xmlpull.v1.XmlPullParserException;
17 20

  
18 21
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
......
59 62
 *
60 63
 * $Id$
61 64
 * $Log$
62
 * Revision 1.1  2007-02-28 11:48:31  csanchez
65
 * Revision 1.2  2007-05-07 12:58:42  jorpiell
66
 * Add some methods to manage the multigeometries
67
 *
68
 * Revision 1.1  2007/02/28 11:48:31  csanchez
63 69
 * *** empty log message ***
64 70
 *
65 71
 * Revision 1.1  2007/02/20 10:53:20  jorpiell
......
83 89
public class GMLUtilsParser {
84 90

  
85 91
	/**
92
	 * It returns a HashTable with the XML attributes. It has been 
93
	 * created because the parser doesn't has a getAttribiute(AttributeName)
94
	 * method.
95

  
96
	 * @param parser
97
	 * @return
98
	 */
99
	public static Hashtable getAttributes(XmlPullParser parser){
100
		Hashtable hash = new Hashtable();
101
		for (int i=0 ; i<parser.getAttributeCount() ; i++){
102
			hash.put(parser.getAttributeName(i),
103
					parser.getAttributeValue(i));
104
		}
105
		return hash;
106
	}	
107

  
108
	
109
	/**
86 110
	 * Parses the boundedBy GML tag
87 111
	 * @throws IOException 
88 112
	 * @throws XmlPullParserException 

Also available in: Unified diff