[GRASS-dev] Re: [GRASS-user] Compiling grass 6.2.1: i.class error

Glynn Clements wrote:

Every other --without-* switch should work without requiring
additional effort from the user, but curses is currently sufficiently
ingrained that making --without-curses work nicely is too much effort
for a relatively obscure usage case.

./configure --help
...
  --with-glw support GLw functionality (default: no)
...
  --with-glw-includes=DIRS
                          GLw include files are in DIRS
  --with-glw-libs=DIRS GLw library files are in DIRS

Is GLw still relevant? If not, let's remove it.

Hamish

On Wed, 2007-03-14 at 15:29 +1300, Hamish wrote:

Glynn Clements wrote:
> Every other --without-* switch should work without requiring
> additional effort from the user, but curses is currently sufficiently
> ingrained that making --without-curses work nicely is too much effort
> for a relatively obscure usage case.

./configure --help
...
  --with-glw support GLw functionality (default: no)
...
  --with-glw-includes=DIRS
                          GLw include files are in DIRS
  --with-glw-libs=DIRS GLw library files are in DIRS

Is GLw still relevant? If not, let's remove it.

Can we add --with-motif* to the list? And --with-readline* for good
measure?

--
Brad Douglas <rez touchofmadness com> KB8UYR/6
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785

Hamish wrote:

> Every other --without-* switch should work without requiring
> additional effort from the user, but curses is currently sufficiently
> ingrained that making --without-curses work nicely is too much effort
> for a relatively obscure usage case.

./configure --help
...
  --with-glw support GLw functionality (default: no)
...
  --with-glw-includes=DIRS
                          GLw include files are in DIRS
  --with-glw-libs=DIRS GLw library files are in DIRS

Is GLw still relevant?

Only for r3.showdspf; it's no longer compiled by default (you need to
explicitly run "make -C raster3d/r3.showdspf" to build it), but it's
still in the source tree.

If not, let's remove it.

Only if you are also going to remove raster3d/r3.showdspf. There's no
point having the r3.showdspf code in CVS if configure doesn't define
the variables which it requires.

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

Brad Douglas wrote:

> > Every other --without-* switch should work without requiring
> > additional effort from the user, but curses is currently sufficiently
> > ingrained that making --without-curses work nicely is too much effort
> > for a relatively obscure usage case.
>
> ./configure --help
> ...
> --with-glw support GLw functionality (default: no)
> ...
> --with-glw-includes=DIRS
> GLw include files are in DIRS
> --with-glw-libs=DIRS GLw library files are in DIRS
>
>
> Is GLw still relevant? If not, let's remove it.

Can we add --with-motif* to the list?

It's used by xganim, which is still compiled if you use --with-motif.

And --with-readline* for good measure?

Why? Some people seem to want that functionality in r.mapcalc.

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

On Wed, 2007-03-14 at 12:11 +0000, Glynn Clements wrote:

Brad Douglas wrote:

> > > Every other --without-* switch should work without requiring
> > > additional effort from the user, but curses is currently sufficiently
> > > ingrained that making --without-curses work nicely is too much effort
> > > for a relatively obscure usage case.
> >
> > ./configure --help
> > ...
> > --with-glw support GLw functionality (default: no)
> > ...
> > --with-glw-includes=DIRS
> > GLw include files are in DIRS
> > --with-glw-libs=DIRS GLw library files are in DIRS
> >
> >
> > Is GLw still relevant? If not, let's remove it.
>
> Can we add --with-motif* to the list?

It's used by xganim, which is still compiled if you use --with-motif.

I was under the impression that xganim would be going away.

> And --with-readline* for good measure?

Why? Some people seem to want that functionality in r.mapcalc.

I don't recall any significant replies when you asked about it awhile
ago other than me mentioning that I have used it before (but was not
necessary). I could be wrong.

--
Brad Douglas <rez touchofmadness com> KB8UYR/6
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785

Helena Mitasova
Dept. of Marine, Earth and Atm. Sciences
1125 Jordan Hall, NCSU Box 8208,
Raleigh NC 27695
http://skagit.meas.ncsu.edu/~helena/

On Mar 14, 2007, at 4:01 PM, Brad Douglas wrote:

On Wed, 2007-03-14 at 12:11 +0000, Glynn Clements wrote:

Brad Douglas wrote:

Every other --without-* switch should work without requiring
additional effort from the user, but curses is currently sufficiently
ingrained that making --without-curses work nicely is too much effort
for a relatively obscure usage case.

