Revision 11611 trunk/libraries/libGPE-GML/src/org/gvsig/gpe/gml/bindings/geometries/CoordinatesTypeBinding.java
CoordinatesTypeBinding.java | ||
---|---|---|
53 | 53 |
* |
54 | 54 |
* $Id$ |
55 | 55 |
* $Log$ |
56 |
* Revision 1.2 2007-05-14 09:31:06 jorpiell |
|
56 |
* Revision 1.3 2007-05-14 09:52:53 jorpiell |
|
57 |
* Nullpointer exception fixed |
|
58 |
* |
|
59 |
* Revision 1.2 2007/05/14 09:31:06 jorpiell |
|
57 | 60 |
* Add the a new class to compare tags |
58 | 61 |
* |
59 | 62 |
* Revision 1.1 2007/05/07 12:58:42 jorpiell |
... | ... | |
117 | 120 |
switch(currentTag){ |
118 | 121 |
case KXmlParser.START_TAG: |
119 | 122 |
if (CompareUtils.compareWithOutNamespace(tag,GMLTags.GML_COORDINATES)){ |
120 |
parser.next(); |
|
121 |
String[] coordinates = parser.getText().split(TUPLES_SEPARATOR); |
|
123 |
parser.next();
|
|
124 |
String[] coordinates = parser.getText().trim().split(TUPLES_SEPARATOR);
|
|
122 | 125 |
aCoordinates = new double[3][coordinates.length]; |
123 | 126 |
for (int i=0 ; i<coordinates.length ; i++){ |
124 | 127 |
String[] coordinate = coordinates[i].trim().split(COORDINATES_SEPARATOR); |
Also available in: Unified diff