Revision 21966 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/parser/v21/coordinates/LatLonBoxIterator.java
LatLonBoxIterator.java | ||
---|---|---|
5 | 5 |
import javax.xml.namespace.QName; |
6 | 6 |
|
7 | 7 |
import org.gvsig.gpe.kml.parser.GPEDeafultKmlParser; |
8 |
import org.gvsig.gpe.kml.utils.KmlTags; |
|
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; |
11 | 11 |
|
... | ... | |
114 | 114 |
while (!endFeature){ |
115 | 115 |
switch(currentTag){ |
116 | 116 |
case IXmlStreamReader.START_ELEMENT: |
117 |
if (tag.getLocalPart().compareTo(KmlTags.NORTH) == 0){ |
|
117 |
if (tag.getLocalPart().compareTo(Kml2_1_Tags.NORTH) == 0){
|
|
118 | 118 |
parser.next(); |
119 | 119 |
max[1] = handler.getProfile().getDoubleBinding().parse(parser.getText()); |
120 |
}else if (tag.getLocalPart().compareTo(KmlTags.SOUTH) == 0){ |
|
120 |
}else if (tag.getLocalPart().compareTo(Kml2_1_Tags.SOUTH) == 0){
|
|
121 | 121 |
parser.next(); |
122 | 122 |
min[1] = handler.getProfile().getDoubleBinding().parse(parser.getText()); |
123 |
}else if (tag.getLocalPart().compareTo(KmlTags.EAST) == 0){ |
|
123 |
}else if (tag.getLocalPart().compareTo(Kml2_1_Tags.EAST) == 0){
|
|
124 | 124 |
parser.next(); |
125 | 125 |
max[0] = handler.getProfile().getDoubleBinding().parse(parser.getText()); |
126 |
}else if (tag.getLocalPart().compareTo(KmlTags.WEST) == 0){ |
|
126 |
}else if (tag.getLocalPart().compareTo(Kml2_1_Tags.WEST) == 0){
|
|
127 | 127 |
parser.next(); |
128 | 128 |
min[0] = handler.getProfile().getDoubleBinding().parse(parser.getText()); |
129 |
}else if (tag.getLocalPart().compareTo(KmlTags.ROTATION) == 0){ |
|
129 |
}else if (tag.getLocalPart().compareTo(Kml2_1_Tags.ROTATION) == 0){
|
|
130 | 130 |
parser.next(); |
131 | 131 |
rotation = handler.getProfile().getDoubleBinding().parse(parser.getText()); |
132 | 132 |
} |
133 | 133 |
break; |
134 | 134 |
case IXmlStreamReader.END_ELEMENT: |
135 |
if (tag.getLocalPart().compareTo(KmlTags.LATLONBOX) == 0){ |
|
135 |
if (tag.getLocalPart().compareTo(Kml2_1_Tags.LATLONBOX) == 0){
|
|
136 | 136 |
endFeature = true; |
137 |
bbox = handler.getContentHandler().startBbox(id, this, KmlTags.DEFAULT_SRS); |
|
137 |
bbox = handler.getContentHandler().startBbox(id, this, Kml2_1_Tags.DEFAULT_SRS);
|
|
138 | 138 |
handler.getContentHandler().endBbox(bbox); |
139 | 139 |
} |
140 | 140 |
break; |
Also available in: Unified diff