- ST_Intersects(raster, geometry) behaves in the same manner as
ST_Intersects(geometry, raster).
+* Deprecated signatures
+
+ - ST_Estimated_Extent renamed to ST_EstimatedExtent
+
* New Features *
- ST_Segmentize(geography) (Paul Ramsey / OpenGeo)
<refentry id="ST_Estimated_Extent">
<refnamediv>
- <refname>ST_Estimated_Extent</refname>
+ <refname>ST_EstimatedExtent</refname>
<refpurpose>Return the 'estimated' extent of the given spatial table.
The estimated is taken from the geometry column's statistics. The
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
- <funcdef>box2d <function>ST_Estimated_Extent</function></funcdef>
+ <funcdef>box2d <function>ST_EstimatedExtent</function></funcdef>
<paramdef><type>text </type> <parameter>schema_name</parameter></paramdef>
<paramdef><type>text </type> <parameter>table_name</parameter></paramdef>
<paramdef><type>text </type> <parameter>geocolumn_name</parameter></paramdef>
</funcprototype>
<funcprototype>
- <funcdef>box2d <function>ST_Estimated_Extent</function></funcdef>
+ <funcdef>box2d <function>ST_EstimatedExtent</function></funcdef>
<paramdef><type>text </type> <parameter>table_name</parameter></paramdef>
<paramdef><type>text </type> <parameter>geocolumn_name</parameter></paramdef>
</funcprototype>
<para>For PostgreSQL<8.0.0 statistics are gathered by
update_geometry_stats() and resulting extent will be exact.</para>
- <para>Availability: 1.0.0</para>
+ <para>Availability: 1.0.0</para>
+ <para>NOTE: this function was renamed from "ST_Estimated_Extent" in 2.1.0</para>
<para>&curve_support;</para>
</refsection>
<refsection>
<title>Examples</title>
- <programlisting>SELECT ST_Estimated_extent('ny', 'edges', 'the_geom');
+ <programlisting>SELECT ST_EstimatedExtent('ny', 'edges', 'the_geom');
--result--
BOX(-8877653 4912316,-8010225.5 5589284)
-SELECT ST_Estimated_Extent('feature_poly', 'the_geom');
+SELECT ST_EstimatedExtent('feature_poly', 'the_geom');
--result--
BOX(-124.659652709961 24.6830825805664,-67.7798080444336 49.0012092590332)
</programlisting>
-- ESTIMATED_EXTENT( <schema name>, <table name>, <column name> )
-----------------------------------------------------------------------
-- Availability: 1.2.2
+-- Deprecation in 2.1.0
CREATE OR REPLACE FUNCTION ST_estimated_extent(text,text,text) RETURNS box2d AS
'MODULE_PATHNAME', 'geometry_estimated_extent'
LANGUAGE 'c' IMMUTABLE STRICT SECURITY DEFINER;
+-- Availability: 2.1.0
+CREATE OR REPLACE FUNCTION ST_EstimatedExtent(text,text,text) RETURNS box2d AS
+ 'MODULE_PATHNAME', 'geometry_estimated_extent'
+ LANGUAGE 'c' IMMUTABLE STRICT SECURITY DEFINER;
+
-----------------------------------------------------------------------
-- ESTIMATED_EXTENT( <table name>, <column name> )
-----------------------------------------------------------------------
-- Availability: 1.2.2
+-- Deprecation in 2.1.0
CREATE OR REPLACE FUNCTION ST_estimated_extent(text,text) RETURNS box2d AS
'MODULE_PATHNAME', 'geometry_estimated_extent'
LANGUAGE 'c' IMMUTABLE STRICT SECURITY DEFINER;
+-- Availability: 2.1.0
+CREATE OR REPLACE FUNCTION ST_EstimatedExtent(text,text) RETURNS box2d AS
+ 'MODULE_PATHNAME', 'geometry_estimated_extent'
+ LANGUAGE 'c' IMMUTABLE STRICT SECURITY DEFINER;
+
-----------------------------------------------------------------------
-- FIND_EXTENT( <schema name>, <table name>, <column name> )
-----------------------------------------------------------------------
-- #877, #818
create table t(g geometry);
-select '#877.1', st_estimated_extent('t','g');
+select '#877.1', ST_EstimatedExtent('t','g');
analyze t;
-select '#877.2', st_estimated_extent('public', 't','g');
+select '#877.2', ST_EstimatedExtent('public', 't','g');
+select '#877.2.deprecated', ST_Estimated_Extent('public', 't','g');
insert into t(g) values ('LINESTRING(-10 -50, 20 30)');
-select '#877.3', st_estimated_extent('t','g');
+select '#877.3', ST_EstimatedExtent('t','g');
analyze t;
-select '#877.4', st_estimated_extent('t','g');
+select '#877.4', ST_EstimatedExtent('t','g');
truncate t;
-select '#818.1', st_estimated_extent('t','g');
+select '#818.1', ST_EstimatedExtent('t','g');
+select '#818.1.deprecated', ST_Estimated_Extent('t','g');
drop table t;
-- #1320
#877.1|
NOTICE: "public"."t"."g" is empty or not analyzed
#877.2|
+NOTICE: "public"."t"."g" is empty or not analyzed
+#877.2.deprecated|
NOTICE: "<current>"."t"."g" is empty or not analyzed
#877.3|
#877.4|BOX(-10 -50,20 30)
NOTICE: "<current>"."t"."g" is empty or not analyzed
#818.1|
+NOTICE: "<current>"."t"."g" is empty or not analyzed
+#818.1.deprecated|
<#1320>
#1320.geog.1|MULTIPOLYGON|4326
#1320.geom.1|MULTIPOLYGON|4326