[Geoserver-users] points must form a closed linestring....

Another issue .....about spatial selection
the response :
<ows:ExceptionText>
java.lang.RuntimeException: Parsingfailed for LinearRing: java.lang.IllegalArgumentException: points must form a
      closed linestring ....
</ows:ExceptionText>

Caused by: java.lang.IllegalArgumentException: points must form a closed linestring
        at com.vividsolutions.jts.geom.LinearRing.validateConstruction(LinearRing.java:95)
        at com.vividsolutions.jts.geom.LinearRing.<init>(LinearRing.java:90)
        at com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:324)
        at org.geotools.gml3.bindings.GML3ParsingUtils.line(GML3ParsingUtils.java:158)
        at org.geotools.gml3.bindings.GML3ParsingUtils.linearRing(GML3ParsingUtils.java:93)
        at org.geotools.gml3.bindings.LinearRingTypeBinding.parse(LinearRingTypeBinding.java:122)
        at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:133)

my wfs filter :

    <ogc:Filter>
      <ogc:Overlaps>
        <ogc:PropertyName>Geometry</ogc:PropertyName>
        <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
          <gml:outerBoundaryIs>
            <gml:LinearRing>
              <gml:coordinates>1.67 48.22 1.70 48.22 1.70 49.00 1.68 49.00 1.67 48.22</gml:coordinates>
            </gml:LinearRing>
          </gml:outerBoundaryIs>
        </gml:Polygon>
      </ogc:Overlaps>
    </ogc:Filter>

--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr

OK, my gml is not wellformed !!!
i should have written this :
       <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
          <gml:exterior>
            <gml:LinearRing>
              <gml:posList>1.67 48.22 1.67 48.24 1.68 48.22 1.67 48.24 1.67 48.22</gml:posList>
            </gml:LinearRing>
          </gml:exterior>
        </gml:Polygon>

sorry for that fake... :wink:

Sébastien Geindre a écrit :

Another issue .....about spatial selection
the response :
<ows:ExceptionText>
java.lang.RuntimeException: Parsingfailed for LinearRing: java.lang.IllegalArgumentException: points must form a
      closed linestring ....
</ows:ExceptionText>

Caused by: java.lang.IllegalArgumentException: points must form a closed linestring
        at com.vividsolutions.jts.geom.LinearRing.validateConstruction(LinearRing.java:95)
        at com.vividsolutions.jts.geom.LinearRing.<init>(LinearRing.java:90)
        at com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:324)
        at org.geotools.gml3.bindings.GML3ParsingUtils.line(GML3ParsingUtils.java:158)
        at org.geotools.gml3.bindings.GML3ParsingUtils.linearRing(GML3ParsingUtils.java:93)
        at org.geotools.gml3.bindings.LinearRingTypeBinding.parse(LinearRingTypeBinding.java:122)
        at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:133)

my wfs filter :

    <ogc:Filter>
      <ogc:Overlaps>
        <ogc:PropertyName>Geometry</ogc:PropertyName>
        <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
          <gml:outerBoundaryIs>
            <gml:LinearRing>
              <gml:coordinates>1.67 48.22 1.70 48.22 1.70 49.00 1.68 49.00 1.67 48.22</gml:coordinates>
            </gml:LinearRing>
          </gml:outerBoundaryIs>
        </gml:Polygon>
      </ogc:Overlaps>
    </ogc:Filter>

--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr

No problem Sébastien, you have been doing great work helping us qa lately. Keep the bug reports coming!! :slight_smile:

-Justin

Sébastien Geindre wrote:

OK, my gml is not wellformed !!!
i should have written this :
       <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
          <gml:exterior>
            <gml:LinearRing>
              <gml:posList>1.67 48.22 1.67 48.24 1.68 48.22 1.67 48.24 1.67 48.22</gml:posList>
            </gml:LinearRing>
          </gml:exterior>
        </gml:Polygon>

sorry for that fake... :wink:

Sébastien Geindre a écrit :

Another issue .....about spatial selection
the response :
<ows:ExceptionText>
java.lang.RuntimeException: Parsingfailed for LinearRing: java.lang.IllegalArgumentException: points must form a
      closed linestring ....
</ows:ExceptionText>

Caused by: java.lang.IllegalArgumentException: points must form a closed linestring
        at com.vividsolutions.jts.geom.LinearRing.validateConstruction(LinearRing.java:95)
        at com.vividsolutions.jts.geom.LinearRing.<init>(LinearRing.java:90)
        at com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:324)
        at org.geotools.gml3.bindings.GML3ParsingUtils.line(GML3ParsingUtils.java:158)
        at org.geotools.gml3.bindings.GML3ParsingUtils.linearRing(GML3ParsingUtils.java:93)
        at org.geotools.gml3.bindings.LinearRingTypeBinding.parse(LinearRingTypeBinding.java:122)
        at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:133)

