Revision 37960 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/parser/v21/coordinates/LatLonAltBoxIterator.java

View differences:

LatLonAltBoxIterator.java
4 4

  
5 5
import javax.xml.namespace.QName;
6 6

  
7
import org.gvsig.gpe.kml.parser.GPEDeafultKmlParser;
7
import org.gvsig.gpe.kml.parser.GPEDefaultKmlParser;
8 8
import org.gvsig.gpe.kml.utils.Kml2_1_Tags;
9 9
import org.gvsig.gpe.xml.stream.IXmlStreamReader;
10 10
import org.gvsig.gpe.xml.stream.XmlStreamException;
......
81 81
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
82 82
 * @see http://code.google.com/apis/kml/documentation/kml_tags_21.html#latlonaltbox
83 83
 */
84
public class LatLonAltBoxIterator extends KmlCoodinatesIterator{
84
public class LatLonAltBoxIterator extends KmlCoordinatesIterator{
85 85
	double[] min = null;
86 86
	double[] max = null;
87 87
	int iterations = 0;
......
98 98
	 * @throws IOException 
99 99
	 * @throws XmlStreamException 
100 100
	 */
101
	public Object parse(IXmlStreamReader parser,GPEDeafultKmlParser handler) throws XmlStreamException, IOException {
101
	public Object parse(IXmlStreamReader parser,GPEDefaultKmlParser handler) throws XmlStreamException, IOException {
102 102
		boolean endFeature = false;
103 103
		int currentTag;
104 104
		Object bbox = null;
......
116 116
		while (!endFeature){
117 117
			switch(currentTag){
118 118
			case IXmlStreamReader.START_ELEMENT:
119
				if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.NORTH)){
119
				if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.NORTH)){
120 120
					parser.next();
121 121
					max[1] = handler.getProfile().getDoubleBinding().parse(parser.getText());
122
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.SOUTH) ){
122
				}else if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.SOUTH) ){
123 123
					parser.next();
124 124
					min[1] = handler.getProfile().getDoubleBinding().parse(parser.getText());
125
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.EAST)){
125
				}else if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.EAST)){
126 126
					parser.next();
127 127
					max[0] = handler.getProfile().getDoubleBinding().parse(parser.getText());
128
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.WEST)){
128
				}else if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.WEST)){
129 129
					parser.next();
130 130
					min[0] = handler.getProfile().getDoubleBinding().parse(parser.getText());
131
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.MINALTITUDE)){
131
				}else if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.MINALTITUDE)){
132 132
					parser.next();
133 133
					min[2] = handler.getProfile().getDoubleBinding().parse(parser.getText());
134
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.MAXALTITUDE)){
134
				}else if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.MAXALTITUDE)){
135 135
					parser.next();
136 136
					max[2] = handler.getProfile().getDoubleBinding().parse(parser.getText());
137 137
				}
138 138
				break;
139 139
			case IXmlStreamReader.END_ELEMENT:
140
				if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.LATLONALTBOX)){						
140
				if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.LATLONALTBOX)){						
141 141
					endFeature = true;
142 142
					bbox = handler.getContentHandler().startBbox(id, this, Kml2_1_Tags.DEFAULT_SRS);
143 143
					handler.getContentHandler().endBbox(bbox);

Also available in: Unified diff