Fichero GPX inválido

Started by cpina, July 21, 2014, 12:16:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cpina

Hola,



Estoy usando unos ficheros creados por Oruxmaps en pytrainer.



Uno de los ficheros no es abierto, es este:

http://pinux.info/files/oruxmaps/08.gpx">//http://pinux.info/files/oruxmaps/08.gpx



Pytrainer lo que hace es intentar validar el fichero con el XSD:

http://pinux.info/files/oruxmaps/Topografix_gpx11.xsd">//http://pinux.info/files/oruxmaps/Topografix_gpx11.xsd



Y no valida porqué, según:

http://www.utilities-online.info/xsdvalidation/">//http://www.utilities-online.info/xsdvalidation/



Not valid.
Error - Line 2644, 43: org.xml.sax.SAXParseException; lineNumber: 2644; columnNumber: 43; cvc-datatype-valid.1.2.1: '-9.5327E-4' is not a valid value for 'decimal'.
Error - Line 2644, 43: org.xml.sax.SAXParseException; lineNumber: 2644; columnNumber: 43; cvc-attribute.3: The value '-9.5327E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2648, 43: org.xml.sax.SAXParseException; lineNumber: 2648; columnNumber: 43; cvc-datatype-valid.1.2.1: '-7.2912E-4' is not a valid value for 'decimal'.
Error - Line 2648, 43: org.xml.sax.SAXParseException; lineNumber: 2648; columnNumber: 43; cvc-attribute.3: The value '-7.2912E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2652, 43: org.xml.sax.SAXParseException; lineNumber: 2652; columnNumber: 43; cvc-datatype-valid.1.2.1: '-5.5723E-4' is not a valid value for 'decimal'.
Error - Line 2652, 43: org.xml.sax.SAXParseException; lineNumber: 2652; columnNumber: 43; cvc-attribute.3: The value '-5.5723E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2656, 43: org.xml.sax.SAXParseException; lineNumber: 2656; columnNumber: 43; cvc-datatype-valid.1.2.1: '-3.8686E-4' is not a valid value for 'decimal'.
Error - Line 2656, 43: org.xml.sax.SAXParseException; lineNumber: 2656; columnNumber: 43; cvc-attribute.3: The value '-3.8686E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2660, 43: org.xml.sax.SAXParseException; lineNumber: 2660; columnNumber: 43; cvc-datatype-valid.1.2.1: '-1.3878E-4' is not a valid value for 'decimal'.
Error - Line 2660, 43: org.xml.sax.SAXParseException; lineNumber: 2660; columnNumber: 43; cvc-attribute.3: The value '-1.3878E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2664, 41: org.xml.sax.SAXParseException; lineNumber: 2664; columnNumber: 41; cvc-datatype-valid.1.2.1: '7.305E-5' is not a valid value for 'decimal'.
Error - Line 2664, 41: org.xml.sax.SAXParseException; lineNumber: 2664; columnNumber: 41; cvc-attribute.3: The value '7.305E-5' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2668, 41: org.xml.sax.SAXParseException; lineNumber: 2668; columnNumber: 41; cvc-datatype-valid.1.2.1: '3.0581E-4' is not a valid value for 'decimal'.
Error - Line 2668, 41: org.xml.sax.SAXParseException; lineNumber: 2668; columnNumber: 41; cvc-attribute.3: The value '3.0581E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2672, 42: org.xml.sax.SAXParseException; lineNumber: 2672; columnNumber: 42; cvc-datatype-valid.1.2.1: '5.1019E-4' is not a valid value for 'decimal'.
Error - Line 2672, 42: org.xml.sax.SAXParseException; lineNumber: 2672; columnNumber: 42; cvc-attribute.3: The value '5.1019E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2676, 42: org.xml.sax.SAXParseException; lineNumber: 2676; columnNumber: 42; cvc-datatype-valid.1.2.1: '7.5887E-4' is not a valid value for 'decimal'.
Error - Line 2676, 42: org.xml.sax.SAXParseException; lineNumber: 2676; columnNumber: 42; cvc-attribute.3: The value '7.5887E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2680, 42: org.xml.sax.SAXParseException; lineNumber: 2680; columnNumber: 42; cvc-datatype-valid.1.2.1: '9.7487E-4' is not a valid value for 'decimal'.
Error - Line 2680, 42: org.xml.sax.SAXParseException; lineNumber: 2680; columnNumber: 42; cvc-attribute.3: The value '9.7487E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.


Este es el dia que crucé el meridiano de Greenwich :-) pero Oruxmaps guardó los valores con formato incorrecto...



Arreglaré el GPX a mano ahora pero creo que Oruxmaps no debería usar notación científica...



Saludos y gracias de nuevo!



Carles

orux

#1
Quote from: "cpina"Hola,



Estoy usando unos ficheros creados por Oruxmaps en pytrainer.



Uno de los ficheros no es abierto, es este:

http://pinux.info/files/oruxmaps/08.gpx">//http://pinux.info/files/oruxmaps/08.gpx



Pytrainer lo que hace es intentar validar el fichero con el XSD:

http://pinux.info/files/oruxmaps/Topografix_gpx11.xsd">//http://pinux.info/files/oruxmaps/Topografix_gpx11.xsd



Y no valida porqué, según:

http://www.utilities-online.info/xsdvalidation/">//http://www.utilities-online.info/xsdvalidation/



Not valid.
Error - Line 2644, 43: org.xml.sax.SAXParseException; lineNumber: 2644; columnNumber: 43; cvc-datatype-valid.1.2.1: '-9.5327E-4' is not a valid value for 'decimal'.
Error - Line 2644, 43: org.xml.sax.SAXParseException; lineNumber: 2644; columnNumber: 43; cvc-attribute.3: The value '-9.5327E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2648, 43: org.xml.sax.SAXParseException; lineNumber: 2648; columnNumber: 43; cvc-datatype-valid.1.2.1: '-7.2912E-4' is not a valid value for 'decimal'.
Error - Line 2648, 43: org.xml.sax.SAXParseException; lineNumber: 2648; columnNumber: 43; cvc-attribute.3: The value '-7.2912E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2652, 43: org.xml.sax.SAXParseException; lineNumber: 2652; columnNumber: 43; cvc-datatype-valid.1.2.1: '-5.5723E-4' is not a valid value for 'decimal'.
Error - Line 2652, 43: org.xml.sax.SAXParseException; lineNumber: 2652; columnNumber: 43; cvc-attribute.3: The value '-5.5723E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2656, 43: org.xml.sax.SAXParseException; lineNumber: 2656; columnNumber: 43; cvc-datatype-valid.1.2.1: '-3.8686E-4' is not a valid value for 'decimal'.
Error - Line 2656, 43: org.xml.sax.SAXParseException; lineNumber: 2656; columnNumber: 43; cvc-attribute.3: The value '-3.8686E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2660, 43: org.xml.sax.SAXParseException; lineNumber: 2660; columnNumber: 43; cvc-datatype-valid.1.2.1: '-1.3878E-4' is not a valid value for 'decimal'.
Error - Line 2660, 43: org.xml.sax.SAXParseException; lineNumber: 2660; columnNumber: 43; cvc-attribute.3: The value '-1.3878E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2664, 41: org.xml.sax.SAXParseException; lineNumber: 2664; columnNumber: 41; cvc-datatype-valid.1.2.1: '7.305E-5' is not a valid value for 'decimal'.
Error - Line 2664, 41: org.xml.sax.SAXParseException; lineNumber: 2664; columnNumber: 41; cvc-attribute.3: The value '7.305E-5' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2668, 41: org.xml.sax.SAXParseException; lineNumber: 2668; columnNumber: 41; cvc-datatype-valid.1.2.1: '3.0581E-4' is not a valid value for 'decimal'.
Error - Line 2668, 41: org.xml.sax.SAXParseException; lineNumber: 2668; columnNumber: 41; cvc-attribute.3: The value '3.0581E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2672, 42: org.xml.sax.SAXParseException; lineNumber: 2672; columnNumber: 42; cvc-datatype-valid.1.2.1: '5.1019E-4' is not a valid value for 'decimal'.
Error - Line 2672, 42: org.xml.sax.SAXParseException; lineNumber: 2672; columnNumber: 42; cvc-attribute.3: The value '5.1019E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2676, 42: org.xml.sax.SAXParseException; lineNumber: 2676; columnNumber: 42; cvc-datatype-valid.1.2.1: '7.5887E-4' is not a valid value for 'decimal'.
Error - Line 2676, 42: org.xml.sax.SAXParseException; lineNumber: 2676; columnNumber: 42; cvc-attribute.3: The value '7.5887E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.
Error - Line 2680, 42: org.xml.sax.SAXParseException; lineNumber: 2680; columnNumber: 42; cvc-datatype-valid.1.2.1: '9.7487E-4' is not a valid value for 'decimal'.
Error - Line 2680, 42: org.xml.sax.SAXParseException; lineNumber: 2680; columnNumber: 42; cvc-attribute.3: The value '9.7487E-4' of attribute 'lon' on element 'trkpt' is not valid with respect to its type, 'longitudeType'.


Este es el dia que crucé el meridiano de Greenwich :-) pero Oruxmaps guardó los valores con formato incorrecto...



Arreglaré el GPX a mano ahora pero creo que Oruxmaps no debería usar notación científica...



Saludos y gracias de nuevo!



Carles


Gracias,



pesnaba que ya estaba resuelto, pero veoi que no :)



en la próxima lo arreglo.





orux