[mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer

Wang, Ya Ya.Wang at vta.org
Thu Feb 2 14:29:15 PST 2012


Thank you, Olivier. 

The TinyOWS version is 1.0.0rc1. I can load both WFS and WMS layers in desktop clients such as QGIS and UDIG. I did activate the error log for TinyOWS. It is just that nothing got logged. My TinyOWS configuration is as follows:
<tinyows online_resource="http://127.0.0.1:8080/cgi-bin/tinyows.exe"
	 schema_dir="/towsschema/"
                 check_schema="0"
                 log="/mstmp/tows.log"
                 log_level="1">

#here /towsschema/  and /mstmp/ are alias I defined in apache configuration. I changed it into directory in windows as "C:\..\..", it makes no difference anyway. 

  <pg host="127.0.0.1" user="***" password="***" dbname="***" port="5432"/>

  <metadata name="TinyOWS Server"
	    title="TinyOWS Server - Demo Service" />

  <layer retrievable="1"
	 writable="0"
	 ns_prefix="tows"
	 ns_uri="http://127.0.0.1:8080/"
         schema="transit"
         name="lightrail"
         srid="2227"
         title="lightrail" />

  <layer retrievable="1"
	 writable="0"
	 ns_prefix="tows"
	 ns_uri="http://127.0.0.1:8080/"
         schema="transit"
         name="lrtstops"
         srid="2227"
         title="LRT Stops" />
</tinyows>

I thought the existence of multiple versions of python might be the problem. The python 2.5 is used by QGIS and GRASS, installed as part of the bundle in the OSGEO4W package. Another is a standalone installation of Python2.7, which is specified as the interpreter for Proxy.CGi. So I started to uninstall and reinstall python and QGIS multiple times. It didn't solve the problem. WFS layer is still not showing in OpenLayers while WMS layer is.  Somehow it did change the error message. 
Now I got "Internal Server Error". The APACHE server logged the following error:

[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] Premature end of script headers: tinyows.exe, referer: http://myserver:8080/openlayers/examples/tinyows.html
[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] Assertion failed: buf->buf, file src\\struct\\buffer.c, line 86\r, referer: http:// myserver:8080/openlayers/examples/tinyows.html
[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] \r, referer: http:// myserver:8080/openlayers/examples/tinyows.html
[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] This application has requested the Runtime to terminate it in an unusual way., referer: http:// myserver:8080/openlayers/examples/tinyows.html
[Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] Please contact the application's support team for more information.\r, referer: http:// myserver:8080/openlayers/examples/tinyows.html


I don't know how to use Firebug with OpenLayers to check the TinyOWS output stream yet. Once I figured it out, I will post that as well. 


Many Thanks!

Ya


______________________________________________
mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/9484cf76/attachment-0001.html

------------------------------

Message: 5
Date: Thu, 2 Feb 2012 08:57:52 +0100
From: Olivier Courtin <olivier.courtin at gmail.com>
Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in
	OpenLayer
To: "mapserver-users at lists.osgeo.org"
	<mapserver-users at lists.osgeo.org>
Message-ID:
	<CAD+A4Nz+q5m4DxjxFMRPAygx9c7eryfU705F330vXE+qRGgeXg at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya <Ya.Wang at vta.org> wrote:

Hi,

 I am a newbie of mapserver and other online mapping technologies.
> Recently, I have been struggling to load a TinyOWS WFS Layer to an
> OpenLayers map.  I set up proxy.cgi, which works fine. I checked TinyOWS
> using command ?tinyows ?check?, which also seems to be working. The page
> http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstopsdoesn?t return any error either.  I can also load a mapserver WMS layer
> into the OpenLayers Map with no problem. However, no feature from the WFS
> layer would show in the OpenLayers map.  Since both the WMS and WFS layers
> are of the same projection, which is EPSG:2227, I assume that the
> misspecification of projection is not likely to be the caprice here.   The
> following is the JavaScript I used and the response returned. Could someone
> help me find out what I did wrong? Many thanks in advance!
>
> **
>
> **
>

Several questions related to your issue:

- What TinyOWS version do you use ?

- What happen if you use QGIS as WMS/WFS client rather than OpenLayers ?

- Could you activate TinyOWS log and check if there's any error message in
it ?

- Could you use Firebug with OpenLayers to check the TinyOWS output stream ?


HTH,

-- 
Olivier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/dc523795/attachment.html

------------------------------

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


End of mapserver-users Digest, Vol 49, Issue 4
**********************************************



More information about the MapServer-users mailing list