[mapserver-dev] Configuring TinyOWS x1.1.1

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue Jul 28 12:24:17 PDT 2015


Hello TinyOWS team,

I've compiled the latest TinyOWS release, 1.1.1, on Windows, but I am 
having trouble testing it (getting it to successfully execute a WFS-T 
transaction).  Here is more information:

Environment
-----------

- Windows
- compiled against: 	PostgreSQL 9.4.4
  			libxml2-2.9.2
			libiconv 1.11.1
			regex 0.12
			fcgi 2.4.0

Testing
-------

- Used tinyows.js and tinyows.html from 
http://www.mapserver.org/tinyows/openlayershowto.html
- pointing to OpenLayers 2.13.1 instance (assumed OL3 would have no 
chance to work with the older testing steps)

config.xml
----------

<tinyows online_resource="http://127.0.0.1:8081/cgi-bin/tinyows.exe"
          schema_dir="/usr/local/share/tinyows/schema/">

<pg host="localhost" user="postgres" password="postgres" 
dbname="tinyows" port="5437"/>

<metadata name="TinyOWS Server"
           title="TinyOWS Server - WFS-T Frida Service" />

<contact name="TinyOWS Server"
          site="http://www.tinyows.org/"
          email="tinyows-users at lists.maptools.org" />

<layer retrievable="1"
        writable="1"
        ns_prefix="tows"
        ns_uri="http://www.tinyows.org/"
        name="frida"
        title="Frida Parks" />

</tinyows>

tinyows.exe --check
-------------------

C:\ms4w>tinyows --check
TinyOWS version:   1.1.0
FCGI support:      Yes
Config File Path:  C:/ms4w/apps/tinyows/config.xml (TinyOWS XML)
PostGIS Version:   2.1.7
PostGIS dsn:       host=localhost user=postgres password=postgres 
dbname=tinyows port=5437

Output Encoding:   UTF-8
Database Encoding: UTF8
Schema dir:        /usr/local/share/tinyows/schema/
Display bbox:      Yes
Estimated extent:  No
Check schema:      Yes
Check valid geoms: Yes
Available layers:
  - public.frida (31467) -> tows:frida [RW]

Error Message
-------------

- after drawing a polygon, then clicking the 'save' button, the 
following message is displayed:

   "An error occured while operating the transaction"

Request
-------

If I check into what is the actual request being sent:

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" 
version="1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://www.tinyows.org/ 
http://127.0.0.1:8081/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=tows:frida"><wfs:Insert><feature:frida 
xmlns:feature="http://www.tinyows.org/"><feature:geom><gml:MultiSurface 
xmlns:gml="http://www.opengis.net/gml" 
srsName="EPSG:31467"><gml:surfaceMember><gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>3441587.5 
5798066.125 3443267.5 5797850.125 3442043.5 5797202.125 3441587.5 
5798066.125</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></feature:geom></feature:frida></wfs:Insert></wfs:Transaction>

Response
--------

If I check into the actual response returned:

<?xml version='1.0' encoding='UTF-8'?>
<ows:ExceptionReport
  xmlns='http://www.opengis.net/ows'
  xmlns:ows='http://www.opengis.net/ows'
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  xsi:schemaLocation='http://www.opengis.net/ows 
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'
  version='1.1.0' language='en'>
  <ows:Exception exceptionCode='InvalidParameterValue' locator='request'>
   <ows:ExceptionText>XML request isn't valid</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

Other notes
-----------

- Could it be the schema dir?  Where should that be set to, if so?



Let me know if anyone has any ideas for this.  Thanks,

-jeff









More information about the mapserver-dev mailing list