Re: [GRASS-dev] r.mapcalc in Python script (parse error)

2011-10-26 Thread Glynn Clements
the exact r.mapcalc command. Also, using the same map as both input and output is unwise. It appears to work, at least for simple cases, but shouldn't be relied upon. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev

Re: [GRASS-dev] configure.in: quotation marks

2011-10-25 Thread Glynn Clements
the Makefile's author gets make. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Re: [GRASS-user] AddOn or Script when compiling GRASS from source

2011-10-24 Thread Glynn Clements
be false for anything from the add-ons repository (there should at least be a manual page). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Avoiding maximum open files limit in r.series

2011-10-21 Thread Glynn Clements
/import r.external or r.in.gdal ~17s: I don't think that this is related to my changes. Does passing the -c flag to r.out.gdal significantly affect the time taken to import the resulting file? -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing

Re: [GRASS-dev] Avoiding maximum open files limit in r.series

2011-10-17 Thread Glynn Clements
, testing r.external/r.out.external GDAL-linked maps is also necessary. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS7: makefile issue with -j4

2011-10-15 Thread Glynn Clements
Martin Landa wrote: FWIW, this approach has been committed as r48561. thanks, no errors reported. Martin unfortunately this approach has one strange side-effect, it deletes images at the end. This should be fixed by r48813. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] r.pack failing on reclassed maps

2011-10-14 Thread Glynn Clements
, it should output at least the base map and optionally the reclass table (although the latter may be a job for a separate module, e.g. r.reclasss.out). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http

Re: [GRASS-dev] r.pack failing on reclassed maps

2011-10-13 Thread Glynn Clements
a failure? In any case, there doesn't appear to be a supported programmatic method for determining that a map is a reclass. r.info includes relcass information in the default formatted output, and in the output for -h, but neither of these are designed to be machine-readable. -- Glynn Clements gl

Re: [GRASS-dev] r.reclass only for int maps

2011-10-10 Thread Glynn Clements
for printing the range. It should generate a fatal error if the input= map type isn't CELL. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] r.reclass only for int maps

2011-10-10 Thread Glynn Clements
bigger issue. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Avoiding maximum open files limit in r.series

2011-10-08 Thread Glynn Clements
always create a new fileinfo structure. There may be modules which will get confused if two Rast_open_old() calls return the same file descriptor. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http

Re: [GRASS-dev] r.reclass only for int maps

2011-10-08 Thread Glynn Clements
spline, rational spline, or something else entirely? Or do we merge r.mapcalc into libraster so that maps can be reclassed by arbitrary algebraic expressions? -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org

Re: [GRASS-dev] Avoiding maximum open files limit in r.series

2011-10-05 Thread Glynn Clements
].data_fd. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] r.mapcalc: using text labels as file names in equations

2011-10-03 Thread Glynn Clements
for it. OTOH, an index() function may be a worthwhile addition to r.mapcalc. The graph() function is more general than is necessary here, and is less efficient. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http

Re: [GRASS-dev] GRASS 6.4.2RC1 planning

2011-09-29 Thread Glynn Clements
directory exists before running the command. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS 6.4.2RC1 planning

2011-09-29 Thread Glynn Clements
. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS 6.4.2RC1 planning

2011-09-29 Thread Glynn Clements
and stock grass.{script,lib} modules, PYTHONPATH will need to include both sets of directories. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] i.atcorr don't compile

2011-09-29 Thread Glynn Clements
no clue as to which modules are written in C++. While we're on the subject, can we choose a preferred file extension for C++? There's no valid reason for needing duplicate sets of make rules for both .cc and .cpp (and also .cxx, .c++ and/or .C if someone ever uses those). -- Glynn Clements gl

Re: [GRASS-dev] GRASS7: makefile issue with -j4

2011-09-29 Thread Glynn Clements
)/%,$(IMAGES)) + $(MAKE) $(patsubst %,$(HTMLDIR)/%,$(FILES)) If the first option works, I'd choose that, as it should work for all cases; gui/wxpython/docs may not be the only directory with images and multiple HTML files. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] GRASS7: makefile issue with -j4

