<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19120">
</head>
<body>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="022361913-22092011">Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="022361913-22092011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="022361913-22092011">I can repeat this&nbsp;problem with Mapserver 6.0.1 on Windows Vista 32-bit.&nbsp; I defined one PostGIS test layer without metadata and GetCapabilities fails after
 a long waiting. With DEBUG 5 the last line in MS_ERRORFILE that appears is this</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="022361913-22092011">msPostGISLayerIsOpen called.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="022361913-22092011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="022361913-22092011">Adding &quot;wms_extent&quot; corrects the situation.&nbsp; Same mapfile does work on Linux and it&nbsp;used to work for me on Windows too with Mapserver 5.x.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="022361913-22092011"></span></font><font color="#0000ff" size="2" face="Arial"><span class="022361913-22092011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="022361913-22092011">-Jukka Rahkonen-</span></font></div>
<br>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" dir="ltr">
<div dir="ltr" lang="fi" class="OutlookMessageHeader" align="left">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>Lähettäjä:</b> Andreas Douvalis [mailto:anddreas2@yahoo.gr]
<br>
<b>Lähetetty:</b> 22. syyskuuta 2011 10:14<br>
<b>Vastaanottaja:</b> Rahkonen Jukka<br>
<b>Aihe:</b> Σχετ: [mapserver-users] Re: Mapserver 6 WMS / PostGIS Problem<br>
</font><br>
</div>
<div></div>
<div style="BACKGROUND-COLOR: #fff; FONT-FAMILY: arial, helvetica, sans-serif; COLOR: #000; FONT-SIZE: 10pt">
<div style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">
<div class="MsoNormal"><span style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt; mso-ansi-language: EN-GB" lang="EN-GB">No problem with pgsql</span><O:P></O:P></div>
<div class="MsoNormal"><span style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt; mso-ansi-language: EN-GB" lang="EN-GB"><br style="mso-special-character: line-break">
&lt;!--[if !supportLineBreakNewLine]--&gt;<br style="mso-special-character: line-break">
&lt;!--[endif]--&gt;<span><O:P></O:P></span></span></div>
<div class="MsoNormal"><span style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt; mso-ansi-language: EN-GB" lang="EN-GB"><span>It takes 78 ms the sql of the layer that it doesn't work with wms get map request.
<O:P></O:P></span></span></div>
<div class="MsoNormal"><span style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt; mso-ansi-language: EN-GB" lang="EN-GB"><O:P></O:P></span></div>
<div class="MsoNormal"><span style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt; mso-ansi-language: EN-GB" lang="EN-GB">Unfortunately
<span style="mso-spacerun: yes">&nbsp;</span>there is no debug error </span><span style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang="EN-US">to check the query that mapserver runs.&nbsp;</span><span style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 13.5pt; mso-ansi-language: EN-US" lang="EN-US"><O:P></O:P></span></div>
</div>
<div style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><br>
</div>
<div style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">
<div style="FONT-FAMILY: 'times new roman', 'new york', times, serif; FONT-SIZE: 12pt">
<font size="2" face="Arial">
<hr size="1">
<b><span style="FONT-WEIGHT: bold">Απο:</span></b> Rahkonen Jukka &lt;Jukka.Rahkonen@mmmtike.fi&gt;<br>
<b><span style="FONT-WEIGHT: bold">Προς:</span></b> 'anddreas2' &lt;anddreas2@yahoo.gr&gt;; &quot;'mapserver-users@lists.osgeo.org'&quot; &lt;mapserver-users@lists.osgeo.org&gt;<br>
<b><span style="FONT-WEIGHT: bold">Στάλθηκε:</span></b> 9:32 π.μ. Πέμπτη, 22 Σεπτεμβρίου 2011<br>
<b><span style="FONT-WEIGHT: bold">Θεμα:</span></b> Re: [mapserver-users] Re: Mapserver 6 WMS / PostGIS Problem<br>
</font><br>
Hi,<br>
<br>
Basically it means that the SQL query for getting the extents of your layer is slow.<br>
Set timing on with \timing on in your psql window and run query<br>
select st_extent(geom) from titles;<br>
<a href="http://postgis.refractions.net/docs/ST_Extent.html" target="_blank">http://postgis.refractions.net/docs/ST_Extent.html</a><br>
How long does it take? Do vacuum analyze for the table and try again to see if there has been some trouble with indexes.<br>
Anyway, it is always faster to get extents from the metadata line than from PostGIS, but normally it should not take very long. For me it takes 1500 ms with a table of 300000 polygons.<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
<br>
&gt; -----Alkuperäinen viesti-----<br>
&gt; Lähettäjä: <a href="mailto:mapserver-users-bounces@lists.osgeo.org" ymailto="mailto:mapserver-users-bounces@lists.osgeo.org">
mapserver-users-bounces@lists.osgeo.org</a> <br>
&gt; [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" ymailto="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] Puolesta anddreas2<br>
&gt; Lähetetty: 22. syyskuuta 2011 8:52<br>
&gt; Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org" ymailto="mailto:mapserver-users@lists.osgeo.org">
mapserver-users@lists.osgeo.org</a><br>
&gt; Aihe: [mapserver-users] Re: Mapserver 6 WMS / PostGIS Problem<br>
&gt; <br>
&gt; I found the solution:<br>
&gt; <br>
&gt; Just set THE wms_extent METADATA in the layer section and it <br>
&gt; works.&nbsp; Without<br>
&gt; Layers wms_extent it crashes.<br>
&gt; <br>
&gt; (Jesus, I spent three days of my life for this stupid thing. <br>
&gt; I tested with<br>
&gt; all versions of postgis (1.5, 1.4) postgresql (8.4,9.0,9.1). <br>
&gt; I am think it<br>
&gt; is ms4w problem).<br>
&gt; <br>
&gt; --<br>
&gt; View this message in context: <br>
&gt; <a href="http://osgeo-org.1803224.n2.nabble.com/Mapserver-6-WMS-PostGIS" target="_blank">
http://osgeo-org.1803224.n2.nabble.com/Mapserver-6-WMS-PostGIS</a><br>
&gt; -Problem-tp6387007p6819004.html<br>
&gt; Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org" ymailto="mailto:mapserver-users@lists.osgeo.org">
mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">
http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt; <br>
<br>
</div>
</div>
</div>
</blockquote>
</body>
</html>