]> granicus.if.org Git - postgis/commitdiff
Better error reporting.
authorDavid Blasby <dblasby@gmail.com>
Tue, 30 Apr 2002 23:37:47 +0000 (23:37 +0000)
committerDavid Blasby <dblasby@gmail.com>
Tue, 30 Apr 2002 23:37:47 +0000 (23:37 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@143 b70326c6-7e19-0410-871a-916f4a2858ee

Makefile
postgis_transform.c

index 871c6596a3d18f45a008c21599a9f1feebc4f8f6..50152506c38686da11d6b07bbda0e6f23ee25494 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ endif
 test_db = geom_regress
 
 # set PG72 to 1 for postgres >= 7.2
-#PG72 = 1
+PG72 = 0
 
 # shared library parameters
 NAME=postgis
@@ -51,7 +51,7 @@ include $(top_srcdir)/src/Makefile.shlib
 
 $(NAME).sql: $(NAME).sql.in $(NAME)_gist_72.sql.in $(NAME)_gist.sql.in
        sed -e 's:@MODULE_FILENAME@:$(libdir)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME).sql.in > $@ 
-       if [ $(PG72) == 1 ]; then \
+       if [ $(PG72) -eq 1 ]; then \
                sed -e 's:@MODULE_FILENAME@:$(libdir)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME)_gist_72.sql.in >> $(NAME).sql; \
        else \
                sed -e 's:@MODULE_FILENAME@:$(libdir)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME)_gist.sql.in >> $(NAME).sql; \
index 285ca218ad0684f0093191acd50005ac4db513ab..3815e435b0801476be4a067bc8f74cb148a79792 100644 (file)
@@ -193,7 +193,7 @@ Datum transform_geom(PG_FUNCTION_ARGS)
                                {
                                        pfree(input_proj4); pfree(output_proj4);
                                        pj_free(input_pj); pj_free(output_pj);
-                                       elog(ERROR,"tranform: couldnt project point: %i (%s)",pj_errno,pj_errstr);
+                                       elog(ERROR,"tranform: couldnt project point: %i (%s)",pj_errno,pj_strerrno(pj_errno));
                                        PG_RETURN_NULL();       
                                }
                                if (output_pj->is_latlong)