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Ă´rabadenho...@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-boun...@lists.osgeo.org> On Behalf Of Tobias Schula 
via QGIS-User
Sent: Wednesday, 02 April 2025 14:46
To: qgis-user@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

geospat...@schula.org

Attachment: Emba_SP_informal_block8_count_Feb2025.dbf
Description: Emba_SP_informal_block8_count_Feb2025.dbf

Attachment: Emba_SP_informal_block8_count_Feb2025.qix
Description: Emba_SP_informal_block8_count_Feb2025.qix

Attachment: Emba_SP_informal_block8_count_Feb2025.shp
Description: Emba_SP_informal_block8_count_Feb2025.shp

Attachment: Emba_SP_informal_block8_count_Feb2025.shx
Description: Emba_SP_informal_block8_count_Feb2025.shx

_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to