* those points, back over to the bounds.
* http://trac.osgeo.org/postgis/ticket/1292
*/
-int ptarray_nudge_geodetic(POINTARRAY *pa)
+static int
+ptarray_nudge_geodetic(POINTARRAY *pa)
{
int i;
POINT4D p;
int altered = LW_FALSE;
int rv = LW_FALSE;
static double tolerance = 1e-10;
- if ( ! pa ) return;
+
+ if ( ! pa )
+ lwerror("ptarray_nudge_geodetic called with null input");
+
for(i = 0; i < pa->npoints; i++ )
{
getPoint4d_p(pa, i, &p);
* those points, back over to the bounds.
* http://trac.osgeo.org/postgis/ticket/1292
*/
-int lwgeom_nudge_geodetic(LWGEOM *geom)
+int
+lwgeom_nudge_geodetic(LWGEOM *geom)
{
int type;
int i = 0;
for ( i = 0; i < col->ngeoms; i++ )
{
- rv = (rv == LW_TRUE ? rv : ptarray_nudge_geodetic(col->geoms[i]));
+ rv = (rv == LW_TRUE ? rv : lwgeom_nudge_geodetic(col->geoms[i]));
}
return rv;
}
static void
usage()
{
- printf(_("RELEASE: %s (%s)\n"), POSTGIS_VERSION, RCSID );
+ printf(_("RELEASE: %s (%s)\n"), POSTGIS_VERSION, P2S_RCSID );
printf(_("USAGE: pgsql2shp [<options>] <database> [<schema>.]<table>\n"
" pgsql2shp [<options>] <database> <query>\n"
"\n"
#include "shpcommon.h"
#include "getopt.h"
-#define RCSID "$Id$"
+#define P2S_RCSID "$Id$"
/*
static void
usage()
{
- printf(_( "RELEASE: %s (r%s)\n" ), POSTGIS_VERSION, RCSID);
+ printf(_( "RELEASE: %s (r%s)\n" ), POSTGIS_VERSION, S2P_RCSID);
printf(_( "USAGE: shp2pgsql [<options>] <shapefile> [[<schema>.]<table>]\n"
"OPTIONS:\n" ));
printf(_( " -s [<from>:]<srid> Set the SRID field. Defaults to %d.\n"
#include "../liblwgeom/stringbuffer.h"
-#define RCSID "$Id$"
+#define S2P_RCSID "$Id$"
/* Number of digits of precision in WKT produced. */
static void
usage()
{
- printf("RCSID: %s RELEASE: %s\n", RCSID, POSTGIS_VERSION);
+ printf("RCSID: %s RELEASE: %s\n", S2P_RCSID, POSTGIS_VERSION);
printf("USAGE: shp2pgsql-gui [options]\n");
printf("OPTIONS:\n");
printf(" -U <username>\n");