Hi,<br><br>I&#39;m trying to calculate a minimum bbox/extent for a group of polygons with a similar attribute.&nbsp; For this specific case, I am trying to find a bbox/extent for all of the voting precincts within the same county.
<br><br>here is the sql I&#39;m executing:<br>=====================<br>select<br>distinct<br>&nbsp;&nbsp;&nbsp; extent(the_geom) as the_extent<br>from<br>&nbsp;&nbsp;&nbsp; shp_precincts<br>where<br>&nbsp;&nbsp;&nbsp; county_id = 72<br>;<br>=====================<br>

<br>&#39;the_geom&#39; is a polygon representing a voting precinct, and the where clause subsets to all voting precincts belonging to a specific county.&nbsp; I get the following error which I don&#39;t understand or know how to correct:
<br><br>=====================<br>ERROR:&nbsp; could not identify an ordering operator for type box2d<br>HINT:&nbsp; Use an explicit ordering operator or modify the query.<br>=====================<br>

<br>Any help is appreciated in resolving this.&nbsp; What I ultimately want to do is have a result set that has a bounding box for each county based on the polygons of precincts that belong to that county.<br clear="all"><br>
tia,<br>Matt<br>-- <br>It is from the wellspring of our despair and the places that we are broken that we come to repair the world.<br>-- Murray Waas