<div dir="ltr">Hi Andrea,<div><br></div><div>Might something like:</div><div><br></div><div>    In the 'Select by Expression' dialog:</div><div><br></div><div>    $geometry = null<br></div><div><br></div><div>work?<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 26, 2016 at 10:53 AM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi jukka.<br>
I guess empty geometry is a not null geometry.<br>
</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">Il 26 mag 2016 4:34 PM, "Rahkonen Jukka (MML)" <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
We spent some time with empty geometries in OpenJUMP and I attach some test data from those experiments. Feel free to use it in the QGIS feature request. Zip contains point, line, and polygon shapefiles, each having 8 features but only one feature with geometry.  From the WKT files you can see that there are actually different kind of empty geometries. I even did not bother to think about Z, M, and ZM geometries.<br>
<br>
POINT EMPTY<br>
MULTIPOINT EMPTY<br>
LINESTRING EMPTY<br>
MULTILINESTRING EMPTY<br>
POLYGON EMPTY<br>
MULTIPOLYGON EMPTY<br>
GEOMETRYCOLLECTION EMPTY<br>
<br>
One may say that empty is always just empty but one needs also to think what happens if user copies POLYGON EMPTY and tries to paste it into a point layer. Should copy be denied or empty geometry converted into POINT EMPTY? For OpenJUMP that does not matter because it can handle all kind of geometries on the same layer. However, saving POINT EMPTY into polygon shapefile may fail and therefore OpenJUMP can convert even empty geometries like POINT EMPTY ->POLYGON EMPTY.<br>
<br>
-Jukka Rahkonen-<br>
<br>
Andrea Peri wrote:<br>
<br>
Hi Jukka,<br>
yes is exactly this the question.<br>
<br>
The QGIS don't show any record with null geometry so is impossible for me to add a geometry to it. Or delete it definitivelly.<br>
<br>
But the record with null geometry is however saved when I export the shapefile from qgis.<br>
<br>
So the QGIS show me 14 records but export a shapefile with 16 records<br>
(2 records has null geometry).<br>
<br>
So when load it in a spatialite or on a postgis environment or open it using another GIS like arcview3 from esri.<br>
I see this two more records with null geometry.<br>
<br>
AFAIK this is a chaotic situation for who work using qgis and produce a shapefile to distribute to other users that has other gis softwares.<br>
<br>
A.<br>
<br>
<br>
2016-05-26 10:24 GMT+02:00 Jukka Rahkonen <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>>:<br>
> Nicolas Cadieux <nicolas.cadieux@...> writes:<br>
><br>
>><br>
>><br>
>> Hi,<br>
>> Is it possible that the 2 missing records were deleted in another GIS?<br>
> There is an issue with deleting records in shape file as there are<br>
> many ways to do that.  If the record were deleted in another GIS, they<br>
> may show up (or<br>
> not) in another software. Could that be it...<br>
>> Nicolas<br>
><br>
> Hi,<br>
><br>
> I suppose that Andrea means a valid situation with real existing<br>
> features which just do not have geometry. They are valid in shapefiles<br>
> but many GIS software have difficulties in dealing with them.<br>
> Naturally they cannot be showed on the map and spatial queries can't<br>
> find them but they should be found from attribute view and be editable there.<br>
><br>
> -Jukka Rahkonen-<br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
<br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty àèìòù<br>
-----------------<br>
</blockquote></div>
</div></div><br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>