Hi devs, <br>working on the import layer feature I noticed that there&#39;s a difference <br>when getting the layer CRS using the PG and SL provider&#39;s crs() method.<br><br>While the PG crs() calls the QgsCoordinateReferenceSystem::createFromSrid, <br>

the SL crs method instead uses the QgsCoordinateReferenceSystem::createFromPrj4.<br><br>This is an inconsistent behavior. <br><br>When I load a table with geometry and srid 3003, <br>if the source is a PG database I get a layer with the QGis 3003 definition <br>

that contains towgs84 params, otherwise from SL I get a layer with a <br>custom CRS, similar to the QGis one but without the towgs84 params.<br><br>This creates some problems trying to import the SL layer into a PG database <br>

because QGis is unable to get the postgisSrid from the SL layer with the <br>custom CRS, even if it should be 3003.<br clear="all"><br>I think both should work in the same manner, but I don&#39;t know if it&#39;s more <br>

correct to get crs from srid (in this case both the layers will use the QGis <br>crs definition) or from the proj4string.<br><br>Any idea?<br><br>-- <br>Giuseppe Sucameli<br>