<p dir="ltr">Hi Nora and all,</p>
<p dir="ltr">I struggled sometimes with a similar problem but didn't know that the phantom points was plotted at lat/long (0.0).</p>
<p dir="ltr">I knew that they didn't have valid geometry.</p>
<p dir="ltr">I guessed that it happened when I use a shapefile and deleted some points during in editing mode (using backspace). I think, it deletes the geometry only, but not the (line in attribute table).</p>
<p dir="ltr">Can you try this ?</p>
<p dir="ltr">Thanks</p>
<br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Apr 3, 2025, 09:00 Nora Badenhorst via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tobias,<br>
<br>
Hope you are well? <br>
Thanks for the feedback.<br>
<br>
I have created a NEW shapefile for each of my areas. <br>
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"<br>
<br>
When realising that there were "phantom" points, I selected the visible points and saved it as a new layer.<br>
<br>
I do not use GeoPackage as as layers but will definitely try it in future.<br>
<br>
Thanks again - have a great day.<br>
<br>
<br>
Nôra Badenhorst<br>
RESEARCH ASSISTANT AND OFFICE ADMINISTRATOR<br>
<br>
nô<a href="mailto:rabadenhorst@nova.org.za" target="_blank" rel="noreferrer">rabadenhorst@nova.org.za</a><br>
+27 (0) 72 146 3633<br>
Office 1, Aura Aesta Building, <a href="https://www.google.com/maps/search/2+Witteboom+Street,+Hartenbos?entry=gmail&source=g">2 Witteboom Street, Hartenbos</a> 6520<br>
<br>
<a href="http://nova.org.za" rel="noreferrer noreferrer" target="_blank">nova.org.za</a><br>
Quality of life<br>
begins at home<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: QGIS-User <<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank" rel="noreferrer">qgis-user-bounces@lists.osgeo.org</a>> On Behalf Of Tobias Schula via QGIS-User<br>
Sent: Wednesday, 02 April 2025 14:46<br>
To: <a href="mailto:qgis-user@lists.osgeo.org" target="_blank" rel="noreferrer">qgis-user@lists.osgeo.org</a><br>
Subject: Re: [Qgis-user] FW: "Phantom" point in created layer<br>
<br>
> I created a shapefile layer<br>
<br>
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.<br>
<br>
QGIS always had bugs with shapefiles, e.g. this one:<br>
> <a href="https://github.com/qgis/QGIS/issues/19349" rel="noreferrer noreferrer" target="_blank">https://github.com/qgis/QGIS/issues/19349</a><br>
<br>
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.<br>
<br>
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.<br>
<br>
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.<br>
<br>
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"? <br>
Do you have an expression saved somewhere as an automatic input field? <br>
<br>
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? <br>
<br>
Best Regards<br>
<br>
--<br>
Tobias A Schula<br>
Forestry Expert<br>
<br>
<a href="mailto:geospatial@schula.org" target="_blank" rel="noreferrer">geospatial@schula.org</a><br>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>