Martin Landa 0a8dfa6a4f libgis: introduce G_OPT_DB_SQL hace 13 años
..
colors e78b3db3a2 expanded to 6000 GDD hace 13 años
FIPS.code db49180dd7 welcome to GRASS 7.0.svn hace 17 años
G.h 0b7dc05f0d Split G__ between lib/gis and lib/raster hace 16 años
Makefile b54f3e9bc2 move proj-related files from etc/ to etc/proj hace 13 años
README.TYPE 0265bfd52e spelling hace 13 años
adj_cellhd.c 8397d5e329 Moved ilist from vector lib into libgis hace 13 años
alloc.c 7c8c38685b Optimisations: hace 15 años
area.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
area_ellipse.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
area_poly1.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
area_poly2.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
area_sphere.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
ascii_chk.c c7041e9ca3 Remove unnecessary return values hace 16 años
asprintf.c 817b0b9267 libgis: change fn names to better refelct what they do hace 13 años
basename.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
bres_line.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
clicker.c c313e28597 Bundle static variables into per-file structures hace 16 años
color_rules.c 4edb71ac75 gislib: G_list_color_rules() and G_find_color_rule() added hace 14 años
color_str.c 8db528aa65 color_str.c moved back to libgis (modules fixed) hace 16 años
colors.desc 0e21177bc4 fwd port from 6.4 hace 14 años
commas.c c7041e9ca3 Remove unnecessary return values hace 16 años
copy_dir.c 01ed48535c Fix bogus inclusion of <grass/config.h> hace 15 años
copy_file.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
counter.c aff756a341 Fix G_is_initialized() for case of concurrent initialisation attempts hace 16 años
date.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
datum.c b54f3e9bc2 move proj-related files from etc/ to etc/proj hace 13 años
datum.table 72e1e2bf11 Add Swedish datum rt90 hace 15 años
datumtransform.table b54f3e9bc2 move proj-related files from etc/ to etc/proj hace 13 años
debug.c 0b7dc05f0d Split G__ between lib/gis and lib/raster hace 16 años
distance.c 9b9f640694 gislib: cosmetics in doxygen documentation hace 14 años
done_msg.c c7041e9ca3 Remove unnecessary return values hace 16 años
ellipse.table db49180dd7 welcome to GRASS 7.0.svn hace 17 años
ellipse.table.solar.system e4531aa905 Correction in Ganymede's minor radius from Alessandro Frigeri. hace 13 años
endian.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
env.c f54da971c3 gislib: update env.c doxygen documentation hace 14 años
error.c 88327008b0 libgis: new verbosity level hace 13 años
file_name.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) hace 14 años
find_etc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
find_file.c 27e3e4e989 libgis: cosmetics when checking for existing elements hace 13 años
find_rast.c dc7822aafa G_find_grid3 moved from raster3d to gislib hace 14 años
find_rast3d.c dc7822aafa G_find_grid3 moved from raster3d to gislib hace 14 años
find_vect.c 3e65212312 libgis: debug G_find_raster/vector() hace 15 años
flate.c 4c00de6892 Fix signedness mismatch hace 15 años
fmode.c 1acdd0be01 Build system clean-up hace 16 años
geodesic.c c7041e9ca3 Remove unnecessary return values hace 16 años
geodist.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
get_ellipse.c b54f3e9bc2 move proj-related files from etc/ to etc/proj hace 13 años
get_projinfo.c cb83f2c216 gislib: update doxygen docs for get_projinfo.c hace 14 años
get_window.c e028cffb66 gislib: define G_unset_window() hace 14 años
getl.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
gisbase.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
gisdbase.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
gisinit.c 10d86ecd93 gislib: update dox for gisinit.c hace 14 años
gislib.dox 5ac275c4a5 fix example hace 13 años
handler.c ee734e99fb gislib: document error handlers hace 13 años
home.c 384d7f7b04 remove useless comment, we have to return something. probably the doxygen comments need adjustment hace 16 años
ilist.c 8397d5e329 Moved ilist from vector lib into libgis hace 13 años
intersect.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
is.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
key_value1.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) hace 13 años
key_value2.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) hace 13 años
key_value3.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) hace 13 años
key_value4.c 4a29361f14 Generate fatal errors rather than returning a status, for: hace 15 años
legal_name.c 22e3e2d77b replace GR_FATAL_* (rasters), GV_FATAL_* (vectors) by G_FATAL_* hace 13 años
line_dist.c c7041e9ca3 Remove unnecessary return values hace 16 años
list.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) hace 14 años
ll_format.c ab082da4e0 Add "const" where appropriate to libgis return types hace 16 años
ll_scan.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
locale.c 474402cb81 Various MinGW bugfixes from Rosen Matev hace 16 años
location.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
ls.c c7041e9ca3 Remove unnecessary return values hace 16 años
ls_filter.c af2133adf1 Move regex/glob G__ls() filters into lib/gis hace 15 años
mach_name.c 474402cb81 Various MinGW bugfixes from Rosen Matev hace 16 años
make_loc.c ba63aa9662 update FSF mailing address (https://trac.osgeo.org/grass/ticket/1422) hace 14 años
make_mapset.c ba63aa9662 update FSF mailing address (https://trac.osgeo.org/grass/ticket/1422) hace 14 años
mapcase.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
mapset.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
mapset_msc.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) hace 14 años
mapset_nme.c 61e81887d6 Force current mapset to appear at front of mapset search path hace 14 años
myname.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) hace 14 años
named_colr.c 671e44225a Fix formatting of array initialisers hace 17 años
new_des db49180dd7 welcome to GRASS 7.0.svn hace 17 años
nl_to_spaces.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
nme_in_mps.c e09ca9b4fc libgis: G_fully_qualified_name() don't report mapset if empty string hace 15 años
open.c a9748b5f2d gislib: check name only if defined hace 14 años
open_misc.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) hace 14 años
overwrite.c 8ae109e2b9 vectlib: very initial direct OGR write support (v.external.out) hace 14 años
pager.c 1e26c862c8 Fix pager/mail functions hace 15 años
parser.c 6d05e9d727 libgis: fix parser when doing overwrite check for new files hace 13 años
parser_help.c 256a79d5f7 libgis: avoid segfault when opt->key is not defined hace 14 años
parser_html.c ac4017a5a8 libgis (parser): html description hace 13 años
parser_interface.c b449f53816 Add suppress_required field to flags hace 14 años
parser_local_proto.h f87e1ca829 gislib: G_parser() - print usage and then errors hace 14 años
parser_script.c 97fe635c5c libgis: G__script(), respect current year in the script-like output hace 14 años
parser_standard_options.c 0a8dfa6a4f libgis: introduce G_OPT_DB_SQL hace 13 años
parser_wps.c 88f0751f34 Space time raster and vector datasets supported. New mimetypes defined. hace 13 años
paths.c 2aceb141e9 add missing headers hace 13 años
percent.c 6618b33b4f libgis: add G_progress() hace 13 años
pi.h db49180dd7 welcome to GRASS 7.0.svn hace 17 años
plot.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
pole_in_poly.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
popen.c 770e798241 G_spawn_ex() expects descriptors as "int"s, not "char*". hace 15 años
progrm_nme.c 5d366eb05b major gislib.dox update (still not complete, https://trac.osgeo.org/grass/changeset/37744) hace 16 años
proj1.c 225171cd49 libgis: G_database_unit_name() should return localized unit name hace 14 años
proj2.c 225171cd49 libgis: G_database_unit_name() should return localized unit name hace 14 años
proj3.c 225171cd49 libgis: G_database_unit_name() should return localized unit name hace 14 años
projections c7478c69d3 enable Geostationary Satellite View (merge from devbr6) hace 16 años
put_window.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
putenv.c 5c454c7ad2 gislib: cosmetics in doxygen documentation hace 14 años
radii.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
rd_cellhd.c a4f42ffa5e Fix allocation bug (wrong pointer type in "sizeof") hace 14 años
remove.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) hace 14 años
rename.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) hace 14 años
rhumbline.c c7041e9ca3 Remove unnecessary return values hace 16 años
rotate.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
seek.c 7cc2db1d68 libgis: cosmetics in doxygen desc hace 14 años
set_window.c e028cffb66 gislib: define G_unset_window() hace 14 años
short_way.c bc702cc96b major gislib.dox update (still not complete) hace 16 años
sleep.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
snprintf.c 06ad8336d1 Fix G_snprintf() to allow for bug in Windows vsnprintf() hace 15 años
spawn.c a049ea0396 Close handles after spawning child process hace 13 años
state27 db49180dd7 welcome to GRASS 7.0.svn hace 17 años
state83 db49180dd7 welcome to GRASS 7.0.svn hace 17 años
strings.c fdecd8f1be gislib: add G_strcasestr() hace 14 años
tempfile.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) hace 14 años
timestamp.c 6ad43043a2 Timestamp support for vector layers added. hace 13 años
token.c e5fba40dba libgis: fix doxygen docs (close tags) hace 13 años
trim_dec.c 8c1f95a84c Remove bogus return value from G_trim_decimal() hace 16 años
units.c 2ffbfcfe51 Fixed wrong plural unit definition hace 13 años
user_config.c 0d1953da13 lib/gis: LFS for wingrass hace 15 años
verbose.c 88327008b0 libgis: new verbosity level hace 13 años
view.c c7041e9ca3 Remove unnecessary return values hace 16 años
whoami.c 5d366eb05b major gislib.dox update (still not complete, https://trac.osgeo.org/grass/changeset/37744) hace 16 años
win32_pipes.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
wind_2_box.c 88abdb3fab Eliminate G_copy(); replace with memcpy() or assignment hace 15 años
wind_format.c 687a3466a8 output correct precision for different projection types (bugs https://trac.osgeo.org/grass/ticket/654 and https://trac.osgeo.org/grass/ticket/335; merge from devbr6) hace 16 años
wind_in.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
wind_limits.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
wind_overlap.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ hace 17 años
wind_scan.c e96e0a6521 gislib: cosmetics in doxygen documentation hace 14 años
window_map.c e028cffb66 gislib: define G_unset_window() hace 14 años
worker.c e4164ed7e4 Add --with-pthread etc to configure script hace 16 años
wr_cellhd.c b96b38bfb6 Fixed wrong precision of top and bottom region storage. hace 13 años
writ_zeros.c c7041e9ca3 Remove unnecessary return values hace 16 años
zero.c b06b8a0105 vectorlib: hace 16 años
zone.c bc702cc96b major gislib.dox update (still not complete) hace 16 años

README.TYPE

.\" use -ms
.LP
There were two flavors of changes made to structures in gis.h
and to calls to routines in the library:

.IP 1.
Variables in structures, parameters in argument lists to library routines,
and return values from library routines that really represented
CELL data but were declared as int have been changed to CELL.

The following structures were changed:

.DS
Categories [gis.h]
Cell_stats
Colors
Histogram
Range
Reclass
.DE

The argument type for some parameters for the following routines was changed:

.DS
G_init_cats [cats.c]
G_get_cats
G_set_cats
G_get_color [color.c]
G_set_color
G_make_random_colors [make_colr2.c]
G_make_color_wave
G_make_grey_scale
G_make_color_ramp
G_make_aspect_colors
G_add_histogram [histogram.c]
G_set_histogram
G_update_range [range.c]
.DE

The return value for the following routines was changed:

.DS
G_number_of_cats [cats.c]
G_get_histogram_cat [histogram.c]
.DE

This change does not, at present, require changes to existing code since
the CELL type is currently defined as int.

In the future, if we (or someone else) want to
redefine CELL to long (say on a 16 bit machine), the application code
will compile ok, but will not run correctly since the calling seqences
(including printf and scanf) will not match anymore.
To upgrade GRASS code for this is a big deal.
It consists of
finding all places that ints are used in assignments with
CELL variables,
modifying all the calls to the above routines,
and modifying all calls to other routines that don't know about the CELL
type (in particular printf, scanf, and Vask code).

The way to handle printf for CELL data is to use %ld and cast the
CELL value to long:
.DS
CELL x
printf ("%ld", (long) x);
.DE
The way to handle scanf for CELL data is to use %ld into a long
and assign to the CELL varaible:
.DS
CELL x;
long t;

scanf ("%ld", &t);
x = (CELL) t;
.DE
For Vask calls, assign the CELL value to a long, call Vask will the long,
then assign the long to the CELL variable:
.DS
CELL x;
long t;

t = x;
V_clear();
V_ques (&t, 'l', ...);
V_call();
x = t;
.DE

The long vs int issue for CELL also presents a subtle, but
potentially fatal, problem with malloc(n) which requires n to be int.

Suppose we want to allocate an array for reclass, from
cats min to max. What we do now is

.DS
char *table;
CELL min,max;
int len;

len = max - min + 1;
table = malloc (len);
.DE
This will fail if CELL is long and the expression max-min+1 yields
a value which overflows an int. Therefore, we should do
.DS
long len;

len = max - min + 1;
if (len != (int)len)
error("Too many categories");
table = malloc ((int)len);
.DE
.IP 2.
Variables in structures, parameters in argument lists to library routines,
and return values from library routines that should have been long
but were declared as int have been changed to long.

The following structures were changed:

.DS
Cell_stats [gis.h]
Histogram
.DE

The argument type for some parameters for the following routines was changed:

.DS
G_add_histogram [histogram.c]
G_set_histogram
G_find_cell_stat [cell_stats.c]
G_next_cell_stat
.DE

The return value for the following routines was changed:

.DS
G_get_histogram_count [histogram.c]
.DE


These changes required immediate upgrade.
I think this update is done, but I want to review it again.