qgis/Quantum-GIS — pull request #451 by mhugent (2013-03-01 16:38:42+00:00)
Title: Keep CRS for db layers with type GEOMETRY + more flexible type selection

Currently, if a db layer is of type GEOMETRY (or not contained in geometry_columns) and the search thread does not find an entry, it is always needed to enter the srid number. However, the table usually has already an srid. This patch keeps the srid if it is present.

Additionally, if the search thread has detected geometry objects, those types are added to the dialog. But if the user wants to open the layer with a new type (e.g. needs polygons even if currently there is no polygon in the table), it is not possible now. The patch always adds an extra line to select the type.

Please review.