New version of osmeditor (Qt desktop editor) with SRTM contours

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

New version of osmeditor (Qt desktop editor) with SRTM contours

Nick Whitelegg
Hello everyone,

After something of a break I've uploaded the latest version of the Qt-based
desktop GPX track and waypoint editor, osmeditor, to subversion. Still rather
rough and ready but a number of new features:

- most notably the ability to display contours derived from SRTM height data.
If the NASA height files are present in a subdirectory (of the data you run
the executable from) called "data", osmeditor will now draw contours for your
current position.
NASA height files can be obtained from

ftp://e0mss21u.ecs.nasa.gov/srtm/Eurasia/

e.g. N51W001.hgt is the square with SW corner 51N, 1W.

- Waypoints can be moved from their original positions, useful if there was an
inaccuracy when surveying.

- You can now also create new waypoints from scratch, e.g. if you want to mark
the summit of a hill which is on private land.

- You can name roads and paths from within osmeditor. Road and path names are
handled by the <name> extension to GPX <trackseg>s.


- Remaining major feature, other than general improvements and making it more
user friendly :-)....  is to allow direct upload to openstreetmap.

Nick

_______________________________________________
Openstreetmap-dev mailing list
[hidden email]
http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
Reply | Threaded
Open this post in threaded view
|

PS: SRTM

Nick Whitelegg
On Thursday 30 June 2005 01:36, you wrote:
> Hello everyone,
>
> After something of a break I've uploaded the latest version of the Qt-based
> desktop GPX track and waypoint editor, osmeditor, to subversion. Still
> rather rough and ready but a number of new features:

Oops forgot to say, there's also a command line SRTM generator, 'srtm', in
there which allows you to generate SRTM contours as a PNG for a given grid
square. Also a rather rudimentary shell script srtm.sh which runs it over a
range of squares. Undocumented at present but hope to sort that soon....

Nick

_______________________________________________
Openstreetmap-dev mailing list
[hidden email]
http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: New version of osmeditor (Qt desktop editor) with SRTM contours

Petter Reinholdtsen
In reply to this post by Nick Whitelegg

[Nick Whitelegg]
> After something of a break I've uploaded the latest version of the
> Qt-based desktop GPX track and waypoint editor, osmeditor, to
> subversion. Still rather rough and ready but a number of new
> features:

Sounds great.  But I am unable to compile it.


c++ -W -Wall -g -I/usr/include/qt3 `curl-config --cflags` -I/usr/local/include -DXMLRPC -Ijeeps-0.1.4-nick   -c -o MainWindow.o MainWindow.cpp
In file included from GPSDevice.h:27,
                 from MainWindow.h:25,
                 from MainWindow.cpp:19:
Track.h: In member function `OpenStreetMap::TrackSeg*
   OpenStreetMap::Track::getSeg(int)':
Track.h:58: warning: comparison between signed and unsigned integer expressions
MainWindow.cpp: In constructor `OpenStreetMap::MainWindow::MainWindow(double,
   double, double, double, double)':
MainWindow.cpp:98: warning: passing `double' for converting 4 of `
   Map::Map(double, double, double, int, int)'
MainWindow.cpp:98: warning: passing `double' for converting 5 of `
   Map::Map(double, double, double, int, int)'
MainWindow.cpp:103: warning: passing `double' for converting 1 of `virtual void
   QWidget::resize(int, int)'
MainWindow.cpp:103: warning: passing `double' for converting 2 of `virtual void
   QWidget::resize(int, int)'
