You are not logged in.

#1 2012-01-08 22:50:26

sebval
Member
Registered: 2012-01-08
Posts: 5

JOSM my gpx is not time-stamped

Hello, I'm new to JOSM by I need to work with this program for a projet.

I have a picture in jpg format with some EXIF information (time, position)

I want to use JOSM to insert that picture in my plan, but the built-in AgPifoJ program says that my picture is not time stamped ("La trace gpx n'est pas horodatée" in french). My gpx file is created by OruxMap on an Android phone powered by CyanogenMod 7. OruxMap allows to take pictures with the camera, and I think it is the same program that writes the EXIF information in the picture file.

I use:
Windows 7 SP 1
JOSM 4667
Java 1.7.0_01

The content of my gpx file is:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1"
     xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1"
     creator="OruxMaps" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
    <metadata>
        <name><![CDATA[Waypoints]]></name>
        <desc><![CDATA[]]></desc>
        <link href="http://www.oruxmaps.com">
        <text>OruxMaps</text>
        </link>
        <time>2012-01-08T18:44:53Z</time><bounds maxlat="0.0" maxlon="0.0" minlat="0.0" minlon="0.0"/>
    </metadata>
    <wpt lat="49.57669924" lon="5.80744106">
        <ele>351</ele>
        <time>2012-01-06T14:00:38.000Z</time>
        <name><![CDATA[WPT004]]></name>
        <desc><![CDATA[]]></desc>
        <sym>Waypoint</sym>
        <type>Photo</type>
        <extensions>
            <om:oruxmapsextensions xmlns:om="http://www.oruxmaps.com/oruxmapsextensions/1/0">
                <om:ext type="IMAGEN" subtype="0">/mnt/sdcard/DCIM/Camera/1325858439546.jpg</om:ext>
            </om:oruxmapsextensions>
        </extensions>
    </wpt>
</gpx>


Can you please tell me what is wrong ?


Regards

sebval





------------------------------------------------------------------
I found the mistake: for JOSM, timestamp must be inserted in a <trkpt></trkpt> tag. Not in a <wpt></wpt> tag.

Last edited by sebval (2012-01-09 14:43:28)

Offline

#2 2012-01-24 19:22:43

bastik
Member
Registered: 2011-08-05
Posts: 58

Re: JOSM my gpx is not time-stamped

If the position is in EXIF, just open the images directly (File > Open). The gpx should work as well, you can write a bug report (josm.openstreetmap.de) and attach all the files (image and gpx).

Offline

#3 2012-01-24 19:55:32

sebval
Member
Registered: 2012-01-08
Posts: 5

Re: JOSM my gpx is not time-stamped

With the Explorer I can see the details of my picture:
My Exif is version 0220 and I have lat., long. and alt. coordinates in the 'GPS' section.

When I do File>Open and select the picture, a dialog box appear and is asking for the GPS file

Last edited by sebval (2012-01-24 20:01:05)

Offline

#4 2012-01-24 21:51:04

BikePC
Member
From: Zoetermeer NL
Registered: 2010-06-09
Posts: 548

Re: JOSM my gpx is not time-stamped

@sebval, you could try to convert your gpx at gpsies.com. Use convert - input gpx, output gpx and under options specify a speed value. The resulting gpx contains time stamps. Or is this not what you mean?


GPS: Garmin Edge 800 / Edge Touring Plus / Edge Explore

Offline

#5 2012-01-24 22:11:28

sebval
Member
Registered: 2012-01-08
Posts: 5

Re: JOSM my gpx is not time-stamped

I didn't know about gpsies.com. Thank you for the information. I don't understand about the speed: there is only one point in my file. What does the speed mean ?
When I convert the original file (produced by the OruxMap program), it generates another gpx than I can save on my compture. By JOSM says: "It's not time-stamped :
here is the content of the generated file, with a speed of 10:

<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="GPSies http://www.gpsies.com - Waypoints__20120108_1944gpx" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
  <metadata>
    <name>Waypoints__20120108_1944gpx</name>
    <link href="http://www.gpsies.com/">
      <text>Waypoints__20120108_1944gpx on GPSies.com</text>
    </link>
    <time>2012-01-24T22:06:44Z</time>
  </metadata>
  <rte>
    <name>Waypoints__20120108_1944gpx on GPSies.com</name>
    <rtept lat="49.57669924" lon="5.807441060">
      <ele>351.00000</ele>
    </rtept>
  </rte>
</gpx>

Offline

#6 2012-01-24 22:28:54

BikePC
Member
From: Zoetermeer NL
Registered: 2010-06-09
Posts: 548

Re: JOSM my gpx is not time-stamped

Your gpx-file contains one waypoint, while I was assuming it was a track trace (did not look in detail to your original content). In some instances when a tracktrace contains no timestamps for all trackpoints, for example after editing in Garmin Mapsource, the gpsies trick is the way to attach again timestams at all trackpoints. Setting some speed value does the trick as was told to me (didn't experiment what the result is when leaving it out). Conclusion for you is that the gpsies trick doesn't help you. Sorry.


GPS: Garmin Edge 800 / Edge Touring Plus / Edge Explore

Offline

#7 2012-01-24 22:39:25

sebval
Member
Registered: 2012-01-08
Posts: 5

Re: JOSM my gpx is not time-stamped

I can edit manually my gpx file produced by OruxMap, transforming the <wpt> in <trkpt>. In fact to make it work in JOSM, i simplified my OruxMap file to leave the strict minimum and changed the waypoint in trackpoint. This is a problem if I have a lot of files.

Does anybody know an Android program that is fully-JOSM compliant in creating gpx files ?

Offline

#8 2012-01-25 08:11:42

pberck
Member
Registered: 2008-09-16
Posts: 111

Re: JOSM my gpx is not time-stamped

sebval wrote:

I can edit manually my gpx file produced by OruxMap, transforming the <wpt> in <trkpt>. In fact to make it work in JOSM, i simplified my OruxMap file to leave the strict minimum and changed the waypoint in trackpoint. This is a problem if I have a lot of files.

Does anybody know an Android program that is fully-JOSM compliant in creating gpx files ?

There is OSMTracker: https://market.android.com/details?id=m … osmtracker, and Locus (https://market.android.com/details?id=m … roid.locus) works also.

-peter

Offline

#9 2012-01-25 13:55:04

sebval
Member
Registered: 2012-01-08
Posts: 5

Re: JOSM my gpx is not time-stamped

Thanks for the links, I downloaded and installed, I will try them.

Offline

Board footer

Powered by FluxBB