[Qgis-user] FW: "Phantom" point in created layer

Nora Badenhorst norabadenhorst at nova.org.za
Thu Apr 3 02:00:05 PDT 2025


Hi Tobias,

Hope you are well? 
Thanks for the feedback.

I have created a NEW shapefile for each of my areas. 
Attached find one of these layers. It was created (geometry type: points) and saved. I then "edited" the layer and adding points using "add pint feature"

When realising that there were "phantom" points, I selected the visible points and saved it as a new layer.

I do not use GeoPackage as as layers but will definitely try it in future.

Thanks again - have a great day.


Nôra Badenhorst
RESEARCH ASSISTANT AND OFFICE ADMINISTRATOR

nôrabadenhorst at nova.org.za
+27 (0) 72 146 3633
Office 1, Aura Aesta Building, 2 Witteboom Street, Hartenbos 6520

nova.org.za
Quality of life
begins at home



-----Original Message-----
From: QGIS-User <qgis-user-bounces at lists.osgeo.org> On Behalf Of Tobias Schula via QGIS-User
Sent: Wednesday, 02 April 2025 14:46
To: qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] FW: "Phantom" point in created layer

> I created a shapefile layer

This seems to be the culprit. Did you create the shapefile specifically and newly in QGIS, or did you reuse some old shapefile where you just deleted features? Shape is a brittle format and can easily get corrupted, especially if different apps and programs got their hands on the same file.

QGIS always had bugs with shapefiles, e.g. this one:
> https://github.com/qgis/QGIS/issues/19349

I don't work with shapefiles at all anymore, I just treat them as data- interchange format. If you receive a shapefile, import it into geopackage, spatialite or postgis, when your done editing, export it again as a new shapefile. Saved me a lot of headaches.

Export your points in a temporary scratch layer that you then save as a new shapefile under a new name, so QGIS won't use the old sidecars anymore. Try editing the "new" shapefile and see if the error persists.

Try to create a completely new shapefile with the same columns and see if the error persists, try to save your shapefile into a different format and continue editing the new format. I highly suspect the shapefile is broken and thus creates phantom/mystery geometries.

Do you have any other layers joined or connected to the offending layer? It could be that the creation of a point triggers further action. What are your settings in Layer > Layer Properties. , tabs "Actions" and "Attributes Form"? 
Do you have an expression saved somewhere as an automatic input field? 

I had similar problems with mystery points added in QField, no more problems since only using geopackage. I also tried to recreate your problem, but my newly created shapefile layer only shows the points I added. Can you share your shape with us, or does it have confidential data? 

Best Regards

--
Tobias A Schula
Forestry Expert

geospatial at schula.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Emba_SP_informal_block8_count_Feb2025.dbf
Type: application/octet-stream
Size: 5577 bytes
Desc: Emba_SP_informal_block8_count_Feb2025.dbf
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250403/14a74336/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Emba_SP_informal_block8_count_Feb2025.qix
Type: application/octet-stream
Size: 24988 bytes
Desc: Emba_SP_informal_block8_count_Feb2025.qix
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250403/14a74336/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Emba_SP_informal_block8_count_Feb2025.shp
Type: application/octet-stream
Size: 12256 bytes
Desc: Emba_SP_informal_block8_count_Feb2025.shp
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250403/14a74336/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Emba_SP_informal_block8_count_Feb2025.shx
Type: application/octet-stream
Size: 4108 bytes
Desc: Emba_SP_informal_block8_count_Feb2025.shx
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250403/14a74336/attachment-0007.obj>


More information about the QGIS-User mailing list