2011-09-29 Thread Glynn Clements
raster/Makefile to include explicit dummy rules for these targets, to override the normal rules for anything ending in .png. FWIW, this approach has been committed as r48561. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass

Re: [GRASS-dev] i.atcorr don't compile

2011-09-29 Thread Glynn Clements
for .cc|.cxx - .cpp Done in r48562 (modify libiostream, r.terraflow, wximgview, xganim to use .cpp instead of .cc) and r48563 (remove the *.make rules for .cc). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev

Re: [GRASS-dev] i.atcorr don't compile

2011-09-29 Thread Glynn Clements
Markus Neteler wrote: You need to configure GRASS with --with-cxx to enable the compilation of i.atcorr. Should this be enabled by default? Yes, why not. Done in r48564. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing

Re: [GRASS-dev] GRASS 6.4.2RC1 planning

2011-09-28 Thread Glynn Clements
the freetype -dev package it built ok. d.barb only uses R_text(), not freetype directly, so I'm not sure if that's to be expected or not. Has FreeType been updated since the base GRASS package was built? I don't see anything about d.barb which looks different to any other d.* module. -- Glynn

Re: [GRASS-dev] GRASS 6.4.2RC1 planning

2011-09-28 Thread Glynn Clements
Hamish wrote: So don't set INST_NOW=y; Without that it fails almost immediately. In what way? -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS 6.4.2RC1 planning

2011-09-28 Thread Glynn Clements
any quoting mechanism, so you can't have spaces in any path which is used as part of a target or prerequisite, or an include directive, or which is processed by make functions (patsubst, wildcard, etc). -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] GRASS 6.4.2RC1 planning

2011-09-28 Thread Glynn Clements
in the various FOOLIB variables unless you opt to use static libraries (--disable-shared). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS 6.4.2RC1 planning

2011-09-27 Thread Glynn Clements
in the install dir where the user doesn't have write permission) So don't set INST_NOW=y; just set ARCH_DISTDIR explicitly. Or if, for some reason, you must use INST_NOW=y, set ARCH_INSTDIR to the desired installation directory. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] Re: requring explicit input=-

2011-09-24 Thread Glynn Clements
have to be special-cased for all options, only for options with gisprompt == old,file,input (output=- isn't a problem). If an old,file,input option has a default value of -, the GUI should discard the default. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] G_units_to_meters_factor

2011-09-22 Thread Glynn Clements
from the origin, it matters. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] G_units_to_meters_factor

2011-09-21 Thread Glynn Clements
. IMHO, we need both U_FEET and e.g. US_USFEET. Possibly also for miles. Or even U_INTFEET and U_USFEET; calling one of them just feet creates a risk of users selecting the default rather the correct one. -- Glynn Clements gl...@gclements.plus.com

[GRASS-dev] Re: [GRASS-SVN] r48376 - in grass/trunk: lib/python lib/temporal temporal temporal/t.create temporal/t.time.abs temporal/t.time.rel

2011-09-20 Thread Glynn Clements
incorrect translations. If a string contains more than one substitution, it's better to use the dictionary form, to allow the order to be changed. Unlike C's printf(), Python doesn't support the %1$s notation. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] Python indentation?

2011-09-20 Thread Glynn Clements
in a text editor. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS 7 scripts overhaul

2011-09-14 Thread Glynn Clements
error for GS_BETWEEN, but the compiler won't care about errors in macros which are never used. However, ctypes translates macros to Python functions, so it has to parse the macro body. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing

Re: [GRASS-dev] GRASS 7 scripts overhaul

2011-09-13 Thread Glynn Clements
intact. This means that the two fields we're actually interested in are bracketed by arbitrary text containing (apparently) arbitrary whitespace, which makes identifying those fields impossible. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev

Re: [GRASS-dev] GRASS 7 scripts overhaul

