[TinyOWS-dev] Error invalid Geometry

Olivier Courtin olivier.courtin at gmail.com
Sun May 22 17:41:47 EST 2011


On May 23, 2011, at 12:22 AM, Denis Rykov wrote:

Denis,

> Hi Oliver, yes rc2.

Ok,
Could you try with latest r556 ?


> <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs"  
> service="WFS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs 
>  http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <wfs:Insert>
> <feature:temp xmlns:feature="http://nextgis.org/sf">
> <feature:wkb_geometry>
> <gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326">
> <gml:coordinates decimal="." cs="," ts="  
> ">39.139692041022,57.214647880166</gml:coordinates>
> </gml:Point>
> </feature:wkb_geometry>
> <feature:name>New point</feature:name>
> </feature:temp>
> </wfs:Insert>
> </wfs:Transaction>
>
> Does point layer could be invalid? I think that validation procedure  
> is used only for polygonal layers.

You're right Point geometry nor Linestring cannot be SFS invalid.


i've done on my latest trunk version these two tests upon your request,
they are both fine...

SELECT ST_AsEWKT(St_GeomFromGml('<gml:Point xmlns:gml="http://www.opengis.net/gml 
" srsName="EPSG:4326">
<gml:coordinates decimal="." cs="," ts="  
">39.139692041022,57.214647880166</gml:coordinates>
</gml:Point>'));
                     st_asewkt
--------------------------------------------------
  SRID=4326;POINT(39.139692041022 57.214647880166)


and

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS"  
version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd 
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Insert>
<sf:PrimitiveGeoFeature xmlns:sf="http://cite.opengeospatial.org/gmlsf">
<sf:pointProperty>
<gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326">
<gml:coordinates decimal="." cs="," ts="  
">39.139692041022,57.214647880166</gml:coordinates>
</gml:Point>
</sf:pointProperty>
<sf:intProperty>4</sf:intProperty>
<sf:measurand>4</sf:measurand>
<sf:decimalProperty>4</sf:decimalProperty>
</sf:PrimitiveGeoFeature>
</wfs:Insert>
</wfs:Transaction>



So i don't yet understand why you get an error, with such a request,
  - Could you provide the TinyOWS --check output  ?
  - Could you activate log with log_level 8 (sql query) and provide  
the latests queries performed ?


Thanks

--
Olivier


More information about the TinyOWS-dev mailing list