Revision 37960 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/parser/v21/geometries/PointTypeBinding.java
PointTypeBinding.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.parser.v21.coordinates.CoordinatesTypeIterator; |
9 | 9 |
import org.gvsig.gpe.kml.utils.Kml2_1_Tags; |
10 | 10 |
import org.gvsig.gpe.xml.stream.IXmlStreamReader; |
... | ... | |
121 | 121 |
* @throws XmlStreamException |
122 | 122 |
* @throws IOException |
123 | 123 |
*/ |
124 |
public Object parse(IXmlStreamReader parser,GPEDeafultKmlParser handler) throws XmlStreamException, IOException {
|
|
124 |
public Object parse(IXmlStreamReader parser,GPEDefaultKmlParser handler) throws XmlStreamException, IOException {
|
|
125 | 125 |
boolean endFeature = false; |
126 | 126 |
int currentTag; |
127 | 127 |
Object point = null; |
... | ... | |
135 | 135 |
while (!endFeature){ |
136 | 136 |
switch(currentTag){ |
137 | 137 |
case IXmlStreamReader.START_ELEMENT: |
138 |
if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.COORDINATES)){ |
|
138 |
if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.COORDINATES)){
|
|
139 | 139 |
CoordinatesTypeIterator coordinatesIteartor = handler.getProfile().getCoordinatesTypeBinding(); |
140 | 140 |
coordinatesIteartor.initialize(parser, handler, Kml2_1_Tags.POINT); |
141 | 141 |
point = handler.getContentHandler().startPoint(id, |
... | ... | |
145 | 145 |
} |
146 | 146 |
break; |
147 | 147 |
case IXmlStreamReader.END_ELEMENT: |
148 |
if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.POINT)){ |
|
148 |
if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.POINT)){
|
|
149 | 149 |
endFeature = true; |
150 | 150 |
handler.getContentHandler().endPoint(point); |
151 | 151 |
} |
Also available in: Unified diff