Point disappears when zooming in - QGIS 3.4.1











up vote
1
down vote

favorite












I had a vector layer stored in GeoPackage format with a text field (lbl_text) that was being used to create labels on a map. After creating 3 points I decided it would be nice to rotate my labels, so I added a rotation field (lbl_rotation). This prompted multiple notifications stating that the rotation field already existed and that the changes could not be made. I could not save changes to the layer so I cancelled and discarded them.



Despite the rotation field not previously existing and the notifications that creating this field had failed, the rotation field was now present. So I linked it to the data defined rotation option under Properties > Labels > Rotation. Now my labels could be rotated using Label Toolbar > Rotate Label.



But when zooming in the point created after this event disappeared. I could not see any reason for this and checked for others having a similar issue. A common solution was to use the geometry checker, so I tried this and found no errors (they're all points after all, what could go wrong?).



Deleting the point and recreating it did not fix the issue. The 4th point created always disappeared when zoomed in, regardless of how many times it was deleted and recreated, or where on the map it was created.



I added a 5th point and it did not have this issue. Eventually I deleted all points and recreated them all. None of them had this issue.



Edit: now all points on this layer exhibit the same problem behaviour, though they didn't when first posting about the issue.



Does anyone have any idea what might have happened and how to fix the problem?



Edit: The following has recovered the project so has been noted to help others, but it does not identify or repair the original problem so I am not marking it as the answer. Note that simply duplicating the affected layer resulted in duplicating the problem too.



To recover from this problem:


  • Right click the affected layer and save as a new GeoPackage.

  • Ensure Add saved file to map is checked or re-add the saved layer.

  • Right click the affected layer and select Styles > Copy Style.

  • Right click the new layer and select Styles > Paste Style.

  • Delete the affected layer and rename the new one.





  • Points when zoomed out.
    3 Points zoomed out.




    The same 3 points when zoomed in. One cannot be seen.
    3 points zoomed in.








    share|improve this question
























    • I noticed that you said you copied the layer styles to replicate the problem. Can you confirm that there isn't a scale level set in the style which may be making points of a certain type not be visible? Also is there any chance of making the geopackage and style available for testing?
      – Andrew Jeffrey
      Dec 5 at 0:19










    • Copying the style and pasting it to a new layer does not carry the problem forward. The problem exists only in the original layer. Using Right Click > Duplicate on the affected layer results in a new layer with the same problem. Using Right Click > Save As and saving as a new geopackage then adding that to the map results in a layer with no problem, and pasting the style to this layer results in a layer with the same style and no problem.
      – Sangster
      yesterday










    • Properties > Rendering > Scale dependent visibility is unchecked although Properties > Labels > Rendering > Scale dependent visibility is configured to show labels when zoomed in. Disabling this for labels does not prevent the points from disappearing. GeoPackage here: link
      – Sangster
      yesterday















    up vote
    1
    down vote

    favorite












    I had a vector layer stored in GeoPackage format with a text field (lbl_text) that was being used to create labels on a map. After creating 3 points I decided it would be nice to rotate my labels, so I added a rotation field (lbl_rotation). This prompted multiple notifications stating that the rotation field already existed and that the changes could not be made. I could not save changes to the layer so I cancelled and discarded them.



    Despite the rotation field not previously existing and the notifications that creating this field had failed, the rotation field was now present. So I linked it to the data defined rotation option under Properties > Labels > Rotation. Now my labels could be rotated using Label Toolbar > Rotate Label.



    But when zooming in the point created after this event disappeared. I could not see any reason for this and checked for others having a similar issue. A common solution was to use the geometry checker, so I tried this and found no errors (they're all points after all, what could go wrong?).



    Deleting the point and recreating it did not fix the issue. The 4th point created always disappeared when zoomed in, regardless of how many times it was deleted and recreated, or where on the map it was created.



    I added a 5th point and it did not have this issue. Eventually I deleted all points and recreated them all. None of them had this issue.



    Edit: now all points on this layer exhibit the same problem behaviour, though they didn't when first posting about the issue.



    Does anyone have any idea what might have happened and how to fix the problem?



    Edit: The following has recovered the project so has been noted to help others, but it does not identify or repair the original problem so I am not marking it as the answer. Note that simply duplicating the affected layer resulted in duplicating the problem too.



    To recover from this problem:


  • Right click the affected layer and save as a new GeoPackage.

  • Ensure Add saved file to map is checked or re-add the saved layer.

  • Right click the affected layer and select Styles > Copy Style.

  • Right click the new layer and select Styles > Paste Style.

  • Delete the affected layer and rename the new one.





  • Points when zoomed out.
    3 Points zoomed out.




    The same 3 points when zoomed in. One cannot be seen.
    3 points zoomed in.








    share|improve this question
























    • I noticed that you said you copied the layer styles to replicate the problem. Can you confirm that there isn't a scale level set in the style which may be making points of a certain type not be visible? Also is there any chance of making the geopackage and style available for testing?
      – Andrew Jeffrey
      Dec 5 at 0:19










    • Copying the style and pasting it to a new layer does not carry the problem forward. The problem exists only in the original layer. Using Right Click > Duplicate on the affected layer results in a new layer with the same problem. Using Right Click > Save As and saving as a new geopackage then adding that to the map results in a layer with no problem, and pasting the style to this layer results in a layer with the same style and no problem.
      – Sangster
      yesterday










    • Properties > Rendering > Scale dependent visibility is unchecked although Properties > Labels > Rendering > Scale dependent visibility is configured to show labels when zoomed in. Disabling this for labels does not prevent the points from disappearing. GeoPackage here: link
      – Sangster
      yesterday













    up vote
    1
    down vote

    favorite









    up vote
    1
    down vote

    favorite











    I had a vector layer stored in GeoPackage format with a text field (lbl_text) that was being used to create labels on a map. After creating 3 points I decided it would be nice to rotate my labels, so I added a rotation field (lbl_rotation). This prompted multiple notifications stating that the rotation field already existed and that the changes could not be made. I could not save changes to the layer so I cancelled and discarded them.



    Despite the rotation field not previously existing and the notifications that creating this field had failed, the rotation field was now present. So I linked it to the data defined rotation option under Properties > Labels > Rotation. Now my labels could be rotated using Label Toolbar > Rotate Label.



    But when zooming in the point created after this event disappeared. I could not see any reason for this and checked for others having a similar issue. A common solution was to use the geometry checker, so I tried this and found no errors (they're all points after all, what could go wrong?).



    Deleting the point and recreating it did not fix the issue. The 4th point created always disappeared when zoomed in, regardless of how many times it was deleted and recreated, or where on the map it was created.



    I added a 5th point and it did not have this issue. Eventually I deleted all points and recreated them all. None of them had this issue.



    Edit: now all points on this layer exhibit the same problem behaviour, though they didn't when first posting about the issue.



    Does anyone have any idea what might have happened and how to fix the problem?



    Edit: The following has recovered the project so has been noted to help others, but it does not identify or repair the original problem so I am not marking it as the answer. Note that simply duplicating the affected layer resulted in duplicating the problem too.



    To recover from this problem:


  • Right click the affected layer and save as a new GeoPackage.

  • Ensure Add saved file to map is checked or re-add the saved layer.

  • Right click the affected layer and select Styles > Copy Style.

  • Right click the new layer and select Styles > Paste Style.

  • Delete the affected layer and rename the new one.





  • Points when zoomed out.
    3 Points zoomed out.




    The same 3 points when zoomed in. One cannot be seen.
    3 points zoomed in.








    share|improve this question















    I had a vector layer stored in GeoPackage format with a text field (lbl_text) that was being used to create labels on a map. After creating 3 points I decided it would be nice to rotate my labels, so I added a rotation field (lbl_rotation). This prompted multiple notifications stating that the rotation field already existed and that the changes could not be made. I could not save changes to the layer so I cancelled and discarded them.



    Despite the rotation field not previously existing and the notifications that creating this field had failed, the rotation field was now present. So I linked it to the data defined rotation option under Properties > Labels > Rotation. Now my labels could be rotated using Label Toolbar > Rotate Label.



    But when zooming in the point created after this event disappeared. I could not see any reason for this and checked for others having a similar issue. A common solution was to use the geometry checker, so I tried this and found no errors (they're all points after all, what could go wrong?).



    Deleting the point and recreating it did not fix the issue. The 4th point created always disappeared when zoomed in, regardless of how many times it was deleted and recreated, or where on the map it was created.



    I added a 5th point and it did not have this issue. Eventually I deleted all points and recreated them all. None of them had this issue.



    Edit: now all points on this layer exhibit the same problem behaviour, though they didn't when first posting about the issue.



    Does anyone have any idea what might have happened and how to fix the problem?



    Edit: The following has recovered the project so has been noted to help others, but it does not identify or repair the original problem so I am not marking it as the answer. Note that simply duplicating the affected layer resulted in duplicating the problem too.



    To recover from this problem:


  • Right click the affected layer and save as a new GeoPackage.

  • Ensure Add saved file to map is checked or re-add the saved layer.

  • Right click the affected layer and select Styles > Copy Style.

  • Right click the new layer and select Styles > Paste Style.

  • Delete the affected layer and rename the new one.





  • Points when zoomed out.
    3 Points zoomed out.




    The same 3 points when zoomed in. One cannot be seen.
    3 points zoomed in.





    point geopackage






    share|improve this question















    share|improve this question













    share|improve this question




    share|improve this question








    edited Nov 26 at 5:11

























    asked Nov 23 at 6:14









    Sangster

    285




    285












    • I noticed that you said you copied the layer styles to replicate the problem. Can you confirm that there isn't a scale level set in the style which may be making points of a certain type not be visible? Also is there any chance of making the geopackage and style available for testing?
      – Andrew Jeffrey
      Dec 5 at 0:19










    • Copying the style and pasting it to a new layer does not carry the problem forward. The problem exists only in the original layer. Using Right Click > Duplicate on the affected layer results in a new layer with the same problem. Using Right Click > Save As and saving as a new geopackage then adding that to the map results in a layer with no problem, and pasting the style to this layer results in a layer with the same style and no problem.
      – Sangster
      yesterday










    • Properties > Rendering > Scale dependent visibility is unchecked although Properties > Labels > Rendering > Scale dependent visibility is configured to show labels when zoomed in. Disabling this for labels does not prevent the points from disappearing. GeoPackage here: link
      – Sangster
      yesterday


















    • I noticed that you said you copied the layer styles to replicate the problem. Can you confirm that there isn't a scale level set in the style which may be making points of a certain type not be visible? Also is there any chance of making the geopackage and style available for testing?
      – Andrew Jeffrey
      Dec 5 at 0:19










    • Copying the style and pasting it to a new layer does not carry the problem forward. The problem exists only in the original layer. Using Right Click > Duplicate on the affected layer results in a new layer with the same problem. Using Right Click > Save As and saving as a new geopackage then adding that to the map results in a layer with no problem, and pasting the style to this layer results in a layer with the same style and no problem.
      – Sangster
      yesterday










    • Properties > Rendering > Scale dependent visibility is unchecked although Properties > Labels > Rendering > Scale dependent visibility is configured to show labels when zoomed in. Disabling this for labels does not prevent the points from disappearing. GeoPackage here: link
      – Sangster
      yesterday
















    I noticed that you said you copied the layer styles to replicate the problem. Can you confirm that there isn't a scale level set in the style which may be making points of a certain type not be visible? Also is there any chance of making the geopackage and style available for testing?
    – Andrew Jeffrey
    Dec 5 at 0:19




    I noticed that you said you copied the layer styles to replicate the problem. Can you confirm that there isn't a scale level set in the style which may be making points of a certain type not be visible? Also is there any chance of making the geopackage and style available for testing?
    – Andrew Jeffrey
    Dec 5 at 0:19












    Copying the style and pasting it to a new layer does not carry the problem forward. The problem exists only in the original layer. Using Right Click > Duplicate on the affected layer results in a new layer with the same problem. Using Right Click > Save As and saving as a new geopackage then adding that to the map results in a layer with no problem, and pasting the style to this layer results in a layer with the same style and no problem.
    – Sangster
    yesterday




    Copying the style and pasting it to a new layer does not carry the problem forward. The problem exists only in the original layer. Using Right Click > Duplicate on the affected layer results in a new layer with the same problem. Using Right Click > Save As and saving as a new geopackage then adding that to the map results in a layer with no problem, and pasting the style to this layer results in a layer with the same style and no problem.
    – Sangster
    yesterday












    Properties > Rendering > Scale dependent visibility is unchecked although Properties > Labels > Rendering > Scale dependent visibility is configured to show labels when zoomed in. Disabling this for labels does not prevent the points from disappearing. GeoPackage here: link
    – Sangster
    yesterday




    Properties > Rendering > Scale dependent visibility is unchecked although Properties > Labels > Rendering > Scale dependent visibility is configured to show labels when zoomed in. Disabling this for labels does not prevent the points from disappearing. GeoPackage here: link
    – Sangster
    yesterday










    1 Answer
    1






    active

    oldest

    votes

















    up vote
    2
    down vote













    Ive seen this happen with a out of date spatial index file. Have look in the directory where the shape file is and if there is a file with the same name as the shape file with a ".qix" extension try deleting it and then view the layer again in QGIS.



    If you're not using shape file? You can try going into the layer Properties > Source > Create Spatial index, to recreate the index. As shown in image below.



    enter image description here






    share|improve this answer























    • Thanks for your help, in this case the data is stored in GeoPackage format.
      – Sangster
      Nov 25 at 22:41










    • Can you amend your question to contain that detail. It may help people recognize the problem if they have encountered it before and subsequently provide you with a solution.
      – Andrew Jeffrey
      Nov 25 at 22:57










    • Clicking the Create Spatial Index button results in a message box saying it was successful, but the problem persists. I also tried the Update Extents button afterwards but don't see any changes. The question has been amended to include that the layer is in GeoPackage format.
      – Sangster
      Nov 26 at 4:49











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "79"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f303688%2fpoint-disappears-when-zooming-in-qgis-3-4-1%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    Ive seen this happen with a out of date spatial index file. Have look in the directory where the shape file is and if there is a file with the same name as the shape file with a ".qix" extension try deleting it and then view the layer again in QGIS.



    If you're not using shape file? You can try going into the layer Properties > Source > Create Spatial index, to recreate the index. As shown in image below.



    enter image description here






    share|improve this answer























    • Thanks for your help, in this case the data is stored in GeoPackage format.
      – Sangster
      Nov 25 at 22:41










    • Can you amend your question to contain that detail. It may help people recognize the problem if they have encountered it before and subsequently provide you with a solution.
      – Andrew Jeffrey
      Nov 25 at 22:57










    • Clicking the Create Spatial Index button results in a message box saying it was successful, but the problem persists. I also tried the Update Extents button afterwards but don't see any changes. The question has been amended to include that the layer is in GeoPackage format.
      – Sangster
      Nov 26 at 4:49















    up vote
    2
    down vote













    Ive seen this happen with a out of date spatial index file. Have look in the directory where the shape file is and if there is a file with the same name as the shape file with a ".qix" extension try deleting it and then view the layer again in QGIS.



    If you're not using shape file? You can try going into the layer Properties > Source > Create Spatial index, to recreate the index. As shown in image below.



    enter image description here






    share|improve this answer























    • Thanks for your help, in this case the data is stored in GeoPackage format.
      – Sangster
      Nov 25 at 22:41










    • Can you amend your question to contain that detail. It may help people recognize the problem if they have encountered it before and subsequently provide you with a solution.
      – Andrew Jeffrey
      Nov 25 at 22:57










    • Clicking the Create Spatial Index button results in a message box saying it was successful, but the problem persists. I also tried the Update Extents button afterwards but don't see any changes. The question has been amended to include that the layer is in GeoPackage format.
      – Sangster
      Nov 26 at 4:49













    up vote
    2
    down vote










    up vote
    2
    down vote









    Ive seen this happen with a out of date spatial index file. Have look in the directory where the shape file is and if there is a file with the same name as the shape file with a ".qix" extension try deleting it and then view the layer again in QGIS.



    If you're not using shape file? You can try going into the layer Properties > Source > Create Spatial index, to recreate the index. As shown in image below.



    enter image description here






    share|improve this answer














    Ive seen this happen with a out of date spatial index file. Have look in the directory where the shape file is and if there is a file with the same name as the shape file with a ".qix" extension try deleting it and then view the layer again in QGIS.



    If you're not using shape file? You can try going into the layer Properties > Source > Create Spatial index, to recreate the index. As shown in image below.



    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 25 at 22:55

























    answered Nov 23 at 7:01









    Andrew Jeffrey

    1,266719




    1,266719












    • Thanks for your help, in this case the data is stored in GeoPackage format.
      – Sangster
      Nov 25 at 22:41










    • Can you amend your question to contain that detail. It may help people recognize the problem if they have encountered it before and subsequently provide you with a solution.
      – Andrew Jeffrey
      Nov 25 at 22:57










    • Clicking the Create Spatial Index button results in a message box saying it was successful, but the problem persists. I also tried the Update Extents button afterwards but don't see any changes. The question has been amended to include that the layer is in GeoPackage format.
      – Sangster
      Nov 26 at 4:49


















    • Thanks for your help, in this case the data is stored in GeoPackage format.
      – Sangster
      Nov 25 at 22:41










    • Can you amend your question to contain that detail. It may help people recognize the problem if they have encountered it before and subsequently provide you with a solution.
      – Andrew Jeffrey
      Nov 25 at 22:57










    • Clicking the Create Spatial Index button results in a message box saying it was successful, but the problem persists. I also tried the Update Extents button afterwards but don't see any changes. The question has been amended to include that the layer is in GeoPackage format.
      – Sangster
      Nov 26 at 4:49
















    Thanks for your help, in this case the data is stored in GeoPackage format.
    – Sangster
    Nov 25 at 22:41




    Thanks for your help, in this case the data is stored in GeoPackage format.
    – Sangster
    Nov 25 at 22:41












    Can you amend your question to contain that detail. It may help people recognize the problem if they have encountered it before and subsequently provide you with a solution.
    – Andrew Jeffrey
    Nov 25 at 22:57




    Can you amend your question to contain that detail. It may help people recognize the problem if they have encountered it before and subsequently provide you with a solution.
    – Andrew Jeffrey
    Nov 25 at 22:57












    Clicking the Create Spatial Index button results in a message box saying it was successful, but the problem persists. I also tried the Update Extents button afterwards but don't see any changes. The question has been amended to include that the layer is in GeoPackage format.
    – Sangster
    Nov 26 at 4:49




    Clicking the Create Spatial Index button results in a message box saying it was successful, but the problem persists. I also tried the Update Extents button afterwards but don't see any changes. The question has been amended to include that the layer is in GeoPackage format.
    – Sangster
    Nov 26 at 4:49


















    draft saved

    draft discarded




















































    Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


    • Please be sure to answer the question. Provide details and share your research!

    But avoid



    • Asking for help, clarification, or responding to other answers.

    • Making statements based on opinion; back them up with references or personal experience.


    To learn more, see our tips on writing great answers.





    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


    Please pay close attention to the following guidance:


    • Please be sure to answer the question. Provide details and share your research!

    But avoid



    • Asking for help, clarification, or responding to other answers.

    • Making statements based on opinion; back them up with references or personal experience.


    To learn more, see our tips on writing great answers.




    draft saved


    draft discarded














    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f303688%2fpoint-disappears-when-zooming-in-qgis-3-4-1%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown





















































    Required, but never shown














    Required, but never shown












    Required, but never shown







    Required, but never shown

































    Required, but never shown














    Required, but never shown












    Required, but never shown







    Required, but never shown







    Popular posts from this blog

    Plaza Victoria

    In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

    How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...