Markus Neteler a64fb8b37a libgis: parser sync to trunk 10 năm trước cách đây
..
colors f8c85f5ded libgis: kelvin color table added 10 năm trước cách đây
testsuite a5eb8678d5 gis library: backport of https://trac.osgeo.org/grass/changeset/61956 to allow mapset specific temporal databases 10 năm trước cách đây
FIPS.code db49180dd7 welcome to GRASS 7.0.svn 17 năm trước cách đây
G.h fd25af5813 Enable zlib compression by default (set GRASS_INT_ZLIB=0 to use RLE); Allow zlib compression to be set via GRASS_ZLIB_LEVEL environment variable; libgis: -1 is a valid compression level (Z_DEFAULT_COMPRESSION) (backport from trunk, https://trac.osgeo.org/grass/changeset/61380 + https://trac.osgeo.org/grass/changeset/61420 + https://trac.osgeo.org/grass/changeset/61422 + https://trac.osgeo.org/grass/changeset/61500) 10 năm trước cách đây
Makefile b54f3e9bc2 move proj-related files from etc/ to etc/proj 13 năm trước cách đây
README.TYPE 0265bfd52e spelling 13 năm trước cách đây
adj_cellhd.c ebfd5088d1 dox: region (window) functions doc improvements 12 năm trước cách đây
alloc.c 48b4f09d9d fix copyright initial year (from G6) 12 năm trước cách đây
area.c 23883b3e9c libgis: Fixed the description for G_area_of_polygon 11 năm trước cách đây
area_ellipse.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
area_poly1.c 58014fe47b libgis/dox: verbatim for equations in G_ellipsoid_polygon_area 11 năm trước cách đây
area_poly2.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
area_sphere.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
ascii_chk.c c7041e9ca3 Remove unnecessary return values 16 năm trước cách đây
asprintf.c e0ca521985 libgis: fix vsnprintf usage in G_rasprintf 12 năm trước cách đây
basename.c 45902d14cb Minor doxygen sync to trunk 10 năm trước cách đây
bres_line.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
clicker.c c313e28597 Bundle static variables into per-file structures 16 năm trước cách đây
color_rules.c 1dba9b62d4 dox: fixing several doxygen warnings (wrong file names, typos, lt gt chars) 12 năm trước cách đây
color_str.c 8db528aa65 color_str.c moved back to libgis (modules fixed) 16 năm trước cách đây
colors.desc f8c85f5ded libgis: kelvin color table added 10 năm trước cách đây
commas.c c7041e9ca3 Remove unnecessary return values 16 năm trước cách đây
copy_dir.c 623c7b94ec simplify wingrass LFS 12 năm trước cách đây
copy_file.c 070eaa1a92 msg typo: occured -> occurred 12 năm trước cách đây
counter.c aff756a341 Fix G_is_initialized() for case of concurrent initialisation attempts 16 năm trước cách đây
date.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
datum.c 1a84429e14 some fixes for 'error: format not a string literal and no format arguments [-Werror=format-security]' 12 năm trước cách đây
datum.table 1087d8ad64 support ITRF_1992 datum 12 năm trước cách đây
datumtransform.table 1087d8ad64 support ITRF_1992 datum 12 năm trước cách đây
debug.c 09b7db1dd9 doxygen errors fixed 12 năm trước cách đây
distance.c b620683d20 dox: segment library (unnecessary fn and SEG/seg mess) 12 năm trước cách đây
done_msg.c c7041e9ca3 Remove unnecessary return values 16 năm trước cách đây
ellipse.table db49180dd7 welcome to GRASS 7.0.svn 17 năm trước cách đây
ellipse.table.solar.system e4531aa905 Correction in Ganymede's minor radius from Alessandro Frigeri. 13 năm trước cách đây
endian.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
env.c a5eb8678d5 gis library: backport of https://trac.osgeo.org/grass/changeset/61956 to allow mapset specific temporal databases 10 năm trước cách đây
error.c b5bfe42ed3 libgis: Replace SIGSEGV-on-error with SIGABRT-on-error (trunk, https://trac.osgeo.org/grass/changeset/60289) 10 năm trước cách đây
file_name.c 87da4ee948 libgis: dox cosmetics 12 năm trước cách đây
find_etc.c 09b7db1dd9 doxygen errors fixed 12 năm trước cách đây
find_file.c 59b9e07e7f libgis: When searching the mapset search path, find the first map, not the first map with the requested element (trunk, https://trac.osgeo.org/grass/changeset/61840 + https://trac.osgeo.org/grass/changeset/61853) 10 năm trước cách đây
find_rast.c dc7822aafa G_find_grid3 moved from raster3d to gislib 13 năm trước cách đây
find_rast3d.c dc7822aafa G_find_grid3 moved from raster3d to gislib 13 năm trước cách đây
find_vect.c 3e65212312 libgis: debug G_find_raster/vector() 15 năm trước cách đây
flate.c fd25af5813 Enable zlib compression by default (set GRASS_INT_ZLIB=0 to use RLE); Allow zlib compression to be set via GRASS_ZLIB_LEVEL environment variable; libgis: -1 is a valid compression level (Z_DEFAULT_COMPRESSION) (backport from trunk, https://trac.osgeo.org/grass/changeset/61380 + https://trac.osgeo.org/grass/changeset/61420 + https://trac.osgeo.org/grass/changeset/61422 + https://trac.osgeo.org/grass/changeset/61500) 10 năm trước cách đây
fmode.c 1acdd0be01 Build system clean-up 16 năm trước cách đây
geodesic.c c7041e9ca3 Remove unnecessary return values 16 năm trước cách đây
geodist.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
get_ellipse.c f8f6ee0284 A correction of plural form text strings to use the new ngettext support 11 năm trước cách đây
get_projinfo.c ee3ac8fb3d libgis: G_get_projepsg() and G_database_epsg_code() 11 năm trước cách đây
get_window.c 09b7db1dd9 doxygen errors fixed 12 năm trước cách đây
getl.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
gis_local_proto.h faacfd2eb2 libgis: add G_mapset_path() 12 năm trước cách đây
gisbase.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
gisdbase.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
gisinit.c fd25af5813 Enable zlib compression by default (set GRASS_INT_ZLIB=0 to use RLE); Allow zlib compression to be set via GRASS_ZLIB_LEVEL environment variable; libgis: -1 is a valid compression level (Z_DEFAULT_COMPRESSION) (backport from trunk, https://trac.osgeo.org/grass/changeset/61380 + https://trac.osgeo.org/grass/changeset/61420 + https://trac.osgeo.org/grass/changeset/61422 + https://trac.osgeo.org/grass/changeset/61500) 10 năm trước cách đây
gislib.dox d4c552ac46 gislib/dox: cmd line parsing doc updated, modernized and polished 11 năm trước cách đây
gislib_cmdline_parsing.dox 8b788eeefb doxygen minor fix 10 năm trước cách đây
handler.c ee734e99fb gislib: document error handlers 13 năm trước cách đây
home.c b0ddd170bc doxygen header cosmetics 11 năm trước cách đây
ilist.c 5120adf63f Fixed potential memory leak in integer list init, added new and free ilist functions. 11 năm trước cách đây
intersect.c 066481a50a libgis: fix G_intersect_line_segments() (sync to trunk) 10 năm trước cách đây
is.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 năm trước cách đây
key_value1.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) 13 năm trước cách đây
key_value2.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) 13 năm trước cách đây
key_value3.c e841d781ac libgis: be more verbose when opening a file fails 11 năm trước cách đây
key_value4.c 4a29361f14 Generate fatal errors rather than returning a status, for: 15 năm trước cách đây
legal_name.c 281d0a2dee G_legal_filename: message merged from trunk, https://trac.osgeo.org/grass/changeset/62450 10 năm trước cách đây
line_dist.c c7041e9ca3 Remove unnecessary return values 16 năm trước cách đây
list.c 4527ac8ebf libgis: rename env-related G used in the modules to G_ 11 năm trước cách đây
ll_format.c ab082da4e0 Add "const" where appropriate to libgis return types 16 năm trước cách đây
ll_scan.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 năm trước cách đây
locale.c 8bfddec7d0 Introduce ngettext support and a new macro _n for it 11 năm trước cách đây
location.c faacfd2eb2 libgis: add G_mapset_path() 12 năm trước cách đây
lrand48.c 69e2fb6d6f RNG backport: Add portable lrand48 (etc) implementation (https://trac.osgeo.org/grass/changeset/61350); Generate fatal error if requesting values without having seeded (https://trac.osgeo.org/grass/changeset/61352); Replace rand/random/lrand48/etc with lib/gis random number functions (https://trac.osgeo.org/grass/changeset/61415); Use lib/gis PRNG for readcell() (https://trac.osgeo.org/grass/changeset/61416) 10 năm trước cách đây
ls.c 8bddad327f revert https://trac.osgeo.org/grass/changeset/53207 with better fix 12 năm trước cách đây
ls_filter.c 2468c5048d G_ls_*_filter: Case-insensitive option (merge from trunk https://trac.osgeo.org/grass/changeset/62448) 10 năm trước cách đây
mach_name.c 474402cb81 Various MinGW bugfixes from Rosen Matev 16 năm trước cách đây
make_loc.c 311392ebcb libgis: G_make_location() - check for legal name 12 năm trước cách đây
make_mapset.c 4527ac8ebf libgis: rename env-related G used in the modules to G_ 11 năm trước cách đây
mapcase.c 09b7db1dd9 doxygen errors fixed 12 năm trước cách đây
mapset.c faacfd2eb2 libgis: add G_mapset_path() 12 năm trước cách đây
mapset_msc.c 623c7b94ec simplify wingrass LFS 12 năm trước cách đây
mapset_nme.c 45902d14cb Minor doxygen sync to trunk 10 năm trước cách đây
mkstemp.c 74fb4e5301 Add parentheses to avoid warning 11 năm trước cách đây
myname.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) 14 năm trước cách đây
named_colr.c 671e44225a Fix formatting of array initialisers 17 năm trước cách đây
new_des db49180dd7 welcome to GRASS 7.0.svn 17 năm trước cách đây
nl_to_spaces.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 năm trước cách đây
nme_in_mps.c 45902d14cb Minor doxygen sync to trunk 10 năm trước cách đây
open.c d6254989a3 libgis: do not open non-existing files; add warning when opening a file failed (trunk, https://trac.osgeo.org/grass/changeset/60149) 10 năm trước cách đây
open_misc.c d6254989a3 libgis: do not open non-existing files; add warning when opening a file failed (trunk, https://trac.osgeo.org/grass/changeset/60149) 10 năm trước cách đây
overwrite.c 8ae109e2b9 vectlib: very initial direct OGR write support (v.external.out) 14 năm trước cách đây
pager.c 1e26c862c8 Fix pager/mail functions 15 năm trước cách đây
parser.c 56c389823e libgis: cosmetics in static declarations (parser.c) 10 năm trước cách đây
parser_dependencies.c 4293ccf614 Backport parser_dependencies.c from trunk 10 năm trước cách đây
parser_help.c a64fb8b37a libgis: parser sync to trunk 10 năm trước cách đây
parser_html.c 736df106be manual: keyword index HTML'ized 10 năm trước cách đây
parser_interface.c 65eb6aeb10 parser: support --h and --help in wxGUI command line (trac https://trac.osgeo.org/grass/ticket/2152) 11 năm trước cách đây
parser_local_proto.h a82861b027 libgis: Backport https://trac.osgeo.org/grass/changeset/61351 10 năm trước cách đây
parser_rest.c a64fb8b37a libgis: parser sync to trunk 10 năm trước cách đây
parser_script.c f8aaa2e6c2 libgis: G__script(): generate valid python script 12 năm trước cách đây
parser_standard_options.c a64fb8b37a libgis: parser sync to trunk 10 năm trước cách đây
parser_wps.c b87e311e66 libgis parser_wps: ows:Abstract manual url update 10 năm trước cách đây
paths.c 623c7b94ec simplify wingrass LFS 12 năm trước cách đây
percent.c 6618b33b4f libgis: add G_progress() 13 năm trước cách đây
pi.h db49180dd7 welcome to GRASS 7.0.svn 17 năm trước cách đây
plot.c b52f487fda libgis: fix FPE error tolerance for plotting 11 năm trước cách đây
pole_in_poly.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
popen.c 770e798241 G_spawn_ex() expects descriptors as "int"s, not "char*". 15 năm trước cách đây
progrm_nme.c 5d366eb05b major gislib.dox update (still not complete, https://trac.osgeo.org/grass/changeset/37744) 16 năm trước cách đây
proj1.c 27ef98a139 remove unused PROJECTION_SP (merge from trunk, https://trac.osgeo.org/grass/changeset/62061) 10 năm trước cách đây
proj2.c 27ef98a139 remove unused PROJECTION_SP (merge from trunk, https://trac.osgeo.org/grass/changeset/62061) 10 năm trước cách đây
proj3.c 27ef98a139 remove unused PROJECTION_SP (merge from trunk, https://trac.osgeo.org/grass/changeset/62061) 10 năm trước cách đây
projections c7478c69d3 enable Geostationary Satellite View (merge from devbr6) 15 năm trước cách đây
put_window.c ebfd5088d1 dox: region (window) functions doc improvements 12 năm trước cách đây
putenv.c 5c454c7ad2 gislib: cosmetics in doxygen documentation 14 năm trước cách đây
radii.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
rd_cellhd.c 1dba9b62d4 dox: fixing several doxygen warnings (wrong file names, typos, lt gt chars) 12 năm trước cách đây
remove.c 623c7b94ec simplify wingrass LFS 12 năm trước cách đây
rename.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) 14 năm trước cách đây
rhumbline.c c7041e9ca3 Remove unnecessary return values 16 năm trước cách đây
rotate.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 năm trước cách đây
seek.c 7cc2db1d68 libgis: cosmetics in doxygen desc 14 năm trước cách đây
set_window.c ebfd5088d1 dox: region (window) functions doc improvements 12 năm trước cách đây
short_way.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây
sleep.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 năm trước cách đây
snprintf.c 06ad8336d1 Fix G_snprintf() to allow for bug in Windows vsnprintf() 15 năm trước cách đây
spawn.c a049ea0396 Close handles after spawning child process 13 năm trước cách đây
state27 db49180dd7 welcome to GRASS 7.0.svn 17 năm trước cách đây
state83 db49180dd7 welcome to GRASS 7.0.svn 17 năm trước cách đây
strings.c 0fc454e252 Convert MONITOR_*_*FILE variable names to upper case (trunk, https://trac.osgeo.org/grass/changeset/60203 + https://trac.osgeo.org/grass/changeset/60204) 10 năm trước cách đây
tempfile.c 2f2f700343 gislib: add some extra debug messages 12 năm trước cách đây
timestamp.c 6ad43043a2 Timestamp support for vector layers added. 13 năm trước cách đây
token.c 7dbe730f2b libgis: fix and simplify G_tokenize() 10 năm trước cách đây
trim_dec.c 8c1f95a84c Remove bogus return value from G_trim_decimal() 15 năm trước cách đây
units.c 1523d26058 r.profile: feet support (merge from trunk, https://trac.osgeo.org/grass/changeset/62035,r62046,r62060) 10 năm trước cách đây
user_config.c 623c7b94ec simplify wingrass LFS 12 năm trước cách đây
verbose.c 103dfa27fc libgis: fix G_set_verbose (missing initialization) 11 năm trước cách đây
view.c c7041e9ca3 Remove unnecessary return values 16 năm trước cách đây
whoami.c 5d366eb05b major gislib.dox update (still not complete, https://trac.osgeo.org/grass/changeset/37744) 16 năm trước cách đây
win32_pipes.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 năm trước cách đây
wind_2_box.c 88abdb3fab Eliminate G_copy(); replace with memcpy() or assignment 15 năm trước cách đây
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) 16 năm trước cách đây
wind_in.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 năm trước cách đây
wind_limits.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 năm trước cách đây
wind_overlap.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 năm trước cách đây
wind_scan.c 27ef98a139 remove unused PROJECTION_SP (merge from trunk, https://trac.osgeo.org/grass/changeset/62061) 10 năm trước cách đây
window_map.c e028cffb66 gislib: define G_unset_window() 14 năm trước cách đây
worker.c e4164ed7e4 Add --with-pthread etc to configure script 16 năm trước cách đây
wr_cellhd.c b96b38bfb6 Fixed wrong precision of top and bottom region storage. 13 năm trước cách đây
writ_zeros.c c7041e9ca3 Remove unnecessary return values 16 năm trước cách đây
xdr.c e493bb768f Add XDR functions for int 12 năm trước cách đây
zero.c b06b8a0105 vectorlib: 16 năm trước cách đây
zone.c bc702cc96b major gislib.dox update (still not complete) 16 năm trước cách đây

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.