[GRASS-dev] [grass-code I][420] v.transform pointsfile does not accept points in dd:mm:ss format

code I item #420, was opened at 2007-06-07 15:12
Status: Open
Priority: 3
Submitted By: Harri Kiiskinen (harrikoo)
Assigned to: Nobody (None)
Summary: v.transform pointsfile does not accept points in dd:mm:ss format
Issue type: module bug
Issue status: None
GRASS version: CVS HEAD
GRASS component: vector
Operating system: Linux
Operating system version: Debian 4.0
GRASS CVS checkout date, if applies (YYMMDD):

Initial Comment:
v.transform does not accept point coordinated given as dd:mm:ss.ss in the 'pointsfile' option. If the coordinates are changed into decimal, everything works ok.

Harri K.

----------------------------------------------------------------------

You can respond by visiting:
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=420&group_id=21

code I item #420, was opened at 2007-06-07 15:12
Submitted By: Harri Kiiskinen (harrikoo)

..

v.transform does not accept point coordinated given as dd:mm:ss.ss in
the 'pointsfile' option. If the coordinates are changed into decimal,
everything works ok.

You can respond by visiting:
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=420&group_id=21

probably it is very easy to fix this.

The module needs to call G_scan_northing() and G_scan_easting() which
will convert a coordinate string to a double. Also there is
G_scan_resolution() for scanning non-hemispheral degrees.

It looks like they should go in v.transform/get_coor.c

use for x,y,zshift command line options as well?

Hamish

On Sunday 10 June 2007 01:15, Hamish wrote:

> code I item #420, was opened at 2007-06-07 15:12
> Submitted By: Harri Kiiskinen (harrikoo)

..

> v.transform does not accept point coordinated given as dd:mm:ss.ss in
> the 'pointsfile' option. If the coordinates are changed into decimal,
> everything works ok.
>
> You can respond by visiting:
> http://wald.intevation.org/tracker/?func=detail&atid=204&aid=420&group_id
>=21

probably it is very easy to fix this.

The module needs to call G_scan_northing() and G_scan_easting() which
will convert a coordinate string to a double. Also there is
G_scan_resolution() for scanning non-hemispheral degrees.

It looks like they should go in v.transform/get_coor.c

use for x,y,zshift command line options as well?

Hamish

Out of curiosity, do the methods in v.transform accurately work with spherical
coordinates?

cheers,

--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341

Dylan Beaudette wrote:

Out of curiosity, do the methods in v.transform accurately work with spherical
coordinates?

No. v.transform performs an affine transformation, which doesn't
really make much sense for spherical coordinates.

--
Glynn Clements <glynn@gclements.plus.com>

On 6/11/07, Glynn Clements <glynn@gclements.plus.com> wrote:

Dylan Beaudette wrote:

> Out of curiosity, do the methods in v.transform accurately work with spherical
> coordinates?

No. v.transform performs an affine transformation, which doesn't
really make much sense for spherical coordinates.

--
Glynn Clements <glynn@gclements.plus.com>

Ok- thanks for the affirmation- I was thinking the same thing. Would
it then be a good idea to include a warning as such?

dylan