Revision 12215
branches/v10/libraries/libRemoteServices/src/org/gvsig/remoteClient/gml/utils/GMLUtilsParser.java | ||
---|---|---|
59 | 59 |
* |
60 | 60 |
* $Id$ |
61 | 61 |
* $Log$ |
62 |
* Revision 1.1.2.2 2007-02-23 07:57:27 jorpiell |
|
62 |
* Revision 1.1.2.3 2007-06-19 09:44:46 jorpiell |
|
63 |
* It always uses geotools to parse the geometries |
|
64 |
* |
|
65 |
* Revision 1.1.2.2 2007/02/23 07:57:27 jorpiell |
|
63 | 66 |
* Capacidad de parsear el BBOX que tenga alg?n problema |
64 | 67 |
* |
65 | 68 |
* Revision 1.1.2.1 2007/01/25 16:12:59 jorpiell |
... | ... | |
255 | 258 |
while (!end){ |
256 | 259 |
switch(currentTag){ |
257 | 260 |
case KXmlParser.START_TAG: |
258 |
try{ |
|
259 |
if (parser.getName().compareTo(GMLTags.GML_POINT) == 0){ |
|
260 |
Point2D point = parsePoint2D(parser); |
|
261 |
return factory.createPoint2D(point.getX(),point.getY()); |
|
262 |
}else { |
|
263 |
return factory.createGeometry(getGeometryInGML(parser,parser.getName())); |
|
264 |
} |
|
265 |
}catch (Exception e){ |
|
266 |
//Throw a Geometry Exception if cant create the geometry |
|
267 |
throw new GMLNoGeometryException(0, e); |
|
268 |
} |
|
261 |
return factory.createGeometry(getGeometryInGML(parser,parser.getName())); |
|
269 | 262 |
case KXmlParser.END_TAG: |
270 | 263 |
if ((parser.getName().compareTo(gmGeometryTag) == 0)) |
271 | 264 |
end = true; |
Also available in: Unified diff