[GRASS-user] v.in.gpsbabel

2010-07-09 Thread Bulent Arikan
Hi,

I am running 6.5 svn on Snow Leopard. I am trying to import points and
tracks from a Garmin device (connected via USB). Using GPS Babel (v 1.4.1
for Mac), I prepared several files (.txt, .gdb, and .gpi) and tried to
import these using v.in.gpsbabel (UTM wgs84 location) –k flag checked–. I am
getting this error message:

ERROR: The gpsbabel program was not found, please install it first.
http://gpsbabel.sourceforge.net

As silly as it sounds, I am not sure if GPS Babel needs installing. After
the download, a disk image appeared and double clicking launched the program
(i.e., the window that retrieves data from the device and writes files). I
did not install anything because it launched and it seems to be working
(i.e., it writes files). I may be skipping some steps, so I will appreciate
any suggestions.

Thanks,

-- 
BÜLENT
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] v.in.gpsbabel

2010-07-09 Thread Hamish
Bulent Arikan wrote:
 I am running 6.5 svn on Snow Leopard. I am trying to import
 points and tracks from a Garmin device (connected via USB).
 Using GPS Babel (v 1.4.1 for Mac), I prepared several files
 (.txt, .gdb, and .gpi) and tried to import these using
 v.in.gpsbabel (UTM wgs84 location) –k flag checked–. I am
 getting this error message:

 ERROR: The gpsbabel program was not found, please install it
 first.http://gpsbabel.sourceforge.net
 As silly as it sounds, I am not sure if GPS Babel needs
 installing. After the download, a disk image appeared and double
 clicking launched the program (i.e., the window that retrieves
 data from the device and writes files). I did not install
 anything because it launched and it seems to be working (i.e.,
 it writes files). I may be skipping some steps, so I will
 appreciate any suggestions.

the program needs to be in the system's search PATH in order
for GRASS to be able to find it. Open a Terminal and type
echo $PATH to see what that is. You might try to copy the
'gpsbabel' executable into /usr/local/bin/ and see if it finds
it then.

If you can type gpsbabel at a Terminal and have it produce
its help message / list of options, you're in business.


Hamish




___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] v.in.gpsbabel-2

2010-07-09 Thread Bulent Arikan
Hi,

Hamish, thanks for your suggestion about fixing the GPS Babel application
issue. It worked and now I can run the module.


I am back with another issue, again ' v.in.gpsbabel' module! My GPS unit
records data in UTM projection with WGS84 datum. I just attempted to import
the waypoints into GRASS using a Garmin MapSource text (tab delimited) file.
I did not check -k flag (do not transform from WGS84). I kept the format box
in the Required tab in default and provided PROJ.4 parameter for UTM

[ +proj=utm +zone=36 +ellps=WGS84 +datum=WGS84 +units=m +no_defs ] in the
Proj box of the Required tab, since this module assumes lat/long projection
with WGS84 datum.


Here are the error messages I receive:


Loading Waypoints from /Users/barikan2/Grmn.txt...

[ERROR] SERIAL: tcgetattr error: Inappropriate ioctl for

device

[ERROR] Cannot open serial port '/Users/barikan2/Grmn.txt'

GARMIN:Can't init /Users/barikan2/Grmn.txt

/Users/barikan2/Desktop/GRASS-6.5.app/Contents/MacOS/scripts

/v.in.gpsbabel: line 263:

/Users/barikan2/grassdata/TR_WGS84_36N/PERMANENT/.tmp

/Bulent-Arikans-iMac.local/1470.0.xcsv: No such file or

directory

/Users/barikan2/Desktop/GRASS-6.5.app/Contents/MacOS/scripts

/v.in.gpsbabel: line 263: [: : integer expression expected

ERROR: Error loading data from gpsbabel



I used few other Garmin file formats such as Garmin Points of Interest
(.gpi) and Garmin MapSource (.mps) and the result does not change. I assume
I am doing something wrong with the Projection detail!


I will appreciate suggestions/advice.

Thanks,
-- 
BÜLENT
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] v.in.gpsbabel-2

