Re: [Qgis-developer] Unknown exeption with an invalid Geos

2016-04-26 Thread Nejia Ben Nasr
Hi,

 

The unknown exception (geos::util::IllegalArgumentException) is thrown when
I call any geos function from QgsGeometry (asGeos(), isGeosValid(),
isGeosEmpty() …), in Qgis an error message is shown “Unknown exception” and
it crashes.

 

Best regards

Nejia

 

De : Qgis-developer [mailto:qgis-developer-boun...@lists.osgeo.org] De la
part de Nejia Ben Nasr
Envoyé : lundi 25 avril 2016 14:31
À : qgis-developer
Objet : [Qgis-developer] Unknown exeption with an invalid Geos

 

Hi,

 

I have a shape file of lineString that contains an invalid line, when I use
info tool, select tool, node tool with this wrong line unknown exception is
thrown

geos::util::IllegalArgumentException, and crash with simplify geometries,
and check geometry validity.

 

Version: Qgis 2.14.1 32 bits on windows 7

 

I join with this mail the shape file.

 

Best regards

Nejia

 

 

 

___
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

[Qgis-developer] Unknown exeption with an invalid Geos

2016-04-25 Thread Nejia Ben Nasr
Hi,

 

I have a shape file of lineString that contains an invalid line, when I use
info tool, select tool, node tool with this wrong line unknown exception is
thrown

geos::util::IllegalArgumentException, and crash with simplify geometries,
and check geometry validity.

 

Version: Qgis 2.14.1 32 bits on windows 7

 

I join with this mail the shape file.

 

Best regards

Nejia

 

 

___
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

Re: [Qgis-developer] Problem when using spatial index

2015-01-22 Thread Nejia Ben Nasr
Hi,

 

Thank you very much delazj.

 

Nejia

 

De : Junior [mailto:del...@gmail.com] 
Envoyé : jeudi 22 janvier 2015 09:19
À : Nejia Ben Nasr
Cc : qgis-developer@lists.osgeo.org
Objet : Re : [Qgis-developer] Problem when using spatial index

 

Hi,

Then fix the layer with duplicate nodes. As stated here [1], it can be done 
with the tool in vector menu  Geometry tools  Simplify geometry (setting the 
tolerance to 0)

 

[1] http://docs.qgis.org/2.2/en/docs/user_manual/plugins/plugins_ftools.html

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr  mailto:nejia.benn...@spaceyes3d.com 
nejia.benn...@spaceyes3d.com
Pour : 'Junior Delaz'  mailto:del...@gmail.com del...@gmail.com
Objet : [Qgis-developer] Problem when using spatial index
Date : mer., janv. 21, 2015 16:11

 

To inderstant the source of problem, if it’s caused by invalid geometry I do 
this:

-  I load only a shapefile containing geometry with duplicate nodes and 
I remove file .qix, here the problem appear: the spatial index is atomically 
created and I can’t see all feature when I zoom or navigate in the map.

 

-  I have another shapefile containing some rows without geometry, I 
load only it in Qgis and I create a spatial index, here there is no problem

 

 

 

