include the offending sql in the error dialog box.
Also fix the remaining part of ticket #131 - the code wasn't coping
correctly with blank data fields.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5637 c8812cc2-4d05-0410-92ff-de0c093fc19c
to the spatial reference system database (it was never returning a
result because the proj4 string didn't have '+no_defs' on the end)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5635 c8812cc2-4d05-0410-92ff-de0c093fc19c
When a new WMS layer is opened and it is the first layer on the canvas, the project projection is now copied from that used when selecting that WMS layer.
Previously this was hard coded to EPSG:4326 / WGS 84.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5627 c8812cc2-4d05-0410-92ff-de0c093fc19c
This is because QgsProjectionSelector::setSelectedSRSID() now works as advertised when called externally.
It didn't work before, because setSelectedSRSID() did not make sure the tree widget was pre-populated with the projection list.
This commit is a pre-requisite to fixing #11. This is so that we can actually perform the experiment to prove future bug fixes against #11.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5618 c8812cc2-4d05-0410-92ff-de0c093fc19c
.shp file (if it is read-only, qgis then tries to open it read-only,
so the OGR error message is unnecessary).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5617 c8812cc2-4d05-0410-92ff-de0c093fc19c
instead of separate icons in separate columns. Still only applies to
the actual layer file entry in the legend, but removes the need for
the extra columns. However, I'm hopeless at icon drawing...
These changes are a variation on the suggestions in ticket #191.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5616 c8812cc2-4d05-0410-92ff-de0c093fc19c
I'm not sure why this functionality hasn't been done before, as it seemed so trivial to implement?
The main benefit to its implementation is that in large layers, the user doesn't have to wait for the whole layer to draw before he can restart work on a project (which is particularly important since we currently can no longer hit Esc to halt a redraw).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5613 c8812cc2-4d05-0410-92ff-de0c093fc19c
This appears to be because of the use of QWidget::removeChild in QgsComposer::removeWidgetChildren, which is a Qt3 idiom (it doesn't appear in the Qt4.1 API). A QWidget::setParent(0) idiom is now used instead.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5611 c8812cc2-4d05-0410-92ff-de0c093fc19c
With the Identify tool on a WMS layer, now send a query to the WMS server *only* on those layers that the WMS server had already declared queryable. This avoids the server returning an error on un-queryable layers.
Also, QgsWmsProvider::identifyAsHtml() is renamed to QgsWmsProvider::identifyAsText() to better identify what it does. Commentary, and other dependent variable and function names have also been updated to suit.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5606 c8812cc2-4d05-0410-92ff-de0c093fc19c
Unfortunately I don't have access to a proxy to test, so if I could get some independent verification it would be appreciated.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5605 c8812cc2-4d05-0410-92ff-de0c093fc19c
Now, the fact the WMS raster provider was used, the layer names, layer styles and image formatting is stored in the project file (and restores OK). However upon initial testing the extent doesn't appear to be restored. I will need to address that later.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5603 c8812cc2-4d05-0410-92ff-de0c093fc19c
when getting the user to fill in the column values for a just digitised
feature).
Also add tr() to some user visible text.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5602 c8812cc2-4d05-0410-92ff-de0c093fc19c
SQL statement - the database will ccorrectly interpret the quoted
text based on the data type of the column (e.g., text or numeric).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5601 c8812cc2-4d05-0410-92ff-de0c093fc19c
Instead, for copying, the geometry and attributes are now retrieved from the provider in a random-access fashion.
For starting editing, the behaviour is regressed to the pre-r5489 idiom of geometry being cached as part of the screen redraw in editing mode.
This returns to the much better response when copying from large layers, with the additional benefit of copying selected features that had been panned off the canvas (previously a bug).
However, only Postgres and OGR providers have been updated to suit. Hopefully this is enough for a 0.8 release.
Bonus feature: The layer properties now shows what access method is used to access individual geometries (random or sequential)
Since this is a large change it would be appreciated if others can double checking my testing. (I have tested against PostGIS and MapInfo tables, and many different geometry adding/vertex editing combinations.)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5595 c8812cc2-4d05-0410-92ff-de0c093fc19c
QGIS used to do this already before the move to Qt4 - however the new QIcon idiom only seems to allow for square icons, therefore it is easier to split the results out to several columns and give them their own QIcons.
I can see room for improvement after this commit:
1. Overview and Editing icons can be also shown beside the top-level layer name, to avoid having to enable "Show file groups".
2. There also seems to be a "projection not valid" icon floating around, however this hasn't been addressed in this commit. Perhaps we need to do something for it too.
3. The column sizes have been hard-coded to arbitrary values. I have no problem if these get tweaked further.
This commit addresses trac ticket #117.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5594 c8812cc2-4d05-0410-92ff-de0c093fc19c
If programmers wish to add more derived attributes in future, they can use the new QgsIdentifyResults::addDerivedAttribute() function.
This commit should address trac ticket #100.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5592 c8812cc2-4d05-0410-92ff-de0c093fc19c