[TinyOWS-dev] Problems with showing a WFS feature with OpenLayers

Ermond Parllaku erndal02 at hotmail.com
Wed Apr 11 12:26:22 EST 2012


I removed the prefix tows and I still have the same issue. The proxy I think is configured correctly
OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";
because the URL: http://localhost:81/cgi-bin/proxy.cgi open in browser gets me to the OpenLayers home page (I think this is the way how I can test it in Windows),
and I use python 2.72.

I tried almost everything in that small code of JS which configures the WFS layer. The table in PostGIS has the SRS 32634 (checked even from QGIS) and made the code almost the same like in the example at http://mapserver.org/trunk/tinyows/openlayershowtotransactional.html
I just don't know what might be still wrong in my case. Can you please suggest me any other configuration or something else that might cause my problem?

I repeat that I am almost completely new in Apache and I have had some previous experience in OL and MS4W. The GetFeature query from the browser returns all the data of the table in GML format, so I don't think it might be an issue with the database. I have a layer (WMS) that returns the right data but the WFS just doesn't return any features at all. The code that I have at the moment to configure the WFS layer is like this:

    wfs = new OpenLayers.Layer.Vector("GLP_Zone", {
        //styleMap: styles,
        strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
        projection: new OpenLayers.Projection("EPSG:32634"),
        //maxExtent: new OpenLayers.Bounds(372272, 4512142, 381165, 4505108),        
        protocol: new OpenLayers.Protocol.WFS({
            version: "1.1.0",
            srsName: "EPSG:32634",
            url: "",
            featureNS: "http://www.tinyows.org/",
            featureType: "GLP_Zone",
            //featurePrefix: "tows",
            geometryName: "the_geom",
            schema: ""

and the xml file to configure the TinyOWS (config.xml) is like this

<tinyows online_resource=""
  <pg host="localhost" user="postgres" password="postgres" dbname="db1" port="5432"/>
  <metadata name="TinyOWS Server"
         title="Testing Olives" />

  <layer retrievable="1"
         title="GLP_Zone" />

I have tried to change the ns_uri (and the featureNS) to but with no results

Thanks a lot for further help!

From: erndal02 at hotmail.com
To: tinyows-dev at lists.maptools.org
Date: Wed, 11 Apr 2012 08:38:56 +0200
Subject: Re: [TinyOWS-dev] Problems with showing a WFS feature with OpenLayers


First of all I would like to thank you for the fast answer. 
I have tried it even without the prefix and I based my code mainly in the sample that you provided too. I am not sure about the featureNS what should I put there, and why is it needed. Maybe the mistake is there. Anyway I tried to comment out the featureNS but still no results. At the moment I cannot make any further trials since unfortunately I cannot connect to the pc that I am configuring the map.
Don't know where else might be the problem.


From: olivier.courtin at oslandia.com
Date: Wed, 11 Apr 2012 08:25:26 +0200
To: tinyows-dev at lists.maptools.org
Subject: Re: [TinyOWS-dev] Problems with showing a WFS feature with	OpenLayers

On Apr 11, 2012, at 8:17 AM, Ermond Parllaku wrote:
 So I guess the service is configured correctly.
Related to your description it is.
 It only should be a matter of JS code I have added or maybe any issues with the versions I am using…

JS indeed is the problem.
      geometryName: "tows:the_geom",
Did you try without tows prefix there ?

Did you consider using this tutorial as an example ?http://mapserver.org/trunk/tinyows/openlayershowtotransactional.html            
--Olivier CourtinOslandia+33 977 217 501

TinyOWS-dev mailing list
TinyOWS-dev at lists.maptools.org

TinyOWS-dev mailing list
TinyOWS-dev at lists.maptools.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/tinyows-dev/attachments/20120411/24b5d623/attachment.htm 

More information about the TinyOWS-dev mailing list