MainWindow.cpp: In member function `virtual void
   OpenStreetMap::MainWindow::paintEvent(QPaintEvent*)':
MainWindow.cpp:476: warning: unused parameter `QPaintEvent*ev'
MainWindow.cpp: In member function `virtual void
   OpenStreetMap::MainWindow::drawAngleText(int, double, int, int, int, int,
   int, char*)':
MainWindow.cpp:520: warning: unused parameter `int r'
MainWindow.cpp:520: warning: unused parameter `int g'
MainWindow.cpp:520: warning: unused parameter `int b'
MainWindow.cpp: In member function `virtual void
   OpenStreetMap::MainWindow::heightShading(int, int, int, int, int, int, int,
   int, int, int, int)':
MainWindow.cpp:535: warning: unused parameter `int x1'
MainWindow.cpp:535: warning: unused parameter `int y1'
MainWindow.cpp:535: warning: unused parameter `int x2'
MainWindow.cpp:535: warning: unused parameter `int y2'
MainWindow.cpp:535: warning: unused parameter `int x3'
MainWindow.cpp:535: warning: unused parameter `int y3'
MainWindow.cpp:535: warning: unused parameter `int x4'
MainWindow.cpp:535: warning: unused parameter `int y4'
MainWindow.cpp:535: warning: unused parameter `int r'
MainWindow.cpp:535: warning: unused parameter `int g'
MainWindow.cpp:535: warning: unused parameter `int b'
MainWindow.cpp: In member function `void
   OpenStreetMap::MainWindow::drawTrackpoint(QPainter&, const QBrush&, int,
   int, int, int)':
MainWindow.cpp:650: warning: unused parameter `int id'
MainWindow.cpp: In member function `virtual void
   OpenStreetMap::MainWindow::resizeEvent(QResizeEvent*)':
MainWindow.cpp:750: warning: unused parameter `QResizeEvent*ev'
MainWindow.cpp: In member function `virtual void
   OpenStreetMap::MainWindow::keyPressEvent(QKeyEvent*)':
MainWindow.cpp:894: warning: unused variable `double dis'
MainWindow.cpp: In member function `void
   OpenStreetMap::MainWindow::grabTracks()':
MainWindow.cpp:963: error: `LoginDialogue' undeclared (first use this function)
MainWindow.cpp:963: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
/usr/include/qt3/qmainwindow.h:184: error: `QMainWindowPrivate*QMainWindow::d'
   is private
MainWindow.cpp:963: error: within this context
MainWindow.cpp:963: error: parse error before `(' token
/usr/include/qt3/qmainwindow.h:184: error: `QMainWindowPrivate*QMainWindow::d'
   is private
MainWindow.cpp:964: error: within this context
MainWindow.cpp:964: error: `exec' undeclared (first use this function)
/usr/include/qt3/qmainwindow.h:184: error: `QMainWindowPrivate*QMainWindow::d'
   is private
MainWindow.cpp:966: error: within this context
MainWindow.cpp:966: error: `getUsername' undeclared (first use this function)
/usr/include/qt3/qmainwindow.h:184: error: `QMainWindowPrivate*QMainWindow::d'
   is private
MainWindow.cpp:967: error: within this context
MainWindow.cpp:967: error: `getPassword' undeclared (first use this function)
MainWindow.cpp:1003: warning: comparison between signed and unsigned integer
   expressions
make: *** [MainWindow.o] Error 1


I also got some warnings about missing return value for setGridRef()
in Map.h.  Should it return a value or not?


_______________________________________________
Openstreetmap-dev mailing list
[hidden email]
http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: Re: New version of osmeditor (Qt desktop editor) with SRTM contours

Nick Whitelegg
Hello Petter (and all),

Now corrected the errors. Oops.... Defined the same variable twice in the
#ifndef/#define pair in two different header files....

Nick

_______________________________________________
Openstreetmap-dev mailing list
[hidden email]
http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: New version of osmeditor (Qt desktop editor) with SRTM contours

Petter Reinholdtsen

[Nick]
> Now corrected the errors. Oops.... Defined the same variable twice
> in the #ifndef/#define pair in two different header files....

Great.  Now it compiled.

Are you aware that the landsat download is broken?  At least it does
not work for me. :/


_______________________________________________
Openstreetmap-dev mailing list
[hidden email]
http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: New version of osmeditor (Qt desktop editor) with SRTM contours

Petter Reinholdtsen

I experience a crash when I try to load the
<URL:http://developer.skolelinux.no/~pere/gis/openstreetmap/data/pere-2005-03.gpx.gz>
GPX file into osmeditor.  I get this crash:

Program received signal SIGABRT, Aborted.
[Switching to Thread -1223040896 (LWP 11232)]
0xb743f83b in raise () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb743f83b in raise () from /lib/tls/libc.so.6
#1  0xb7440fa2 in abort () from /lib/tls/libc.so.6
#2  0xb7608f57 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#3  0xb7608f94 in std::terminate () from /usr/lib/libstdc++.so.5
#4  0xb7609106 in __cxa_throw () from /usr/lib/libstdc++.so.5
#5  0x08078c7d in OpenStreetMap::TrackSeg::getPoint (this=0x81733d8, i=0)
    at TrackSeg.cpp:78
#6  0x08061151 in OpenStreetMap::MainWindow::doDrawTrack (this=0xbffff570,
    p=@0xbfffecc0, doingClonedTrack=false) at MainWindow.cpp:568
