[TinyOWS-dev] Error invalid Geometry
Denis Rykov
rykovd at gmail.com
Mon May 23 08:19:35 EST 2011
Olivier, with r556 with and log_level 8 tinyows.log I've found the following
records:
[Mon May 23 17:01:29 2011] [SQL] BEGIN;
[Mon May 23 17:01:29 2011] [SQL] SELECT nextval('public.views_ogc_fid_seq');
[Mon May 23 17:01:29 2011] [SQL] SELECT ST_GeomFromGML('<gml:Point
xmlns:gml="http://www.opengis.net/gml" xmlns:feature="http://nextgis.org/sf"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
srsName="EPSG:4326"><gml:coordinates decimal="." cs="," ts="
">39.120465966804,57.288564708814</gml:coordinates></gml:Point>',0)
[Mon May 23 17:01:29 2011] [SQL] ROLLBACK;
I guess that cause of error is ST_GeomFromGML function. Accordingly log
files this function contains two parameters, but actually ST_GeomFromGML
takes only one argument.
On Mon, May 23, 2011 at 5:41 AM, Olivier Courtin
<olivier.courtin at gmail.com>wrote:
>
> 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
> _______________________________________________
> TinyOWS-dev mailing list
> TinyOWS-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tinyows-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/tinyows-dev/attachments/20110523/db9467e3/attachment.htm
More information about the TinyOWS-dev
mailing list