[prev in list] [next in list] [prev in thread] [next in thread]
List: qgis-developer
Subject: Re: [Qgis-developer] GEOS error Exception: IllegalArgumentException: Invalid number of points in Lin
From: A Huarte <ahuarte47 () yahoo ! es>
Date: 2016-05-15 0:05:53
Message-ID: 870384439.3789261.1463270753122.JavaMail.yahoo () mail ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Janneke, you are right. The simplification process is executed just when the \
original geometry is read from data source and it can create invalid geometries. \
These invalid geometries will be used in subsequent processes using geometry \
calculations. You can disable the simplification of a layer from its options menu -> \
properties -> rendering -> uncheck the "simplify geometry" CheckBox. Or you can \
disable the simplification by default from -> settings -> options -> rendering -> \
uncheck the "Enable feature simplification by default ..." CheckBox. This pull \
request moves the simplification just when the geometry is rendered, the geometry \
remains unchanged from the data source in order to avoid these problems. Kind \
regardsAlvaro
De: Janneke van Dijk <janneke.qgis@gmail.com>
Para: A Huarte <ahuarte47@yahoo.es>; "qgis-developer@lists.osgeo.org" \
<qgis-developer@lists.osgeo.org> Enviado: Sábado 14 de Mayo de 2016 20:30
Asunto: Re: [Qgis-developer] GEOS error Exception: IllegalArgumentException: Invalid \
number of points in LinearRing found 3 - must be 0 or >= 4
Hi Alvaro,
How do I disable the on-the-fly simplification?
Do I understand it correctly that the error causes problems with a virtual field \
with a geometry calculation in it? Would that also be solved by disabling on-the-fly \
simplification? Or should I avoid the issues by not making it a virtual field - if I \
know that the polygons won't be edited?
Thanks for your insights,
Janneke
On 13/05/2016 11:08, A Huarte wrote:
Hi, I think this pull https://github.com/qgis/QGIS/pull/2900 fixes the error.
But it is pending to merge, It needs to fix some tests to be accepted finally. \
Meanwhile you can disable the on-the-fly simplification of the layer. Kind regards \
Alvaro De: Janneke van Dijk <janneke.qgis@gmail.com>
Para: qgis-developer@lists.osgeo.org
Enviado: Viernes 13 de Mayo de 2016 9:53
Asunto: [Qgis-developer] GEOS error Exception: IllegalArgumentException: Invalid \
number of points in LinearRing found 3 - must be 0 or >= 4
Dear list,
Using QGIS 2.14.2 on Windows 7 I get the following error message when
zooming out on a shapefile layer that has labels switched on:
GEOS
Exception: IllegalArgumentException: Invalid number of points in
LinearRing found 3 - must be 0 or >= 4
It seems to be an old bug (https://hub.qgis.org/issues/9375) that was
fixed 2 years ago.
It doesn't seem to cause any problems otherwise. Anyone else have this
issue? Should I file a new bug report?
Regards,
Janneke
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Attachment #5 (text/html)]
<html><head></head><body><div style="color:#000; background-color:#fff; \
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1463269278584_5497" \
dir="ltr"><font size="3" id="yui_3_16_0_ym19_1_1463269278584_7129"><span \
id="yui_3_16_0_ym19_1_1463269278584_6269">Hi </span><span style="font-family: \
Arial;" id="yui_3_16_0_ym19_1_1463269278584_5500">Janneke, you are right. The \
simplification process is executed just when the original geometry is read from data \
source and it can create invalid geometries. These invalid geometries will be used \
in subsequent processes using geometry calculations.</span></font></div><div \
id="yui_3_16_0_ym19_1_1463269278584_5497" dir="ltr"><span style="font-family: \
Arial;"><font size="3"><br></font></span></div><div \
id="yui_3_16_0_ym19_1_1463269278584_5497" dir="ltr"><span style="font-family: Arial;" \
id="yui_3_16_0_ym19_1_1463269278584_6220"><font size="3" \
id="yui_3_16_0_ym19_1_1463269278584_7135">You can disable the simplification of a \
layer from its options menu -> properties -> rendering -> uncheck the \
"simplify geometry" CheckBox. </font></span><span style="font-size: medium; \
font-family: Arial;" id="yui_3_16_0_ym19_1_1463269278584_7221">Or you can disable the \
simplification by default from -> settings -> options -> rendering -> \
uncheck the "Enable feature simplification by default ..." CheckBox.</span></div><div \
id="yui_3_16_0_ym19_1_1463269278584_5497" dir="ltr"><span style="font-family: \
Arial;"><font size="3"><br></font></span></div><div \
id="yui_3_16_0_ym19_1_1463269278584_5497" dir="ltr"><span style="font-family: Arial;" \
id="yui_3_16_0_ym19_1_1463269278584_6729"><font size="3" \
id="yui_3_16_0_ym19_1_1463269278584_7136">This pull request moves the simplification \
just when the geometry is rendered, the geometry remains unchanged from the data \
source in order to avoid these problems. </font></span></div><div \
id="yui_3_16_0_ym19_1_1463269278584_5497" dir="ltr"><span style="font-family: \
Arial;"><font size="3"><br></font></span></div><div \
id="yui_3_16_0_ym19_1_1463269278584_5497" dir="ltr"><span style="font-family: Arial;" \
id="yui_3_16_0_ym19_1_1463269278584_6221"><font size="3">Kind \
regards</font></span></div><div id="yui_3_16_0_ym19_1_1463269278584_5497" \
dir="ltr"><span style="font-family: Arial;" \
id="yui_3_16_0_ym19_1_1463269278584_7051"><font size="3" \
id="yui_3_16_0_ym19_1_1463269278584_7132">Alvaro</font></span></div><div \
class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1463269278584_5496"><br><br></div><div \
class="yahoo_quoted" id="yui_3_16_0_ym19_1_1463269278584_5451" style="display: \
block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, \
Lucida Grande, sans-serif; font-size: 16px;" \
id="yui_3_16_0_ym19_1_1463269278584_5450"> <div style="font-family: HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" \
id="yui_3_16_0_ym19_1_1463269278584_5449"> <div dir="ltr" \
id="yui_3_16_0_ym19_1_1463269278584_5448"> <font size="2" face="Arial" \
id="yui_3_16_0_ym19_1_1463269278584_5447"> <hr size="1" \
id="yui_3_16_0_ym19_1_1463269278584_5446"> <b \
id="yui_3_16_0_ym19_1_1463269278584_5482"><span style="font-weight:bold;" \
id="yui_3_16_0_ym19_1_1463269278584_5481">De:</span></b> Janneke van Dijk \
<janneke.qgis@gmail.com><br> <b id="yui_3_16_0_ym19_1_1463269278584_5480"><span \
style="font-weight: bold;" id="yui_3_16_0_ym19_1_1463269278584_5479">Para:</span></b> \
A Huarte <ahuarte47@yahoo.es>; "qgis-developer@lists.osgeo.org" \
<qgis-developer@lists.osgeo.org> <br> <b><span style="font-weight: \
bold;">Enviado:</span></b> Sábado 14 de Mayo de 2016 20:30<br> <b><span \
style="font-weight: bold;">Asunto:</span></b> Re: [Qgis-developer] GEOS error \
Exception: IllegalArgumentException: Invalid number of points in LinearRing found 3 - \
must be 0 or >= 4<br> </font> </div> <div class="y_msg_container" \
id="yui_3_16_0_ym19_1_1463269278584_5454"><br><div id="yiv7691646922"><div \
id="yui_3_16_0_ym19_1_1463269278584_5453"> <div class="yiv7691646922moz-cite-prefix" \
id="yui_3_16_0_ym19_1_1463269278584_5452">Hi Alvaro,<br clear="none"> <br \
clear="none"> How do I disable the on-the-fly simplification?<br clear="none">
Do I understand it correctly that the error causes problems with a
virtual field with a geometry calculation in it? Would that also
be solved by disabling on-the-fly simplification? Or should I
avoid the issues by not making it a virtual field - if I know that
the polygons won't be edited? <br clear="none">
<br clear="none">
Thanks for your insights,<br clear="none">
Janneke<br clear="none">
<br clear="none">
On 13/05/2016 11:08, A Huarte wrote:<br clear="none">
</div>
<blockquote type="cite">
</blockquote></div><div class="yiv7691646922yqt6259149778" \
id="yiv7691646922yqt90602"><div id="yui_3_16_0_ym19_1_1463269278584_5502"><div \
id="yui_3_16_0_ym19_1_1463269278584_5501">
<div dir="ltr" id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14010"><span \
id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14070">Hi, I think this \
pull </span><a rel="nofollow" shape="rect" \
id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14012" target="_blank" \
href="https://github.com/qgis/QGIS/pull/2900">https://github.com/qgis/QGIS/pull/2900</a> fixes
the error.</div>
<div dir="ltr" id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14010"><br \
clear="none"> </div>
<div dir="ltr" id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14305">But it
is pending to merge, It needs to fix some tests to be accepted
finally.</div>
<div dir="ltr" \
id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14306">Meanwhile
you can disable the on-the-fly simplification of the layer.</div>
<div dir="ltr" id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14306"><br \
clear="none"> </div>
<div dir="ltr" id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14306">Kind
regards</div>
<div dir="ltr" \
id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14306">Alvaro</div>
<div class="yiv7691646922qtdSeparateBR" \
id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14011"><br clear="none"> </div>
<div class="yiv7691646922yahoo_quoted" \
id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14350" style="display: block;"> \
<div id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14349"> <div \
id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14348">
<div dir="ltr" id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14347">
<hr id="yui_3_16_0_ym19_1_1463269278584_6637"> \
<b><span>De:</span></b> Janneke van Dijk <a rel="nofollow" shape="rect" \
class="yiv7691646922moz-txt-link-rfc2396E" ymailto="mailto:janneke.qgis@gmail.com" \
target="_blank" href="mailto:janneke.qgis@gmail.com"></a><a rel="nofollow" \
shape="rect" class="yiv7691646922moz-txt-link-rfc2396E" \
ymailto="mailto:janneke.qgis@gmail.com" target="_blank" \
href="mailto:janneke.qgis@gmail.com" \
id="yui_3_16_0_ym19_1_1463269278584_6638"><janneke.qgis@gmail.com></a><br \
clear="none"> <b><span>Para:</span></b> <a rel="nofollow" shape="rect" \
class="yiv7691646922moz-txt-link-abbreviated" \
ymailto="mailto:qgis-developer@lists.osgeo.org" target="_blank" \
href="mailto:qgis-developer@lists.osgeo.org"></a><a rel="nofollow" shape="rect" \
class="yiv7691646922moz-txt-link-abbreviated" \
ymailto="mailto:qgis-developer@lists.osgeo.org" target="_blank" \
href="mailto:qgis-developer@lists.osgeo.org" \
id="yui_3_16_0_ym19_1_1463269278584_6639">qgis-developer@lists.osgeo.org</a> <br \
clear="none">
<b id="yui_3_16_0_ym19_1_1463269278584_6643"><span \
id="yui_3_16_0_ym19_1_1463269278584_6642">Enviado:</span></b> Viernes 13 de Mayo de \
2016 9:53<br clear="none">
<b><span>Asunto:</span></b> [Qgis-developer] GEOS error
Exception: IllegalArgumentException: Invalid number of
points in LinearRing found 3 - must be 0 or >= 4<br clear="none">
</div>
<div class="yiv7691646922y_msg_container" \
id="yiv7691646922yui_3_16_0_ym19_1_1463119430554_14352"><br clear="none"> Dear \
list,<br clear="none"> <br clear="none">
Using QGIS 2.14.2 on Windows 7 I get the following error
message when <br clear="none">
zooming out on a shapefile layer that has labels
switched on:<br clear="none">
<br clear="none">
GEOS<br clear="none">
Exception: IllegalArgumentException: Invalid number of
points in <br clear="none">
LinearRing found 3 - must be 0 or >= 4<br clear="none">
<br clear="none">
It seems to be an old bug (<a rel="nofollow" shape="rect" \
target="_blank" href="https://hub.qgis.org/issues/9375">https://hub.qgis.org/issues/9375</a>)
that was <br clear="none">
fixed 2 years ago.<br clear="none">
<br clear="none">
It doesn't seem to cause any problems otherwise. Anyone
else have this <br clear="none">
issue? Should I file a new bug report?<br clear="none">
<br clear="none">
Regards,<br clear="none">
Janneke<br clear="none">
<br clear="none">
_______________________________________________<br clear="none">
Qgis-developer mailing list<br clear="none">
<a rel="nofollow" shape="rect" \
ymailto="mailto:Qgis-developer@lists.osgeo.org" target="_blank" \
href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br \
clear="none"> List info: <a rel="nofollow" shape="rect" target="_blank" \
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br \
clear="none"> Unsubscribe: <a rel="nofollow" shape="rect" target="_blank" \
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br \
clear="none"> </div>
</div>
</div>
</div>
</div>
<br clear="none">
</div></div></div><br><br></div> </div> </div> </div></div></body></html>
[Attachment #6 (text/plain)]
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic