This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to branch master in repository librttopo.
commit 39bbcf5d72d02c09917d022e685c63a406347518 Author: Bas Couwenberg <[email protected]> Date: Sat Apr 30 01:13:21 2016 +0200 Imported Upstream version 1.0.0~rc1 --- Makefile.am | 2 +- README.md | 21 ++++++++++----------- doc/DATASTORES.md | 4 ++++ src/rtprint.c | 6 +++--- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/Makefile.am b/Makefile.am index f80dd04..3c692ed 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = src headers EXTRA_DIST = makefile.vc nmake.opt \ - README.md g_serialized.txt + README.md g_serialized.txt doc/DATASTORES.md AUTOMAKE_OPTIONS = dist-zip foreign diff --git a/README.md b/README.md index ca59d01..bf8b402 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,17 @@ RT Topology Library ## About -This is a fork of PostGIS' liblwgeom, moved to its own repository to -allow for faster release cycles independent from PostGIS itself. +The RT Topology Library exposes an API to create and manage standard +(ISO 13249 aka SQL/MM) topologies using user-provided [data stores] +(doc/DATASTORES.md). -It is a work in progress, still not ready for use. +The code is derived from [PostGIS](http://postgis.net) liblwgeom +library enhanced to provide thread-safety, have less dependencies +and be independent from PostGIS release cycles. + +The RT Topology Library was funded by "Regione Toscana - SITA" +(CIG: 6445512CC1), which also funded many improvements in the +originating liblwgeom. Official code repository is https://git.osgeo.org/gogs/rttopo/librttopo. @@ -36,14 +43,6 @@ TODO ## Using -The rttopo library exposes an API to create and manage "standard" -topologies that use provided callbacks to take care of actual -data storage. - -The topology standard is based on what was provided by PostGIS at its -version 2.0.0, which in turn is based on ISO SQL/MM (ISO 13249) with -the addition of the "TopoGeometry" concept. - The public header for topology support is `librttopo.h`. The caller has to setup a backend interface (`RTT_BE_IFACE`) implementing all the required callbacks and will then be able to use the provided diff --git a/doc/DATASTORES.md b/doc/DATASTORES.md new file mode 100644 index 0000000..7bf5723 --- /dev/null +++ b/doc/DATASTORES.md @@ -0,0 +1,4 @@ +List of known data stores for librttopo +======================================= + +* spatialite 4.4.0 diff --git a/src/rtprint.c b/src/rtprint.c index 1d2450a..2874347 100644 --- a/src/rtprint.c +++ b/src/rtprint.c @@ -76,8 +76,8 @@ static void rtprint_normalize_latlon(const RTCTX *ctx, double *lat, double *lon) static char * rtdouble_to_dms(const RTCTX *ctx, double val, const char *pos_dir_symbol, const char *neg_dir_symbol, const char * format) { /* 3 numbers, 1 sign or compass dir, and 5 possible strings (degree signs, spaces, misc text, etc) between or around them.*/ - static int NUM_PIECES = 9; - static int WORK_SIZE = 1024; +#define NUM_PIECES 9 +#define WORK_SIZE 1024 char pieces[NUM_PIECES][WORK_SIZE]; int current_piece = 0; int is_negative = 0; @@ -341,7 +341,7 @@ static char * rtdouble_to_dms(const RTCTX *ctx, double val, const char *pos_dir_ { rterror(ctx, "Bad format, degrees (DD.DDD) number of digits was greater than our working limit."); } - if(deg_piece >= 0) + if(deg_piece >= 0) { sprintf(pieces[deg_piece], "%*.*f", deg_digits, deg_dec_digits, degrees); } -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/librttopo.git _______________________________________________ Pkg-grass-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

