<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)">Hey Johanna</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)">Some things to check</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)">1. Your records have a srid recorded that aligns with the srid recorded for the dataset. You can check this by querying in SQL Server with query "select <geom_col>.STSrid from <table>". Compare this with what you have recorded in the geometry_columns table for the table. They should match otherwise they are filtered when connecting to the dataset. </div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)">2. Check the geometry types are also the same as what is being recorded in geometry_columns table.  "select <geom_col>.STGeometryType() from <table>". This is often the case for us and usually is a issue with geometry collections particularly if you use tools like FME to fix geometry as it tends to mangle things further.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)">3. Check geometry validity within SQL Server. I think that QGIS filters out invalid geometry in some cases so you won't detect it in qgis if they are filtered. I am not 100% sure this happens with newer versions of QGIS but I have seen it in the past. "select <geom_col>.IsValidDetailed() from <table> where <geom_col>.STIsValid() = 0"</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)">Hope that helps</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,51,51)">Luke</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 9, 2021 at 8:20 AM Johanna Botman <<a href="mailto:johannab@melton.vic.gov.au">johannab@melton.vic.gov.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks Bo Victor for that suggestion, but that is not the problem.<br>
I should have mentioned that I had already tried changing the symbology.<br>
<br>
<br>
Johanna Botman<br>
<br>
Assets / GIS Officer - Melton City Council<br>
<br>
<br>
<br>
Hi Johanna -<br>
<br>
I suspect, you have some symbology issues with the layer/table from DB1<br>
<br>
Try to change the symbology from "whatever it is now" to a "Single symbol" for the DB1 layer and check if your missing objects appear<br>
<br>
Med venlig hilsen / Kind regards<br>
<br>
Bo Victor Thomsen<br>
<br>
Den 08-06-2021 kl. 08:39 skrev Johanna Botman:<br>
><br>
> Hi,<br>
><br>
> I have a situation where I have two SQL databases and I have to move<br>
> data from one to the other. Always the same direction from DB1 to DB2<br>
><br>
> My issue is that the items show in some tables in DB1 but do not<br>
> display in QGIS.<br>
> I can select from the table, but I can?t select items on the QGIS<br>
> canvas<br>
> I can cut and paste from DB1 to DB2 and the items display in DB2.<br>
> I can manually create an item in an affected table in DB1 and it will<br>
> display.<br>
> When I hover with my Add [polygon/line/point] tool, the square to show<br>
> where the vertices (for snapping) are displayed as I move my cursor<br>
> over them.<br>
> When I run the Validate Geometry tool, the results are that I have<br>
> valid geometry and those layers are displayed.<br>
> In SQL server manager I can see the spatial results for those tables<br>
> in DB1.<br>
> Projections are the same for each DB<br>
> There are no Layer Scale Visibility settings in play for either DB<br>
> It does not affect all tables in DB1.<br>
><br>
> Can anyone suggest some further troubleshooting strategies?<br>
> *Johanna Botman*<br>
><br>
> Assets / GIS Officer ? Melton City Council<br>
<br>
***********************************************************************************<br>
The information in this message is privileged and confidential, intended only for the use of the individual or entity named above. If you are not the intended recipient you are hereby notified to delete the message and that any dissemination, copying or use of its content is strictly prohibited. If you have received this message in error please notify the Melton City Council.<br>
***********************************************************************************<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="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" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><br><u style="font-family:"times new roman",serif"><font size="4">Luke Bassett</font></u><br style="font-family:"trebuchet ms",sans-serif"><b><a href="mailto:lukembassett@gmail.com" target="_blank"></a></b>Melbourne Australia<br></div>