<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Racked my brain on this last Friday, couldn't get anything to work from a Mapserver Mapfile.<br>
<br>
I can get the numbers from POSTGIS just fine via PGADMIN, but they come back as a BOX entity which MapServer doesn't seem to know what to do with.   I tried casting but got no matching records.<br>
<br>
MAPFILE fragment . . .<br>
<br>
DATA "the_geom from (<br>
<br>
                        select<br>
                                st_extent(sub1.the_geom)::geometry as the_geom<br>
                        from<br>
                                loc_last as sub1<br>
                        where<br>
                                vname in (%asset_id%)  -- vname in ('2293','2297')
<br>
<br>
                        ) as subquery using unique the_geom using srid=200068"<br>
<br>
In pgadmin, the above select returns polygon (per st_astext applied)  The subselect is grabbing a couple of points based on asset_id(s).<br>
<br>
Thanks<br>
<br>
bobb<br>
<br>
<br>
</body>
</html>