<div dir="ltr">
<div>Hi, <br></div><div><br></div><div>I have the spatial metadata in the 
both MDSYS.ALL_SDO_GEOM_METADATA and USER_SDO_GEOM_METADATA views.</div><div>The
 SRID is well retrieved by Qgis in the add Oracle layer menu. But when I
 add the layer to the project QGIS tells me that the CRS is not defined 
(and it takes the default one).<br></div><div><br></div><div>The other problem is on the primary key that is not retrieved in the add Oracle layer menu at all. <br></div><div>I saw in your link that there are 2 functions about primary key : 
<span>determinePrimaryKey</span>() and 
<span>determineAlwaysGeneratedKeys</span>().</div><div>I don't 
really understand what means AlwaysGeneratedKeys but what I'm sure about
 is that the request made in the function works if I run it in SQL 
Developer (I get the column name of the primary key for the table 'X') 
whereas the request in 
<span>determinePrimaryKey</span> can't as the table/view all_tab_identity_cols doesn't exists in my database !</div><font color="#888888"><div><br></div><div><br></div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Jérémie.</div></div></div></div></div></div></div></div></font>

</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 18 févr. 2020 à 16:45, SPeillet <<a href="mailto:sebastien.peillet@oslandia.com">sebastien.peillet@oslandia.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I add my few knowledge about the srid definition. Currently oracle provider<br>
only check srid in the MDSYS.ALL_SDO_GEOM_METADATA view and not the<br>
MDSYS.USER_SDO_GEOM_METADATA.<br>
<br>
cf.<br>
<a href="https://github.com/qgis/QGIS/blob/master/src/providers/oracle/qgsoracleprovider.cpp#L2635" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/blob/master/src/providers/oracle/qgsoracleprovider.cpp#L2635</a><br>
<br>
I made some changes about this on my side to check it on both views, I will<br>
do a PR soon.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html</a><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></blockquote></div>