#7  0x08060e84 in OpenStreetMap::MainWindow::drawTrack (this=0xbffff570,
    p=@0xbfffecc0) at MainWindow.cpp:540
#8  0x08060ab9 in OpenStreetMap::MainWindow::paintEvent (this=0xbffff570,
    ev=0xbffff090) at MainWindow.cpp:481
#9  0xb7b96c5e in QWidget::event () from /usr/lib/libqt-mt.so.3
#10 0xb7c555b2 in QMainWindow::event () from /usr/lib/libqt-mt.so.3
#11 0xb7b03e1f in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#12 0xb7b0341e in QApplication::notify () from /usr/lib/libqt-mt.so.3
#13 0xb7a9b266 in QETWidget::translatePaintEvent () from /usr/lib/libqt-mt.so.3
#14 0xb7a969a4 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#15 0xb7aad254 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#16 0xb7b161d8 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#17 0xb7b16088 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#18 0xb7b04071 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#19 0x08051fd8 in main (argc=1, argv=0xbffff854) at osmeditor.cpp:58
(gdb)

Do you see it too?


_______________________________________________
Openstreetmap-dev mailing list
[hidden email]
http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
Reply | Threaded
Open this post in threaded view
|

osm-editor

Nick Whitelegg
Hello Petter (and anyone else....)

The reason for your crash was because at the moment, osm-editor cannot handle
more than one track; you had an empty track in your GPX file before the main
track. This is on the todo list.

I didn't have any problem with landsat; can see that your track went basically
from one end of Norway to another. Some trip!

Steve - will try and optimise the track drawing stuff when I get the time, in
the meantime, Ctrl-T will turn off the trackpoint labels significantly
speeding up the draw. Petter's Norway track (65000 points?) drew fine when I
did that.

Nick

_______________________________________________
Openstreetmap-dev mailing list
[hidden email]
http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: osm-editor

stevec-4
* @ 09/07/05 01:34:02 AM [hidden email] wrote:

> Hello Petter (and anyone else....)
>
> The reason for your crash was because at the moment, osm-editor cannot handle
> more than one track; you had an empty track in your GPX file before the main
> track. This is on the todo list.
>
> I didn't have any problem with landsat; can see that your track went basically
> from one end of Norway to another. Some trip!
>
> Steve - will try and optimise the track drawing stuff when I get the time, in
> the meantime, Ctrl-T will turn off the trackpoint labels significantly
> speeding up the draw. Petter's Norway track (65000 points?) drew fine when I
> did that.

One thing you could do is drop points which don't deviate much from a
straigh line a-la http://www.tom-carden.co.uk/googlegpx/ (which
coincidentally uses one of your tracks for a screenshot)

have fun,

SteveC [hidden email] http://www.fractalus.com/steve/

_______________________________________________
Openstreetmap-dev mailing list
[hidden email]
http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: osm-editor

Petter Reinholdtsen
In reply to this post by Nick Whitelegg

[Nick]
> The reason for your crash was because at the moment, osm-editor
> cannot handle more than one track; you had an empty track in your
> GPX file before the main track. This is on the todo list.

Oh.  Right.  Good to know why it was behaving strangely.

> I didn't have any problem with landsat;

I believe this was a network problem at the hotel I was staying at in
London.  It worked when I got back home.


_______________________________________________
Openstreetmap-dev mailing list
[hidden email]
http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev