<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks to Steve Bowden for this solution to my little problem.<br>
<br>
All that was required was the following to be added within the
METADATA tag of each layer definition, i.e.<br>
<pre wrap="">LAYER
        NAME ...
        STATUS ....
        METADATA
         "wms_title" "sewerage_lines"
         <b>"wms_extent" "422822.62475305 7241085.61869966 444489.23175759 7256085.52572127"</b>
        END
        
        CONNECTIONTYPE ....
        DATA ....
        
END
</pre>
<br>
Thanks again Steve<br>
<br>
<br>
ORIGINAL MESSAGE POST with screen shot<br>
<blockquote cite="mid200510140847.02100.steveb@bundaberg.qld.gov.au"
type="cite">
<blockquote type="cite">
<pre wrap="">Hello List,
I have been working with mapserver for a little while now. I
currently have a Linux FC4 box with mapserv 4.6 connecting to a
Postgres(8.0.1)/PostGIS(1.0) backend. I have had no trouble
implementing all the componets, and I am even having success with
implementing a HTTP front end and am enjoying the experience. The only
issue I have had, and have neglected up until now, is the problem of
extents concerning the dataset described in the mapfile. I have checked
the projection (AMG zone 56) using ArcGIS to make sure that I have the
correct epsg projection (epsg=20256), and it seems right. So where can
I go from here. I have attached a screen shot of a MapInfo connection
to my WMS, and the corresponding mapfile. Any suggestions, websites etc
will be much appreciated.
I have searched the archives of this list, and have found similar
issues, though no solution has been posted. So in the spirit of this
online community, i will post a complete solution when one is obtained,
including links to resources that helped.
Thanks in advance
Andrew Smith
Masters Candidate
University of Wollongong
/********************************************
MAPFILE
NAME "WMS_TEST"
STATUS ON
UNITS METERS
EXTENT 287899 6156549 304702 6171738
WEB
IMAGEPATH "..."
IMAGEURL "..."
LOG "..."
METADATA
"wms_title" "WMS TEST BOX"
"wms_onlineresource" <a class="moz-txt-link-rfc2396E"
href="http://...">"http://..."</a>
"wms_srs" "EPSG:20256"
END
PROJECTION
"init=epsg:20256"
END
LAYER
NAME Minamurra_Boundary
METADATA
"wms_title" "Minamurra Boundary"
"wms_abstract" "This dataset describes the boundary of the
Minamurra River Area"
END
PROJECTION
"init=epsg:20256"
END
CONNECTIONTYPE postgis
CONNECTION " <user> <dbname> <host> <port>"
DATA "the_geom from coast"
STATUS ON
TYPE POLYGON
CLASS
OUTLINECOLOUR 0 0 0
COLOR 3 190 0
END
END
END
********************************************/
Find attached the screen shot of MapInfo WMS Connection
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>