De : Junior Delaz [ mailto:del...@gmail.com mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 14:57
À : Nejia Ben Nasr
Objet : Re: [Qgis-developer] Problem when using spatial index

 

I assume duplicate nodes invalidate geometry but I don't think such thing can 
create the current bug. OGR/GEOS guru?

But if I understand your second sentence, you have a shapefile containing some 
rows without geometry. Right? So, what do u mean by I don't have a problem 
with this file? Is it another file or the file on which you're creating the 
spatial index? 

You should :
- open a new project and add only the problematic file 
- or delete from your current project the file with empty geometry (if it's not 
the one you're creating spatial index on)
to see how it reacts when zooming in/out ...

 

2015-01-21 14:26 GMT+01:00 Nejia Ben Nasr nejia.benn...@spaceyes3d.com:

The  problem appears with vector layers that contain geometries that containing 
duplicate node(s), it’s considered as an invalid geometry ?

When I select all features from the bounding box of the vector layer, lines of 
features that has a null geometry are not selected in the attribute table (I 
don’t have a problem with this shapefile).

 

Thanks,

Nejia

De : Junior [mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 13:47


À : Nejia Ben Nasr
Cc : 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

weird, it worked for others. 

And if you spatially select all your features, are all the lines in the 
attribute table being selected?

You haven't answered about checking geometry validity...

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr nejia.benn...@spaceyes3d.com
Pour : 'Junior' del...@gmail.com
Cc : 'qgis-developer' qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Problem when using spatial index
Date : mer., janv. 21, 2015 13:30

 

Yes, even if I delete the .qix before saving !!

 

Thanks,

Nejia

 

De : Junior [mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 13:23
À : Nejia Ben Nasr
Cc : 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

And if you delete the .qix before saving? And then recreate it...

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr nejia.benn...@spaceyes3d.com
Pour : 'Junior Delaz' del...@gmail.com
Cc : 'qgis-developer' qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Problem when using spatial index
Date : mer., janv. 21, 2015 13:14

 

I already tried to save to anther shapefile and edit it (add, modify, remove 
features …) the .qix was automatically created and I get the same problem

 

Thanks,

Nejia

 

De : Junior Delaz [mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 12:21
À : Nejia Ben Nasr
Cc : qgis-developer
Objet : Re: [Qgis-developer] Problem when using spatial index

 

Some users [1] have already encountered this issue and i understood that it may 
be related to non correspondance between the number of rows in the .dbf file 
and number of geometry (some rows had no geometry). A simple Save As.. to 
another shapefile has solved the problem.
[1] http://georezo.net/forum/viewtopic.php?id=95143 (in french, sorry )

 

2015-01-21 9:16 GMT+01:00 Nejia Ben Nasr nejia.benn...@spaceyes3d.com:

Hi,

 

Do you think that this problem is often caused by geometry problems?

 

Thanks,

Nejia

 

De : Junior [mailto:del...@gmail.com] 
Envoyé : mardi 20 janvier 2015 13:41
À : Nejia Ben Nasr; 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

Hi,

Nejia, what about the validity of the geometry of your features? You can check 
with the tool in Vector

Re: [Qgis-developer] Problem when using spatial index

2015-01-21 Thread Nejia Ben Nasr
Hi,

 

Do you think that this problem is often caused by geometry problems?

 

Thanks,

Nejia

 

De : Junior [mailto:del...@gmail.com] 
Envoyé : mardi 20 janvier 2015 13:41
À : Nejia Ben Nasr; 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

Hi,

Nejia, what about the validity of the geometry of your features? You can check 
with the tool in Vector menu  Geometry tools  check geometry validity

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr  mailto:nejia.benn...@spaceyes3d.com 
nejia.benn...@spaceyes3d.com
Pour : 'qgis-developer'  mailto:qgis-developer@lists.osgeo.org 
qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Problem when using spatial index
Date : mar., janv. 20, 2015 13:03

 

I use QGIS 2.6.1

 

De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Nejia Ben Nasr
Envoyé : mardi 20 janvier 2015 09:39
À : qgis-developer
Objet : [Qgis-developer] Problem when using spatial index

 

Hi all,

 

I load a shapefile, then I create a spatial index to maximize speed of zoom and 
navigate in the map.

The problem is: when I zoom to any area feature appear and other doesn’t.

And it seems To me that the spatial index is automatically created even when I 
delete the .qix file

 

 

Best regards,

Nejia

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Problem when using spatial index

2015-01-21 Thread Nejia Ben Nasr
The  problem appears with vector layers that contain geometries that containing 
duplicate node(s), it’s considered as an invalid geometry ?

When I select all features from the bounding box of the vector layer, lines of 
features that has a null geometry are not selected in the attribute table (I 
don’t have a problem with this shapefile).

 

Thanks,

Nejia

De : Junior [mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 13:47
À : Nejia Ben Nasr
Cc : 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

weird, it worked for others. 

And if you spatially select all your features, are all the lines in the 
attribute table being selected?

You haven't answered about checking geometry validity...

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr nejia.benn...@spaceyes3d.com
Pour : 'Junior' del...@gmail.com
Cc : 'qgis-developer' qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Problem when using spatial index
Date : mer., janv. 21, 2015 13:30

 

Yes, even if I delete the .qix before saving !!

 

Thanks,

Nejia

 

De : Junior [mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 13:23
À : Nejia Ben Nasr
Cc : 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

And if you delete the .qix before saving? And then recreate it...

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr nejia.benn...@spaceyes3d.com
Pour : 'Junior Delaz' del...@gmail.com
Cc : 'qgis-developer' qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Problem when using spatial index
Date : mer., janv. 21, 2015 13:14

 

I already tried to save to anther shapefile and edit it (add, modify, remove 
features …) the .qix was automatically created and I get the same problem

 

Thanks,

Nejia

 

De : Junior Delaz [mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 12:21
À : Nejia Ben Nasr
Cc : qgis-developer
Objet : Re: [Qgis-developer] Problem when using spatial index

 

Some users [1] have already encountered this issue and i understood that it may 
be related to non correspondance between the number of rows in the .dbf file 
and number of geometry (some rows had no geometry). A simple Save As.. to 
another shapefile has solved the problem.
[1] http://georezo.net/forum/viewtopic.php?id=95143 (in french, sorry )

 

2015-01-21 9:16 GMT+01:00 Nejia Ben Nasr nejia.benn...@spaceyes3d.com:

Hi,

 

Do you think that this problem is often caused by geometry problems?

 

Thanks,

Nejia

 

De : Junior [mailto:del...@gmail.com] 
Envoyé : mardi 20 janvier 2015 13:41
À : Nejia Ben Nasr; 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

Hi,

Nejia, what about the validity of the geometry of your features? You can check 
with the tool in Vector menu  Geometry tools  check geometry validity

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr  mailto:nejia.benn...@spaceyes3d.com 
nejia.benn...@spaceyes3d.com
Pour : 'qgis-developer'  mailto:qgis-developer@lists.osgeo.org 
qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Problem when using spatial index
Date : mar., janv. 20, 2015 13:03

 

I use QGIS 2.6.1

 

De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Nejia Ben Nasr
Envoyé : mardi 20 janvier 2015 09:39
À : qgis-developer
Objet : [Qgis-developer] Problem when using spatial index

 

Hi all,

 

I load a shapefile, then I create a spatial index to maximize speed of zoom and 
navigate in the map.

The problem is: when I zoom to any area feature appear and other doesn’t.

And it seems To me that the spatial index is automatically created even when I 
delete the .qix file

 

 

Best regards,

Nejia

 

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Problem when using spatial index

2015-01-21 Thread Nejia Ben Nasr
Yes, even if I delete the .qix before saving !!

 

Thanks,

Nejia

 

De : Junior [mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 13:23
À : Nejia Ben Nasr
Cc : 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

And if you delete the .qix before saving? And then recreate it...

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr nejia.benn...@spaceyes3d.com
Pour : 'Junior Delaz' del...@gmail.com
Cc : 'qgis-developer' qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Problem when using spatial index
Date : mer., janv. 21, 2015 13:14

 

I already tried to save to anther shapefile and edit it (add, modify, remove 
features …) the .qix was automatically created and I get the same problem

 

Thanks,

Nejia

 

De : Junior Delaz [mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 12:21
À : Nejia Ben Nasr
Cc : qgis-developer
Objet : Re: [Qgis-developer] Problem when using spatial index

 

Some users [1] have already encountered this issue and i understood that it may 
be related to non correspondance between the number of rows in the .dbf file 
and number of geometry (some rows had no geometry). A simple Save As.. to 
another shapefile has solved the problem.
[1] http://georezo.net/forum/viewtopic.php?id=95143 (in french, sorry )

 

2015-01-21 9:16 GMT+01:00 Nejia Ben Nasr nejia.benn...@spaceyes3d.com:

Hi,

 

Do you think that this problem is often caused by geometry problems?

 

Thanks,

Nejia

 

De : Junior [mailto:del...@gmail.com] 
Envoyé : mardi 20 janvier 2015 13:41
À : Nejia Ben Nasr; 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

Hi,

Nejia, what about the validity of the geometry of your features? You can check 
with the tool in Vector menu  Geometry tools  check geometry validity

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr  mailto:nejia.benn...@spaceyes3d.com 
nejia.benn...@spaceyes3d.com
Pour : 'qgis-developer'  mailto:qgis-developer@lists.osgeo.org 
qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Problem when using spatial index
Date : mar., janv. 20, 2015 13:03

 

I use QGIS 2.6.1

 

De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Nejia Ben Nasr
Envoyé : mardi 20 janvier 2015 09:39
À : qgis-developer
Objet : [Qgis-developer] Problem when using spatial index

 

Hi all,

 

I load a shapefile, then I create a spatial index to maximize speed of zoom and 
navigate in the map.

The problem is: when I zoom to any area feature appear and other doesn’t.

And it seems To me that the spatial index is automatically created even when I 
delete the .qix file

 

 

Best regards,

Nejia

 

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Problem when using spatial index

2015-01-21 Thread Nejia Ben Nasr
I already tried to save to anther shapefile and edit it (add, modify, remove 
features …) the .qix was automatically created and I get the same problem

 

Thanks,

Nejia

 

De : Junior Delaz [mailto:del...@gmail.com] 
Envoyé : mercredi 21 janvier 2015 12:21
À : Nejia Ben Nasr
Cc : qgis-developer
Objet : Re: [Qgis-developer] Problem when using spatial index

 

Some users [1] have already encountered this issue and i understood that it may 
be related to non correspondance between the number of rows in the .dbf file 
and number of geometry (some rows had no geometry). A simple Save As.. to 
another shapefile has solved the problem.
[1] http://georezo.net/forum/viewtopic.php?id=95143 (in french, sorry )

 

2015-01-21 9:16 GMT+01:00 Nejia Ben Nasr nejia.benn...@spaceyes3d.com:

Hi,

 

Do you think that this problem is often caused by geometry problems?

 

Thanks,

Nejia

 

De : Junior [mailto:del...@gmail.com] 
Envoyé : mardi 20 janvier 2015 13:41
À : Nejia Ben Nasr; 'qgis-developer'
Objet : Re : [Qgis-developer] Problem when using spatial index

 

Hi,

Nejia, what about the validity of the geometry of your features? You can check 
with the tool in Vector menu  Geometry tools  check geometry validity

 

Envoyé depuis mon HTC

 

- Reply message -
De : Nejia Ben Nasr  mailto:nejia.benn...@spaceyes3d.com 
nejia.benn...@spaceyes3d.com
Pour : 'qgis-developer'  mailto:qgis-developer@lists.osgeo.org 
qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Problem when using spatial index
Date : mar., janv. 20, 2015 13:03

 

I use QGIS 2.6.1

 

De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Nejia Ben Nasr
Envoyé : mardi 20 janvier 2015 09:39
À : qgis-developer
Objet : [Qgis-developer] Problem when using spatial index

 

Hi all,

 

I load a shapefile, then I create a spatial index to maximize speed of zoom and 
navigate in the map.

The problem is: when I zoom to any area feature appear and other doesn’t.

And it seems To me that the spatial index is automatically created even when I 
delete the .qix file

 

 

Best regards,

Nejia

 

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Problem when using spatial index

2015-01-20 Thread Nejia Ben Nasr
I use QGIS 2.6.1

 

De : qgis-developer-boun...@lists.osgeo.org
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Nejia Ben Nasr
Envoyé : mardi 20 janvier 2015 09:39
À : qgis-developer
Objet : [Qgis-developer] Problem when using spatial index

 

Hi all,

 

I load a shapefile, then I create a spatial index to maximize speed of zoom
and navigate in the map.

The problem is: when I zoom to any area feature appear and other doesn’t.

And it seems To me that the spatial index is automatically created even when
I delete the .qix file

 

 

Best regards,

Nejia

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer