SHLIB_LINK_F = ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a @SHLIB_LINK@
# Extra files to remove during 'make clean'
-EXTRA_CLEAN=$(SQL_OBJS) legacy_uninstall.sql
+EXTRA_CLEAN=$(SQL_OBJS) \
+ uninstall_postgis.sql \
+ uninstall_legacy.sql \
+ postgis_upgrade_20_21.sql.in \
+ postgis_upgrade_20_21.sql \
+ postgis_upgrade_21_minor.sql
# PGXS information
PG_CONFIG = @PGCONFIG@
* Caller is responsible for freeing.
* Currently only prints first two dimensions.
*/
-static char*
-nd_stats_to_grid(const ND_STATS *stats)
-{
- char *rv;
- int j, k;
-// int ndims = (int)roundf(stats->ndims);
- int sizex = (int)roundf(stats->size[0]);
- int sizey = (int)roundf(stats->size[1]);
- stringbuffer_t *sb = stringbuffer_create();
-
- for ( k = 0; k < sizey; k++ )
- {
- for ( j = 0; j < sizex; j++ )
- {
- stringbuffer_aprintf(sb, "%3d ", (int)roundf(stats->value[j + k*sizex]));
- }
- stringbuffer_append(sb, "\n");
- }
-
- rv = stringbuffer_getstringcopy(sb);
- stringbuffer_destroy(sb);
- return rv;
-}
+// static char*
+// nd_stats_to_grid(const ND_STATS *stats)
+// {
+// char *rv;
+// int j, k;
+// int sizex = (int)roundf(stats->size[0]);
+// int sizey = (int)roundf(stats->size[1]);
+// stringbuffer_t *sb = stringbuffer_create();
+//
+// for ( k = 0; k < sizey; k++ )
+// {
+// for ( j = 0; j < sizex; j++ )
+// {
+// stringbuffer_aprintf(sb, "%3d ", (int)roundf(stats->value[j + k*sizex]));
+// }
+// stringbuffer_append(sb, "\n");
+// }
+//
+// rv = stringbuffer_getstringcopy(sb);
+// stringbuffer_destroy(sb);
+// return rv;
+// }
/** Expand the bounds of target to include source */
{
if ( PG_NARGS() == 3 )
{
+ PG_RETURN_DATUM(
DirectFunctionCall3(gserialized_estimated_extent,
PG_GETARG_DATUM(0),
PG_GETARG_DATUM(1),
- PG_GETARG_DATUM(2));
+ PG_GETARG_DATUM(2)));
}
else if ( PG_NARGS() == 2 )
{
+ PG_RETURN_DATUM(
DirectFunctionCall2(gserialized_estimated_extent,
PG_GETARG_DATUM(0),
- PG_GETARG_DATUM(1));
- }
- else
- {
- elog(ERROR, "geometry_estimated_extent() called with wrong number of arguments");
- PG_RETURN_NULL();
+ PG_GETARG_DATUM(1)));
}
+
+ elog(ERROR, "geometry_estimated_extent() called with wrong number of arguments");
+ PG_RETURN_NULL();
}
DROP FUNCTION IF EXISTS st_geometry_cmp(geometry, geometry);
DROP FUNCTION IF EXISTS SnapToGrid(geometry, float8, float8);
+DROP FUNCTION IF EXISTS geometry_gist_sel_2d (internal, oid, internal, int4);
+DROP FUNCTION IF EXISTS geometry_gist_joinsel_2d(internal, oid, internal, smallint);
+DROP FUNCTION IF EXISTS geography_gist_selectivity (internal, oid, internal, int4);
+DROP FUNCTION IF EXISTS geography_gist_join_selectivity(internal, oid, internal, smallint);
+
DROP FUNCTION IF EXISTS ST_AsBinary(text); -- deprecated in 2.0
DROP FUNCTION IF EXISTS postgis_uses_stats(); -- deprecated in 2.0