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

Tobias Schula geospatial at schula.org
Wed Apr 2 05:46:01 PDT 2025


> 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: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250402/75cf6b67/attachment.sig>


More information about the QGIS-User mailing list