my wfs filter :

    <ogc:Filter>
      <ogc:Overlaps>
        <ogc:PropertyName>Geometry</ogc:PropertyName>
        <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
          <gml:outerBoundaryIs>
            <gml:LinearRing>
              <gml:coordinates>1.67 48.22 1.70 48.22 1.70 49.00 1.68 49.00 1.67 48.22</gml:coordinates>
            </gml:LinearRing>
          </gml:outerBoundaryIs>
        </gml:Polygon>
      </ogc:Overlaps>
    </ogc:Filter>

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Justin Deoliveira a écrit :

No problem Sébastien, you have been doing great work helping us qa lately. Keep the bug reports coming!! :slight_smile:

is it possible to trace (log) the sql request made to postgis datasource ?

-Justin

Sébastien Geindre wrote:

OK, my gml is not wellformed !!!
i should have written this :
       <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
          <gml:exterior>
            <gml:LinearRing>
              <gml:posList>1.67 48.22 1.67 48.24 1.68 48.22 1.67 48.24 1.67 48.22</gml:posList>
            </gml:LinearRing>
          </gml:exterior>
        </gml:Polygon>

sorry for that fake... :wink:

Sébastien Geindre a écrit :

Another issue .....about spatial selection
the response :
<ows:ExceptionText>
java.lang.RuntimeException: Parsingfailed for LinearRing: java.lang.IllegalArgumentException: points must form a
      closed linestring ....
</ows:ExceptionText>

Caused by: java.lang.IllegalArgumentException: points must form a closed linestring
        at com.vividsolutions.jts.geom.LinearRing.validateConstruction(LinearRing.java:95)

        at com.vividsolutions.jts.geom.LinearRing.<init>(LinearRing.java:90)
        at com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:324)

        at org.geotools.gml3.bindings.GML3ParsingUtils.line(GML3ParsingUtils.java:158)

        at org.geotools.gml3.bindings.GML3ParsingUtils.linearRing(GML3ParsingUtils.java:93)

        at org.geotools.gml3.bindings.LinearRingTypeBinding.parse(LinearRingTypeBinding.java:122)

        at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:133)

my wfs filter :

    <ogc:Filter>
      <ogc:Overlaps>
        <ogc:PropertyName>Geometry</ogc:PropertyName>
        <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
          <gml:outerBoundaryIs>
            <gml:LinearRing>
              <gml:coordinates>1.67 48.22 1.70 48.22 1.70 49.00 1.68 49.00 1.67 48.22</gml:coordinates>
            </gml:LinearRing>
          </gml:outerBoundaryIs>
        </gml:Polygon>
      </ogc:Overlaps>
    </ogc:Filter>

--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr

You are working on trunk correct? You can do it from the user interface but the way i prefer is to change the log4j.properties file which lives in the web module. Just change the "log4j.category.org.geotools" level to DEBUG.

-Justin

Sébastien Geindre wrote:

Justin Deoliveira a écrit :

No problem Sébastien, you have been doing great work helping us qa lately. Keep the bug reports coming!! :slight_smile:

is it possible to trace (log) the sql request made to postgis datasource ?

-Justin

Sébastien Geindre wrote:

OK, my gml is not wellformed !!!
i should have written this :
       <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
          <gml:exterior>
            <gml:LinearRing>
              <gml:posList>1.67 48.22 1.67 48.24 1.68 48.22 1.67 48.24 1.67 48.22</gml:posList>
            </gml:LinearRing>
          </gml:exterior>
        </gml:Polygon>

sorry for that fake... :wink:

Sébastien Geindre a écrit :

Another issue .....about spatial selection
the response :
<ows:ExceptionText>
java.lang.RuntimeException: Parsingfailed for LinearRing: java.lang.IllegalArgumentException: points must form a
      closed linestring ....
</ows:ExceptionText>

Caused by: java.lang.IllegalArgumentException: points must form a closed linestring
        at com.vividsolutions.jts.geom.LinearRing.validateConstruction(LinearRing.java:95)

        at com.vividsolutions.jts.geom.LinearRing.<init>(LinearRing.java:90)
        at com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:324)

        at org.geotools.gml3.bindings.GML3ParsingUtils.line(GML3ParsingUtils.java:158)

        at org.geotools.gml3.bindings.GML3ParsingUtils.linearRing(GML3ParsingUtils.java:93)

        at org.geotools.gml3.bindings.LinearRingTypeBinding.parse(LinearRingTypeBinding.java:122)

        at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:133)

my wfs filter :

    <ogc:Filter>
      <ogc:Overlaps>
        <ogc:PropertyName>Geometry</ogc:PropertyName>
        <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
          <gml:outerBoundaryIs>
            <gml:LinearRing>
              <gml:coordinates>1.67 48.22 1.70 48.22 1.70 49.00 1.68 49.00 1.67 48.22</gml:coordinates>
            </gml:LinearRing>
          </gml:outerBoundaryIs>
        </gml:Polygon>
      </ogc:Overlaps>
    </ogc:Filter>

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org