./configure --help
...
  --with-glw support GLw functionality (default: no)
...
  --with-glw-includes=DIRS
                          GLw include files are in DIRS
  --with-glw-libs=DIRS GLw library files are in DIRS

Is GLw still relevant? If not, let's remove it.

Can we add --with-motif* to the list?

It's used by xganim, which is still compiled if you use --with-motif.

I was under the impression that xganim would be going away.

PLEASE, PLEASE do not remove xganim before there is an equaly
easy to use, fast replacement. I don't know about any other other tool
for visually analyzing outputs of dynamic models (easily 20-50 rasters),
especially when you are looking for a problem in data or algorithm.

Same for r.digit - it provides a simple and fast tool to create for example
  raster mask and similar tasks - that is much simpler than doing v.digit and v.to.rast.

We have already removed site format making some tasks that were
easy to do much more difficult or even impossible, without making sure
that the new vector format offers the same capabilities so
let us not repeat the same mistake,

Helena

And --with-readline* for good measure?

Why? Some people seem to want that functionality in r.mapcalc.

I don't recall any significant replies when you asked about it awhile
ago other than me mentioning that I have used it before (but was not
necessary). I could be wrong.

--
Brad Douglas <rez touchofmadness com> KB8UYR/6
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

Helena Mitasova wrote:

>>>> Is GLw still relevant? If not, let's remove it.
>>>
>>> Can we add --with-motif* to the list?
>>
>> It's used by xganim, which is still compiled if you use --with-motif.
>
> I was under the impression that xganim would be going away.

PLEASE, PLEASE do not remove xganim before there is an equaly
easy to use, fast replacement. I don't know about any other other tool
for visually analyzing outputs of dynamic models (easily 20-50 rasters),
especially when you are looking for a problem in data or algorithm.

There's no reason to remove xganim; it works, and it doesn't depend
upon anything which is likely to change in the near future.

OTOH, I'm not aware of anything in xganim which couldn't be done as
easily (and quickly) by a script which combines r.out.ppm, pnmcat, and
mplayer.

Same for r.digit - it provides a simple and fast tool to create for
example
  raster mask and similar tasks - that is much simpler than doing
v.digit and v.to.rast.

The graphics architecture on which r.digit depends is likely to
eventually be changed such that r.digit ceases to work (i.e.
R_get_location_with_* are slated for removal). r.digit is simple
enough that a replacement wouldn't be particularly involved, although
the lack of one wouldn't necessarily prevent r.digit's removal.

I'm not sure what r.digit can do that GIMP + r.in.ppm can't.

We have already removed site format making some tasks that were
easy to do much more difficult or even impossible, without making sure
that the new vector format offers the same capabilities so
let us not repeat the same mistake,

We don't have the manpower to both perform all desired upgrades to the
underlying infrastructure *and* update everything which relies upon
existing behaviour, so something has to give.

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

Glynn:

OTOH, I'm not aware of anything in xganim which couldn't be done as
easily (and quickly) by a script which combines r.out.ppm, pnmcat, and
mplayer.

what about the tcl replacement for xganim you already hacked together?
  http://article.gmane.org/gmane.comp.gis.grass.devel/9710

Helena:

> Same for r.digit - it provides a simple and fast tool to create for
> example raster mask and similar tasks - that is much simpler than
> doing v.digit and v.to.rast.

r.digit is good for drawing blobs over raster maps (eg photo imagery)

Glynn:

The graphics architecture on which r.digit depends is likely to
eventually be changed such that r.digit ceases to work (i.e.
R_get_location_with_* are slated for removal). r.digit is simple
enough that a replacement wouldn't be particularly involved, although
the lack of one wouldn't necessarily prevent r.digit's removal.

Something called "r.digit" is easily done (famous last words) with GUI
toolkit of your choice + r.in.poly. The r.in.poly ascii format is close
enough to the v.in.ascii standard format, that if v.digit moved to
creating new maps using v.in.ascii, it's trivial to hit a switch to
output as a raster map instead, thus merging the two digitzation
modules.

I'm not sure what r.digit can do that GIMP + r.in.ppm can't.

seamless georeferencing? not a PITA to use? Set cat + label for each new
feature?

Hamish

Hamish wrote:

> OTOH, I'm not aware of anything in xganim which couldn't be done as
> easily (and quickly) by a script which combines r.out.ppm, pnmcat, and
> mplayer.

what about the tcl replacement for xganim you already hacked together?
  http://article.gmane.org/gmane.comp.gis.grass.devel/9710

I don't know whether that meets the "quickly" criterion. In that
message, I wrote:

It probably has a few bugs, but right now I'm interested in whether
or not it's fast enough to be used. It's quite a lot slower than
xganim.

I never did get any response.

Actually, a script using r.out.ppm, pnmcat and mplayer might add some
I/O overhead, but that's likely to be less significant, given that
xganim is limited to the amount of data which can be held in memory.

If a monolithic C application is required, you realistically need a UI
toolkit, and I'm not sure that any of the alternatives are a
significantly better choice than Motif (Athena also seems to be
treated as an "add-on" nowadays; you can't rely upon it being
installed along with the rest of X).

OTOH, GTK has the advantage of native Windows and MacOSX ports (I
don't know how stable the native MacOSX version is, but the Windows
version is perfectly usable).

> I'm not sure what r.digit can do that GIMP + r.in.ppm can't.

seamless georeferencing?

I'm not sure that's an issue; presumably, you are going to be drawing
over an existing map, in which case you can use "r.region rast=..." to
align the new map with the original.

not a PITA to use?

I can't see how anything could be more of a PITA than something built
using terminal I/O and libraster.

Set cat + label for each new feature?

The category is just the colour number (obviously, you would use a
paletted image); you would have to set the labels separately, though.

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

I might have missed something, but I am running v.info in about 3 days old CVS GRASS
and it asks for output map? However, the example in the man page is
v.info map=test

Why do we need output map for v.info?

Thanks, Helena

GRASS 6.3.cvs > v.info -g soils_general

ERROR: Required parameter <output> not set:
(Name for output vector map).

Usage:
v.info [-hcgt] input=name output=name [--overwrite] [--verbose]
[--quiet]

Helena Mitasova wrote:

I might have missed something, but I am running v.info in about 3 days
old CVS GRASS
and it asks for output map? However, the example in the man page is
v.info map=test

Why do we need output map for v.info?

Thanks, Helena

GRASS 6.3.cvs > v.info -g soils_general

ERROR: Required parameter <output> not set:
(Name for output vector map).

Usage:
v.info [-hcgt] input=name output=name [--overwrite] [--verbose]
[--quiet]

If you update the source code from CVS, you have to run "make clean"
before re-compiling; otherwise, you get problems like this.

The specific problem is:

  fieldopt = G_define_standard_option(G_OPT_V_FIELD);

The enum constants in gis.h changed between 1.39 (which is what your
v.info uses) and 1.42 (which is what your libgis uses):

  value revision 1.42 revision 1.39
   0 G_OPT_WHERE G_OPT_WHERE
   1 G_OPT_COLUMN G_OPT_I_GROUP
   2 G_OPT_COLUMNS G_OPT_R_INPUT
   3 G_OPT_I_GROUP G_OPT_R_INPUTS
   4 G_OPT_R_INPUT G_OPT_R_OUTPUT
   5 G_OPT_R_INPUTS G_OPT_R_MAP
   6 G_OPT_R_OUTPUT G_OPT_R_MAPS
   7 G_OPT_R_MAP G_OPT_R_BASE
   8 G_OPT_R_MAPS G_OPT_R_COVER
   9 G_OPT_R_BASE G_OPT_R_ELEV
  10 G_OPT_R_COVER G_OPT_R_ELEVS
  11 G_OPT_R_ELEV G_OPT_R3_INPUT
  12 G_OPT_R_ELEVS G_OPT_R3_INPUTS
  13 G_OPT_R3_INPUT G_OPT_R3_OUTPUT
  14 G_OPT_R3_INPUTS G_OPT_V_INPUT
  15 G_OPT_R3_OUTPUT G_OPT_V_OUTPUT
  16 G_OPT_V_INPUT G_OPT_V_MAP
  17 G_OPT_V_INPUTS G_OPT_V_TYPE
=> 18 G_OPT_V_OUTPUT G_OPT_V_FIELD
  19 G_OPT_V_MAP G_OPT_V_CAT
  20 G_OPT_V_TYPE G_OPT_V_CATS
  21 G_OPT_V_FIELD
  22 G_OPT_V_CAT
  23 G_OPT_V_CATS

v.info was compiled when G_OPT_V_FIELD == 18, so that's what gets
passed to libgis, which sees it as G_OPT_V_OUTPUT.

