[Qgis-user] Invalid geometry
Sergio A Estay
sergio.estay at uach.cl
Fri Jun 22 14:07:49 PDT 2012
Hi,
I used the intersection function simply to add the information from the polygon layer table to my point layer table. I used this fuction in all gis software without problems (Qgis old version, arcgis, sextante, gvsig, etc). When I use the function intersection in the main vectorial menu of Qgis I obtain a shp file empty (also the table is empty) and the message of invalid geometry just in my polygon layer (not in my point layer). In the 1.7.4 version and all other softwares I obtained the table with all the attributes (from the original polygon and point layer) without errors for every point (also works fine in gvsig, arcgis and others).
In reference to the invalid geometry of my polygon layers, I checked my shp files (link below) in GRASS, arcgis and gvsig and no one detect any error in the geometry.
sorry for series of e-mail but I am newbie trying to learn Qgis.
Sergio
Hi Everybody and Ramon,
From the last actualization from QGIS 1.7.4 to 1.8.0 all my shp files
have "invalid geometry". For that reason now I can't make intersection
between vector layers. Previous to the actualization everything works
fine (using the same vector files).
As a polygons shp files I use this cover:
http://www.mappinghacks.com/data/TM_WORLD_BORDERS_SIMPL-0.2.zip
As a points vector layer I use the attached shp file.
If I try to make the intersection from Qgis/vectorial/geoprocess menu I
obtain "invalid geometry", but If I install the sextante python
complement, open the Toolbox and run intersection from the ftools
submenu everything is OK.
Any advice will be very useful
Thanks
Sergio
Hi,
As a start, the c1.shp file in the attached zip has no projection details. It has projection files, but they're empty, so QGIS will either assume a projection or ask, depending on what setting you've used. This will also cause problems later.
I'm not what you're expecting out of an intersect between a point layer and a polygon layer. QGIS is going to get confused somewhere as it needs 3 points to make a polygon, and in effect you're asking it to make a polygon of one point. (Which is why you're being warned about the geometry error). It will still make a file, but it might not be what you want.
Looking at the results I'd guess Sextante is just not telling you about this. They look very similar to me.
You could make a (very small buffer) around the points and then work with that...
Could you explain what you're expecting QGIS to do?
-ramon.
More information about the Qgis-user
mailing list