- Timestamp:
- 2005-10-04T22:33:26+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/io/GpxReader.java
r10 r13 30 30 * The GPX namespace used. 31 31 */ 32 private static finalNamespace GPX = Namespace.getNamespace("http://www.topografix.com/GPX/1/0");32 private static Namespace GPX = Namespace.getNamespace("http://www.topografix.com/GPX/1/0"); 33 33 /** 34 34 * The OSM namespace used (for extensions). … … 56 56 final SAXBuilder builder = new SAXBuilder(); 57 57 Element root = builder.build(source).getRootElement(); 58 System.out.println(root.getNamespacePrefix()); 59 60 // HACK, since the osm server seem to not provide a namespace. 61 if (root.getNamespacePrefix().equals("")) 62 GPX = null; 63 58 64 return parseDataSet(root); 59 65 } catch (NullPointerException npe) {
Note:
See TracChangeset
for help on using the changeset viewer.