[Qgis-user] Is QGIS showing the records with geometry NULL

Saber Razmjooei saber.razmjooei at lutraconsulting.co.uk
Thu May 26 07:48:26 PDT 2016


Could this be a regression, see this:
http://hub.qgis.org/issues/11007

Cheers,
Saber


-----Original Message-----
From: Qgis-user [mailto:qgis-user-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML)
Sent: 26 May 2016 15:35
To: Andrea Peri
Cc: qgis-user
Subject: Re: [Qgis-user] Is QGIS showing the records with geometry NULL

Hi,

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.

POINT EMPTY
MULTIPOINT EMPTY
LINESTRING EMPTY
MULTILINESTRING EMPTY
POLYGON EMPTY
MULTIPOLYGON EMPTY
GEOMETRYCOLLECTION EMPTY

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.

-Jukka Rahkonen-

Andrea Peri wrote:

Hi Jukka,
yes is exactly this the question.

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.

But the record with null geometry is however saved when I export the shapefile from qgis.

So the QGIS show me 14 records but export a shapefile with 16 records
(2 records has null geometry).

So when load it in a spatialite or on a postgis environment or open it using another GIS like arcview3 from esri.
I see this two more records with null geometry.

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.

A.


2016-05-26 10:24 GMT+02:00 Jukka Rahkonen <jukka.rahkonen at maanmittauslaitos.fi>:
> Nicolas Cadieux <nicolas.cadieux at ...> writes:
>
>>
>>
>> Hi,
>> Is it possible that the 2 missing records were deleted in another GIS?
> There is an issue with deleting records in shape file as there are 
> many ways to do that.  If the record were deleted in another GIS, they 
> may show up (or
> not) in another software. Could that be it...
>> Nicolas
>
> Hi,
>
> I suppose that Andrea means a valid situation with real existing 
> features which just do not have geometry. They are valid in shapefiles 
> but many GIS software have difficulties in dealing with them.
> Naturally they cannot be showed on the map and spatial queries can't 
> find them but they should be found from attribute view and be editable there.
>
> -Jukka Rahkonen-
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user



--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


--
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified
that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Whilst reasonable care has been taken to avoid virus transmission, no responsibility for viruses is taken and it is your responsibility to carry out
such checks as you feel appropriate.

If this email contains a quote or offer to sell products, carry out work or perform services then our standard terms and conditions (which can be found at http://www.lutraconsulting.co.uk/downloads/Lutra%20Consulting%20Standard%20Terms%20and%20Conditions.pdf shall apply unless explicitly stated otherwise.

Saber Razmjooei and Peter Wells trading as Lutra Consulting.



More information about the Qgis-user mailing list