v.transform
James Darrell McCauley
mccauley at ecn.purdue.edu
Wed Feb 16 18:01:41 EST 1994
robert atnip (atterbury!robert) writes on 16 Feb 94:
>I'm having trouble with v.transform. I have quite a few files that has been imported from autocad dxf. I have to correct the coordinates. I have created a points file
>that looks like this:
>582310 4357124 582326 4356944
>583631 4357074 583661 4357005 583985 4355392 584012 4355377
>582803 4355446 582811 4355323
try making sure that you have ended each line with a newline
(there's only three lines of data in this message, the second
is 138 characters wide and has eight numbers).
>when I get the option to give the file holding transform coordinates
>I get this message:
>ERROR: Reading coordinates from file
The problem here is that sscanf did not convert four arguments.
(see src/mapdev/v.transform/get_coor.c and sscanf(3))
--Darrell
from get_coor.c:
if ( fgets (buff, sizeof (buff), fp) == NULL)
break;
if ( sscanf (buff, "%lf %lf %lf %lf", &ax[i], &ay[i], &bx[i], &by[i]) != 4)
{
fprintf (stderr, " ERROR: Reading coordinates from file\n.");
return (-1);
}
More information about the grass-user
mailing list