<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">Hello,</font><br>
<font size="-1">Is there any way to import properly to Postgis gml
which contain curves with more than one segment ?<br>
Below I attach a part of gml with exemplary object.</font><br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p style="margin-bottom: 0cm; line-height: 100%"><font face="Times
New Roman, serif"><font style="font-size: 10pt" size="2"><gml:featureMember><br>
<</font><font style="font-size: 10pt" size="2">bt:Object</font><font
style="font-size: 10pt" size="2">
><br>
<bt:</font><font style="font-size: 10pt" size="2">ID</font><font
style="font-size: 10pt" size="2">>10000</bt:</font><font
style="font-size: 10pt" size="2">ID</font><font
style="font-size: 10pt" size="2">><br>
<bt:geometr</font><font style="font-size: 10pt" size="2">y</font><font
style="font-size: 10pt" size="2">><br>
<gml:Curve gml:id="ID_786" srsDimension="2"
srsName="EPSG:2180"><br>
<gml:segments><br>
<gml:LineStringSegment><br>
<gml:posList>485840.70 318178.50 485819.70 318182.37
</gml:posList><br>
</gml:LineStringSegment><br>
<gml:LineStringSegment><br>
<gml:posList>485825.11 318176.40 485826.88 318186.02
</gml:posList><br>
</gml:LineStringSegment><br>
</gml:segments><br>
</gml:Curve><br>
</bt:</font><font style="font-size: 10pt" size="2">geometry</font><font
style="font-size: 10pt" size="2">><br>
</</font><font style="font-size: 10pt" size="2">bt:Object</font><font
style="font-size: 10pt" size="2">><br>
</gml:featureMember></font>
</font>
</p>
<title></title>
<meta name="generator" content="LibreOffice 5.1.3.2 (Windows)">
<style type="text/css">
@page { margin: 2cm }
p { margin-bottom: 0.25cm; line-height: 120% } </style><font size="-1"><br>
And here is how I try to import gml:<br>
SET PGCLIENTENCODING=UTF8<br>
SET GML_EXPOSE_GML_ID=YES<br>
SET GML_ATTRIBUTES_TO_OGR_FIELDS=YES<br>
SET GML_FETCH_ALL_GEOMETRIES= YES<br>
ogr2ogr -f "PostgreSQL" PG:"host=localhost user=*** dbname=test
password=*** port=5432" d:\test.xml -forceNullable
-splitlistfields -nlt GEOMETRY<br>
<br>
And I've got errors:<br>
ERROR 1: Non contiguous curves<br>
ERROR 1: Curve: Got NULL geometry as Member instead of segments.<br>
<br>
I there any option or trick to import such object? Curves with one
segment are imported without any problem.<br>
<br>
Regards,<br>
Piotr<br>
</font>
</body>
</html>