2010-07-09 Thread Markus Metz
Bulent Arikan wrote:
 Hi,

 Hamish, thanks for your suggestion about fixing the GPS Babel application
 issue. It worked and now I can run the module.

 I am back with another issue, again ' v.in.gpsbabel' module! My GPS unit
 records data in UTM projection with WGS84 datum. I just attempted to import
 the waypoints into GRASS using a Garmin MapSource text (tab delimited) file.

Did you specify the corresponding format=garmin_txt?

See [1] for format details

HTH,

Markus M

[1] http://www.gpsbabel.org/capabilities.html


 I did not check -k flag (do not transform from WGS84). I kept the format box
 in the Required tab in default and provided PROJ.4 parameter for UTM

 [ +proj=utm +zone=36 +ellps=WGS84 +datum=WGS84 +units=m +no_defs ] in the
 Proj box of the Required tab, since this module assumes lat/long projection
 with WGS84 datum.

 Here are the error messages I receive:

 Loading Waypoints from /Users/barikan2/Grmn.txt...

 [ERROR] SERIAL: tcgetattr error: Inappropriate ioctl for

 device

 [ERROR] Cannot open serial port '/Users/barikan2/Grmn.txt'

 GARMIN:Can't init /Users/barikan2/Grmn.txt

 /Users/barikan2/Desktop/GRASS-6.5.app/Contents/MacOS/scripts

 /v.in.gpsbabel: line 263:

 /Users/barikan2/grassdata/TR_WGS84_36N/PERMANENT/.tmp

 /Bulent-Arikans-iMac.local/1470.0.xcsv: No such file or

 directory

 /Users/barikan2/Desktop/GRASS-6.5.app/Contents/MacOS/scripts

 /v.in.gpsbabel: line 263: [: : integer expression expected

 ERROR: Error loading data from gpsbabel

 I used few other Garmin file formats such as Garmin Points of Interest
 (.gpi) and Garmin MapSource (.mps) and the result does not change. I assume
 I am doing something wrong with the Projection detail!

 I will appreciate suggestions/advice.
 Thanks,
 --
 BÜLENT

 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] v.in.gpsbabel-2

2010-07-09 Thread Hamish
Bulent wrote:
 I am back with another issue, again ' v.in.gpsbabel' module!
 My GPS unit records data in UTM projection with WGS84 datum. I
 just attempted to import the waypoints into GRASS using a
 Garmin MapSource text (tab delimited) file.


$ gpsbabel --help | grep -i garmin
garmin301 Garmin 301 Custom position and heartrate
glogbook  Garmin Logbook XML
gdb   Garmin MapSource - gdb
mapsource Garmin MapSource - mps
garmin_txtGarmin MapSource - txt (tab delimited)
pcx   Garmin PCX5
garmin_poiGarmin POI database
garminGarmin serial/USB protocol
gtrnctr   Garmin Training Centerxml


try the garmin_txt format.

also if it is just tab delimited you can use v.in.ascii with the appropriate 
number of skip lines and column numbers. that's a lot
more robust than the gpsbabel method.


 I did not check -k flag (do not transform from WGS84).

that means lat/lon wgs84 by the way, not just the wgs84 datum.


Hamish


  
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] v.in.gpsbabel-3

2010-07-09 Thread Bulent Arikan
Thanks for all the replies. It seems that I forgot to specify the format (
_txt) in the Required tab. So, it fixed the problem and now I can import all
the waypoints and tracks. However, I am puzzled with one detail. As I
mentioned:

- I set my GPS unit to record measurements in UTM,

- the text file prepared by GPS Babel has header showing UTM as projection,

- even if I specify the projection parameter according to PROJ.4 in the
Required tab of the module,

the attribute tables for the resultant waypoint and track vector files are
in lat/long format. How can this happen? I never work with lat/long.


BÜLENT
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user