2011-09-12 Thread Glynn Clements
, meaning that the output format varies according to the input format. This makes it impossible to reliably parse the output from cs2cs. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org

Re: [GRASS-dev] Re: export question

2011-09-10 Thread Glynn Clements
Hamish wrote: r.mapcalc map.red = r#map r.mapcalc map.green = g#map r.mapcalc map.blue = b#map This: r.mapcalc map.red = r#map ; map.green = g#map ; map.blue = b#map is more efficient, as it only reads the input map once. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] GRASS 7 scripts overhaul

2011-09-09 Thread Glynn Clements
Markus Neteler wrote: Oops. I was looking for references to p.stdout, and missed that. The actual problem was calling p.wait() before reading the output. Try r48203. Now it is back to deadlock (?) Try r48225. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] GRASS 7 scripts overhaul

2011-09-08 Thread Glynn Clements
that. The actual problem was calling p.wait() before reading the output. Try r48203. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS 7: d.vect: layer=-1 default conflicts with where option

2011-09-05 Thread Glynn Clements
which can't be used on maps with more than one layer. If a map has multiple layers, where= is given, and layer= is not given, then an error seem preferable to silently producing incomplete output. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev

Re: [GRASS-dev] GRASS 7 scripts overhaul

2011-09-05 Thread Glynn Clements
= grass.PIPE) while True: line = inf.readline() -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS 7: d.vect: layer=-1 default conflicts with where option

2011-09-04 Thread Glynn Clements
query which works for all layers). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS 7 scripts overhaul

2011-09-04 Thread Glynn Clements
]: - grass.raster_history(i) +if grass.find_file(i)['mapset'] == mapset: +grass.raster_history(i) if __name__ == __main__: options, flags = grass.parser() -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass

Re: [GRASS-dev] where to store GRASS settings: GISRC and wx settings

2011-08-31 Thread Glynn Clements
am not against a 5.4.2 release if there is some terrible bug (ie data corruption or copyright issue) found which goes back there. 5.x is too old to be worth the trouble. I'm not sure that anyone would still remember how to build, fix and package it. (e.g. the old gmake5 build system). -- Glynn

Re: [GRASS-dev] where to store GRASS settings: GISRC and wx settings

2011-08-30 Thread Glynn Clements
, I'd just kill the 6.5 branch. If something is too major to go into 6.4.x, it should be reserved for 7.0. FWIW, I don't think that fundamental changes to the raster library are feasible for 7.0. They'll just push back the release date to never. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] where to store GRASS settings: GISRC and wx settings

2011-08-29 Thread Glynn Clements
Hamish wrote: ** PUT NEW DEVELOPMENT IN TRUNK AND LEAVE 6.x WELL ENOUGH ALONE +1 Can we please make an effort to finish the 6.x branch. I'd really like to see 7.0.0 released before the heat death of the universe. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] i.topo.corr ported to GRASS 7

2011-08-28 Thread Glynn Clements
() instead). ERROR: Cairo: input file has incorrect dimensions: expected: 640x480 got: 698x533 ERROR: Cairo: input file has incorrect dimensions: expected: 640x480 got: 698x533 I have no idea how the display driver comes into this. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] i.topo.corr ported to GRASS 7

2011-08-27 Thread Glynn Clements
of the calculations. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] R.terraflow on massive grids

2011-08-16 Thread Glynn Clements
certain that it's supposed to be float and atoi() is a typo. Fixed in r47664. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] R.terraflow on massive grids

2011-08-16 Thread Glynn Clements
((off_t) nrows * ncols == str-stream_len()); rt_stop(rt); stats-recordTime(reading raster map, rt); This might cause problems on non-Linux platforms, but both r.terraflow and LFS have always had portability issues. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] problem with Rast_get_c_color()

2011-08-16 Thread Glynn Clements
wouldn't bet my life on it. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] problem with Rast_get_c_color()

2011-08-16 Thread Glynn Clements
colour table; r.null ... null=max+1 might work. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] R.terraflow on massive grids

2011-08-15 Thread Glynn Clements
. However, r.terraflow itself had a bug (scale then cast instead of cast then scale), which should be fixed by r47641. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo

Re: [GRASS-dev] R.terraflow on massive grids

2011-08-13 Thread Glynn Clements
. In the case of r.terraflow, you may be able to fix this particular issue by casting to long or off_t in the offending line, e.g.: assert((off_t) nrows * ncols == str-stream_len()); But there may be similar issues elsewhere in r.terraflow. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] i.topo.corr ported to GRASS 7

2011-08-12 Thread Glynn Clements
occurrence of G_get_set_window() in illumination.c, in eval_c_cosi(), but missed the others, in eval_f_cosi() and eval_d_cosi(). BTW, does it really need three separate versions of what appears to be essentially the same function? -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] Renaming G3d into Rast3d

2011-08-12 Thread Glynn Clements
' | xargs sed -f fixnames.sed -i -- Glynn Clements gl...@gclements.plus.com s/\G_fpcompress_dissectXdrDouble\/Rast3d_fpcompress_dissect_xdr_double/g s/\G_fpcompress_printBinary\/Rast3d_fpcompress_print_binary/g s/\G_fpcompress_readXdrDoubles\/Rast3d_fpcompress_read_xdr_doubles/g s

Re: [GRASS-dev] G7: parser - suppressing label in scripts

2011-08-10 Thread Glynn Clements
Markus Neteler wrote: we have a problem with the introduction of labels: http://trac.osgeo.org/grass/changeset/39886/grass/trunk/lib/gis/parser_standard_options.c Actually, the problem only arose with the addition of standard options in r47421. It would be good to be able to suppress label

Re: [GRASS-dev] i.topo.corr ported to GRASS 7

2011-08-06 Thread Glynn Clements
before the map is opened. In illumination.c, G_get_set_window() should be changed to Rast_get_window(). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] i.topo.corr ported to GRASS 7

2011-08-05 Thread Glynn Clements
]. Character not allowed. WARNING: Illegal filename ]. Character not allowed. ERROR: Unable to open header file for raster map ]@ This is because the Gfile structures didn't have the name field initialised. Try r47464. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] i.topo.corr ported to GRASS 7

2011-08-04 Thread Glynn Clements
the issues are? -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] g.parser and zero length parameter

2011-08-03 Thread Glynn Clements
if $message is empty. I don't see a problem with silently ignoring subseqent empty arguments: -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] odd configure error on MacOS X

2011-07-31 Thread Glynn Clements
empty/non-empty rather than 0/1. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Re: ctypes problem with Vect_open_old

2011-07-29 Thread Glynn Clements
Martin Landa wrote: Unfortunately the sample script still fails I can't reproduce this. Running it under GDB might help, or it might not; memory corruption is like that. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass

Re: [GRASS-dev] Catching an issue from external binary using grass Python Script

2011-07-29 Thread Glynn Clements
, err = p.communicate() out and err will be strings, containing the data written to stdout and stderr respectively. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo

Re: [GRASS-dev] odd configure error on MacOS X

2011-07-29 Thread Glynn Clements
packages by pkg-config). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] strange mapcalc behavior again

2011-07-28 Thread Glynn Clements
that you wouldn't be the only person seeing it. So it would seem to be a problem with your system, your GRASS build, or your data. Unfortunately, I have no idea what. Do you get odd results for any module other than r.mapcalc? -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] Catching an issue from external binary using grass Python Script

2011-07-28 Thread Glynn Clements
, a negative value indicates that the process terminated due to a signal. Neither call() nor Popen() raise an exception if the spawned program fails in some sense, only if they are unable to execute the program, query its status, etc. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] Re: ctypes problem with Vect_open_old

2011-07-28 Thread Glynn Clements
Martin Landa wrote: Hi, 2011/7/23 Glynn Clements gl...@gclements.plus.com: [...] *** glibc detected *** /usr/bin/python: malloc(): memory corruption: 0x09ba9fe8 *** Does calling G_gisinit() first change anything? unfortunately it didn't help, still corrupted memory, now I

Re: [GRASS-dev] odd configure error on MacOS X

2011-07-28 Thread Glynn Clements
? The error message should have been Unable to locate cairo_create; this has been fixed for 7.0 with r47301. This doesn't affect the fact that you're getting the error, just the message. Check the bottom of config.log for clues as to why the test failed. -- Glynn Clements gl

[GRASS-dev] Re: [GRASS-translations] G.manual expression missing

2011-07-26 Thread Glynn Clements
would be translated, then the parameters substituted, and the resulting string passed to G_message(), G_fatal_error(), etc -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman

Re: [GRASS-dev] Using non-ASCII characters in Grass.message and grass.fatal

2011-07-26 Thread Glynn Clements
_(...) (a function whose name is a single underscore), but there isn't a convenient solution for shell scripts. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Adding labels to the WxPython module's buttons

2011-07-26 Thread Glynn Clements
. file selection dialogs) may not even be possible. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] G_strcasecmp() in GRASS 7

2011-07-23 Thread Glynn Clements
). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] G_squeeze()

2011-07-23 Thread Glynn Clements
Martin Landa wrote: seems to be same with G_chop(), right? Right; the comment for G_chop() says: * modified copy of G_squeeze();RB March 2000 radim.bla...@dhv.cz -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev

Re: [GRASS-dev] Re: ctypes problem with Vect_open_old

2011-07-23 Thread Glynn Clements
) Vect_open_update(map, a, ) ... *** glibc detected *** /usr/bin/python: malloc(): memory corruption: 0x09ba9fe8 *** Does calling G_gisinit() first change anything? -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http

Re: [GRASS-dev] Re: ctypes problem with Vect_open_old

2011-07-22 Thread Glynn Clements
Martin Landa wrote: D1/5: Vect__open_old(): name = (null) mapset = (null) layer= (null) update = 0 Segmentation fault (null) is what libc's printf(%s) prints for a null pointer. This is a different problem to your original report. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] build error in lib/ogsf

2011-07-22 Thread Glynn Clements
. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Re: [GRASS-SVN] r46343 - grass/trunk/lib/python

2011-07-22 Thread Glynn Clements
; if that was back-ported, so should this. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] G_squeeze()

2011-07-22 Thread Glynn Clements
the pointer rather than moving the data. As nothing in 7.0 uses the returned value, the return type should probably be changed to void. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org

Re: [GRASS-dev] G_strcasecmp() in GRASS 7

2011-07-22 Thread Glynn Clements
Martin Landa wrote: do we need our own G_strcasecmp()? Bearing in mind that libc offers strcasecmp() and strncasecmp(). Windows doesn't have these (it has stricmp and/or strcmpi instead). Also, strcasecmp() is affected by the locale (LC_CTYPE), while G_strcasecmp() isn't. -- Glynn Clements

Re: [GRASS-dev] WindowsEror: exception: access violation writing 0x0000000

2011-07-21 Thread Glynn Clements
Mohammed Rashad wrote: if (raster.Rast_get_cellhd('lsat5_1987_20', 'landsat', cellhd))!=0 : cellhd should be byref(cellhd). cellhd is a structure, but the function reqires a pointer to a structure. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] GRASS_RENDER_IMMEDIATE in GRASS7

2011-07-20 Thread Glynn Clements
trouble imagining examples. If you want something like d.mon with GRASS 7, then the driver-related environment variables need to be moved to a file. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http

Re: [GRASS-dev] GRASS_RENDER_IMMEDIATE in GRASS7

2011-07-19 Thread Glynn Clements
more work. which variables exactly would be better controlled by modules directly? Anything where you want the user to be able to change the setting via a module rather than requiring the user to use export or eval `...`. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] GRASS_RENDER_IMMEDIATE in GRASS7

2011-07-18 Thread Glynn Clements
, e.g. PATH, LD_LIBRARY_PATH, PAGER, etc. Plus GISRC, obviously. For anything which is part of GRASS, it's our choice as to whether to use environment variables or $GISRC variables. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list

Re: [GRASS-dev] strange mapcalc result

2011-07-18 Thread Glynn Clements
and not an option=value argument. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Parser problem in GRASS 7

2011-07-18 Thread Glynn Clements
not set: (Name of raster map) -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Re: [GRASS-user] Compiling GRASS 7.0 error with tcl.h

2011-07-16 Thread Glynn Clements
=== --- aclocal.m4 (revision 47135) +++ aclocal.m4 (working copy) @@ -19,6 +19,7 @@ esac AC_MSG_RESULT($with_$1_includes) +$3= if test -n $with_$1_includes ; then for dir in $with_$1_includes; do if test -d $dir; then -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] Parser problem in GRASS 7

2011-07-16 Thread Glynn Clements
, then get lost. Here the backtrace: Try r47136. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] strange mapcalc result

2011-07-13 Thread Glynn Clements
in months. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] usage of subprocess.call

2011-07-13 Thread Glynn Clements
, which is the base class of real errors (it doesn't include non-error exceptions such as Warning, StopIteration, SystemExit, etc). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org

Re: [GRASS-dev] Python Scripting Library: mogrify command

2011-07-13 Thread Glynn Clements
eventually either passes it to execve() (on Unix) or uses list2cmdline() (on Windows). -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Re: display text in wxNviz

2011-07-13 Thread Glynn Clements
uncommon that some Linux distributions don't install any X bitmap fonts by default. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] grass png output and g.pnmcomp

2011-07-09 Thread Glynn Clements
Mohammed Rashad wrote: how to generate png output instead of .ppm file in g.pnmcomp g.pnmcomp can only write PPM files. There are several command-line programs which can convert PPM to PNG, e.g. pngtopnm (from the NetPBM package) or ImageMagick's convert program. -- Glynn Clements gl

Re: [GRASS-dev] Re: [SoC] Weekly reports #4 wxNviz

2011-07-09 Thread Glynn Clements
FreeType code in the display drivers (lib/driver/text3.c). Stroke fonts would also be straightforward, and would probably look nicer if arbitrary scaling is required. Filled vector fonts are significantly more complex due to the need to tessellate the shape into convex polygons. -- Glynn Clements

Re: [GRASS-dev] GRASS_RENDER_IMMEDIATE in GRASS7

2011-07-07 Thread Glynn Clements
a temporary $GISRC file rather than just using a modified environment. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] G3d library code review and raster lib tile approach

2011-07-05 Thread Glynn Clements
raster I/O to be made into a self-contained library, analogous to libpng or libjpeg. The GDAL driver would then interface to this library. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org

Re: [GRASS-dev] Re: [GRASS-SVN] r46343 - grass/trunk/lib/python

2011-07-04 Thread Glynn Clements
. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] G3d library code review and raster lib tile approach

2011-07-02 Thread Glynn Clements
, put_row.c and close.c. And it's not even all of those files; the higher-level stuff (e.g. resampling) would remain within libraster. It's probably less effort than trying to add yet another raster format within the existing raster code. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] Re: [GRASS-SVN] r46717 - grass/branches/releasebranch_6_4/scripts/v.build.all

2011-06-30 Thread Glynn Clements
=value argument due to the space in the portion before the =. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] r.external no cats file?

2011-06-30 Thread Glynn Clements
generated by the library when a new raster map is closed. r.external does not use Rast_close() and creates all the support files itself, but not the cats file. Good point. In which case, I consider that your patch is the correct solution. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-dev] G3d library code review and raster lib tile approach

2011-06-30 Thread Glynn Clements
issue here is that the code would probably need to be written from scratch due to licensing issues: GRASS is GPL, GDAL is LGPL, and trying to track down everyone who might have a copyright interest in the raster I/O code wouldn't be practical. -- Glynn Clements gl...@gclements.plus.com

<    3   4   5   6   7   8   9   10   11   12   >