<br><font size=2><tt><br>
&gt; Hallgren Johan E wrote:<br>
&gt; &gt; Hello<br>
&gt; &gt; <br>
&gt; &gt; I have used the mapscript function getExtent for a layer, to
get the<br>
&gt; &gt; extent, that one was slow. Do you mean that the msOWSGetLayerExtent<br>
&gt; &gt; would be faster?<br>
&gt; &gt; <br>
&gt; &gt; Could it be possible to change the logic so the function I need
would<br>
&gt; &gt; run the msOWSGetLayerExtent instead?<br>
&gt; <br>
&gt; Johan / others,<br>
&gt; <br>
&gt; I'm no expert on this area of the code, but it definitely seems like
we<br>
&gt; ought to offer a mapscript mechanism that works like msOWSGetLayerExtent,<br>
&gt; using layer metadata if available.<br>
&gt; <br>
&gt; In the meantime Johan, if you already know your extents (as you would
have<br>
&gt; to for setting up OWS metadata on a layer) you could just modify your<br>
&gt; mapscript application to hardcode the extent or perhaps to pull it
manually<br>
&gt; from layer metadata.</tt></font>
<br>
<br><font size=2><tt>I think the Discussion &quot;PostGIS and MapScript
getExtent() function&quot;</tt></font>
<br><font size=2><tt>from july 2005 is related to this question.</tt></font>
<br><font size=2><tt>Examples: </tt></font>
<br><font size=2><tt>http://article.gmane.org/gmane.comp.gis.mapserver.user/12099</tt></font>
<br><font size=2><tt>http://article.gmane.org/gmane.comp.gis.mapserver.user/12100</tt></font>
<br>
<br><font size=2><tt>The Oracle-Metadata in USER_SDO_GEOM_METADATA is used
by the Oracle-Spatial-</tt></font>
<br><font size=2><tt>Indexes. Users cannot add features outside this extent
(without asking the DB-Admin </tt></font>
<br><font size=2><tt>to expand these values). </tt></font>
<br><font size=2><tt>Therefore this extent will often be *much* bigger
than the extent of </tt></font>
<br><font size=2><tt>existing real data's (and is often useless as an initial-extent
for a web-application).</tt></font>
<br>
<br><font size=2><tt>Benedikt</tt></font>
<br>