Although we could adopt a policy of not "renumbering" the G_OPT_*
constants, I would rather that people who forget "make clean" get
obvious errors that can be quickly identified than by obscure errors
that cause us to waste hours or even days trying to identify.

I'd even suggest changing G_gisinit() to e.g.:

gisdefs.h:

  #define G_gisinit(pgm) G__gisinit(GRASS_CVS_VERSION, (pgm))

lib/gis/gisinit.c:

  int G__gisinit(const char *version, const char *pgm)
  {
      if (strcmp(version, GRASS_CVS_VERSION) != 0)
    G_fatal_error("GRASS version mismatch);

  ...

The only problem here is that we would have to update the value of
GRASS_CVS_VERSION regularly (e.g. daily) for this to be of much use.

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

That has fixed it, thanks a lot. Helena

On Mar 16, 2007, at 4:15 PM, Glynn Clements wrote:

Helena Mitasova wrote:

I might have missed something, but I am running v.info in about 3 days
old CVS GRASS
and it asks for output map? However, the example in the man page is
v.info map=test

Why do we need output map for v.info?

Thanks, Helena

GRASS 6.3.cvs > v.info -g soils_general

ERROR: Required parameter <output> not set:
(Name for output vector map).

Usage:
v.info [-hcgt] input=name output=name [--overwrite] [--verbose]
[--quiet]

If you update the source code from CVS, you have to run "make clean"
before re-compiling; otherwise, you get problems like this.

The specific problem is:

  fieldopt = G_define_standard_option(G_OPT_V_FIELD);

The enum constants in gis.h changed between 1.39 (which is what your
v.info uses) and 1.42 (which is what your libgis uses):

  value revision 1.42 revision 1.39
   0 G_OPT_WHERE G_OPT_WHERE
   1 G_OPT_COLUMN G_OPT_I_GROUP
   2 G_OPT_COLUMNS G_OPT_R_INPUT
   3 G_OPT_I_GROUP G_OPT_R_INPUTS
   4 G_OPT_R_INPUT G_OPT_R_OUTPUT
   5 G_OPT_R_INPUTS G_OPT_R_MAP
   6 G_OPT_R_OUTPUT G_OPT_R_MAPS
   7 G_OPT_R_MAP G_OPT_R_BASE
   8 G_OPT_R_MAPS G_OPT_R_COVER
   9 G_OPT_R_BASE G_OPT_R_ELEV
  10 G_OPT_R_COVER G_OPT_R_ELEVS
  11 G_OPT_R_ELEV G_OPT_R3_INPUT
  12 G_OPT_R_ELEVS G_OPT_R3_INPUTS
  13 G_OPT_R3_INPUT G_OPT_R3_OUTPUT
  14 G_OPT_R3_INPUTS G_OPT_V_INPUT
  15 G_OPT_R3_OUTPUT G_OPT_V_OUTPUT
  16 G_OPT_V_INPUT G_OPT_V_MAP
  17 G_OPT_V_INPUTS G_OPT_V_TYPE
=> 18 G_OPT_V_OUTPUT G_OPT_V_FIELD
  19 G_OPT_V_MAP G_OPT_V_CAT
  20 G_OPT_V_TYPE G_OPT_V_CATS
  21 G_OPT_V_FIELD
  22 G_OPT_V_CAT
  23 G_OPT_V_CATS

v.info was compiled when G_OPT_V_FIELD == 18, so that's what gets
passed to libgis, which sees it as G_OPT_V_OUTPUT.

Although we could adopt a policy of not "renumbering" the G_OPT_*
constants, I would rather that people who forget "make clean" get
obvious errors that can be quickly identified than by obscure errors
that cause us to waste hours or even days trying to identify.

I'd even suggest changing G_gisinit() to e.g.:

gisdefs.h:

  #define G_gisinit(pgm) G__gisinit(GRASS_CVS_VERSION, (pgm))

lib/gis/gisinit.c:

  int G__gisinit(const char *version, const char *pgm)
  {
      if (strcmp(version, GRASS_CVS_VERSION) != 0)
    G_fatal_error("GRASS version mismatch);

  ...

The only problem here is that we would have to update the value of
GRASS_CVS_VERSION regularly (e.g. daily) for this to be of much use.

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

Glynn Clements wrote:

Actually, a script using r.out.ppm, pnmcat and mplayer might add some
I/O overhead, but that's likely to be less significant, given that
xganim is limited to the amount of data which can be held in memory.

i.e. a replacement for r.out.mpeg. (I don't think anyone would mind
that getting replaced as MPEG-1 is rather obsolete now [but Free(er)
than some alternatives])

imagemagick has some options as well. see:
  http://grass.gdf-hannover.de/wiki/Movies

Hamish

Hamish wrote:

> Actually, a script using r.out.ppm, pnmcat and mplayer might add some
> I/O overhead, but that's likely to be less significant, given that
> xganim is limited to the amount of data which can be held in memory.

i.e. a replacement for r.out.mpeg.

Not really. Conversion to MPEG-type video has significant overhead;
xganim will often be used for one-off animation. Note that I'm talking
about using mplayer to play a sequence of PPM files.

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

Glynn Clements wrote:

> > Actually, a script using r.out.ppm, pnmcat and mplayer might add
> > some I/O overhead, but that's likely to be less significant, given
> > that xganim is limited to the amount of data which can be held in
> > memory.
>
> i.e. a replacement for r.out.mpeg.

Not really. Conversion to MPEG-type video has significant overhead;
xganim will often be used for one-off animation. Note that I'm talking
about using mplayer to play a sequence of PPM files.

which is why I pointed to the ImageMagick tricks on the wiki page to
make animated GIFs or PNGs (MNG). (convert + display) less processor
overhead, but a lot more memory overhead.
  http://grass.gdf-hannover.de/wiki/Movies

We probably just need a tool to output a series of frames. Once you have
that you can encode or slideshow in any number of ways using wrapper
scripts around that.
  http://grass.gdf-hannover.de/wiki/Movies#Animate_to_files

?

Hamish

Glynn Clements wrote:

If a monolithic C application is required, you realistically need a UI
toolkit, and I'm not sure that any of the alternatives are a
significantly better choice than Motif (Athena also seems to be
treated as an "add-on" nowadays; you can't rely upon it being
installed along with the rest of X).

OTOH, GTK has the advantage of native Windows and MacOSX ports (I
don't know how stable the native MacOSX version is, but the Windows
version is perfectly usable).

Will SWIG hooks allow wxPy GUIs to be nearly as fast as C + toolkits?
I don't see any point in adding a new, but different, 1-off GUI toolkit,
as that is the main issue we are trying to undo.

> > I'm not sure what r.digit can do that GIMP + r.in.ppm can't.

IMPO r.digit needs a wxPy replacement of some flavour; the xterm version
must die before GRASS 7.

Requiring GIMP + user understanding how to do multi-layer gimping &
reimport is too much to ask IMO, so we'll eventually need something
built in presenting a streamlined process. (e.g. gimp solution will lead
to endless r.in.{tiff} unregistered re-imports into lat/lon locations +

90 error reports)

Due to the v.digit + v.to.rast solution I don't consider a r.digit
replacement to be ultra-high priority, but I don't think it will be a
huge hard task once someone gets started on it.

> seamless georeferencing?

I'm not sure that's an issue; presumably, you are going to be drawing
over an existing map, in which case you can use "r.region rast=..." to
align the new map with the original.

at minimum it would take a mini-tutorial, as the solution is not
obvious. (r.digit is obvious, even if it is awkward)

> not a PITA to use?

I can't see how anything could be more of a PITA than something built
using terminal I/O and libraster.

user perspective, not devel perspective. (understanding that dev
complexity usually trickles down into user pain)

Current r.digit may be odd, but the steps are presented in a straight
forward order, and I don't recall ever answering a usage question about
it.

> Set cat + label for each new feature?

The category is just the colour number (obviously, you would use a
paletted image); you would have to set the labels separately, though.

see "PITA" above. also note that we'd have to make a new r.support GUI
to edit the cats file, without an xterm.

Hamish

Hamish wrote:

> If a monolithic C application is required, you realistically need a UI
> toolkit, and I'm not sure that any of the alternatives are a
> significantly better choice than Motif (Athena also seems to be
> treated as an "add-on" nowadays; you can't rely upon it being
> installed along with the rest of X).
>
> OTOH, GTK has the advantage of native Windows and MacOSX ports (I
> don't know how stable the native MacOSX version is, but the Windows
> version is perfectly usable).

Will SWIG hooks allow wxPy GUIs to be nearly as fast as C + toolkits?
I don't see any point in adding a new, but different, 1-off GUI toolkit,
as that is the main issue we are trying to undo.

If you need to write C code, you may as well skip Python and use
wxWidgets directly.

The main issue is how fast you can load and animate a sequence of PPM
files. I would assume that using wx.Bitmap.LoadFile and
wx.DC.DrawBitmap from Python wouldn't be noticably slower than using
the underlying wxWidgets methods from C++, so you probably wouldn't
need any C code.

> > > I'm not sure what r.digit can do that GIMP + r.in.ppm can't.

IMPO r.digit needs a wxPy replacement of some flavour; the xterm version
must die before GRASS 7.

Requiring GIMP + user understanding how to do multi-layer gimping &
reimport is too much to ask IMO, so we'll eventually need something
built in presenting a streamlined process. (e.g. gimp solution will lead
to endless r.in.{tiff} unregistered re-imports into lat/lon locations +
>90 error reports)

Due to the v.digit + v.to.rast solution I don't consider a r.digit
replacement to be ultra-high priority, but I don't think it will be a
huge hard task once someone gets started on it.

AFAICT, the main problem with v.digit + v.to.rast is that v.digit
doesn't have a tool for drawing circles.

> > seamless georeferencing?
>
> I'm not sure that's an issue; presumably, you are going to be drawing
> over an existing map, in which case you can use "r.region rast=..." to
> align the new map with the original.

at minimum it would take a mini-tutorial, as the solution is not
obvious. (r.digit is obvious, even if it is awkward)

Right. But we could probably use that mini-tutorial anyhow. There will
always be tasks where a decent image editing program will be useful.

Also, it would probably be a good idea to ensure that all r.{in,out}.*
programs can {read,write} .tfw (or similar) files. This would
eliminate any issues with r.out.* + external editing + r.in.* and
georeferencing.

> > not a PITA to use?
>
> I can't see how anything could be more of a PITA than something built
> using terminal I/O and libraster.

user perspective, not devel perspective. (understanding that dev
complexity usually trickles down into user pain)

Current r.digit may be odd, but the steps are presented in a straight
forward order, and I don't recall ever answering a usage question about
it.

Maybe because no-one uses it? More seriously, its limited capabilities
probably have a lot to do with it. For more complex tasks, the ability
to undo operations would probably be useful.

> > Set cat + label for each new feature?
>
> The category is just the colour number (obviously, you would use a
> paletted image); you would have to set the labels separately, though.

see "PITA" above. also note that we'd have to make a new r.support GUI
to edit the cats file, without an xterm.

We need a convenient way to edit categories in any case.

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

Glynn Clements wrote:

AFAICT, the main problem with v.digit + v.to.rast is that v.digit
doesn't have a tool for drawing circles.

this could be easily remedied, either using a gui circle widget tool or
just with a line-arrow on the gui canvas to select the center and
radius, then calculate 360 or so points to define the circle (as r.digit
does already).

Also, it would probably be a good idea to ensure that all r.{in,out}.*
programs can {read,write} .tfw (or similar) files. This would
eliminate any issues with r.out.* + external editing + r.in.* and
georeferencing.

Yes, good idea. But at some point you might want .prj files as well, and
then reinvent the GeoTIFF, ...

Hamish

Hamish wrote:

> AFAICT, the main problem with v.digit + v.to.rast is that v.digit
> doesn't have a tool for drawing circles.

this could be easily remedied, either using a gui circle widget tool or
just with a line-arrow on the gui canvas to select the center and
radius, then calculate 360 or so points to define the circle (as r.digit
does already).

It can easily be done; the question is whether it really belongs in
v.digit. Would you want it for "real" digitising tasks (as opposed to
using v.digit as an r.digit substitute)?

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

On Tue, Mar 20, 2007 at 12:17:36PM +1200, Hamish wrote:

Glynn Clements wrote:
> AFAICT, the main problem with v.digit + v.to.rast is that v.digit
> doesn't have a tool for drawing circles.

this could be easily remedied, either using a gui circle widget tool or
just with a line-arrow on the gui canvas to select the center and
radius, then calculate 360 or so points to define the circle (as r.digit
does already).

You have already a "rectifying" routine for arcs in v.in.dxf(1). In
KerGIS, I extract these to put them in a subdir of vector stuff (but these
are V0_* routines i.e. they work with a structure that has nothing to do
with the way arcs are stored; they manipulate raw geometry).

GRASS/KerGIS have to have routines to convert between raster and vector,
to rectify vector (we do not support for now something else than polylines
arcs), to rasterize (we have) and vectorize (some tools for now but I
plan, someday... to resurrect LTPlus too).
--
Thierry Laronde (Alceste) <tlaronde +AT+ polynum +dot+ com>
                 http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C