2569 Commits

Author SHA1 Message Date
mhugent
e10e2a94cd added a 'createSpatialIndex' function to QgsVectorDataProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3339 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-08 19:46:28 +00:00
timlinux
40510df986 fix small bug with updates for custom user projections.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3338 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-08 13:44:29 +00:00
timlinux
65afe32311 More enhancements to user projections dialog.
If no ellipsoid of proj keywords are added to parameters list, these are added using the selected combo entries.
If proj and ellps are set, and combos dont match, combos are updated accordingly.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3337 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-08 10:45:36 +00:00
mhugent
34e74af6d6 set tab focus to the ok button in QgsDlgVectorLayerProperties (bug 1195779), changed include in qgsprojectionselector such that qgis builds on my pc
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3336 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-08 05:52:55 +00:00
gsherman
a6afcbea35 Fix for compile error. Makefile.am is still not consistent with others.
WIN32 #ifdef has been temporarily removed.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3335 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-08 03:46:40 +00:00
timlinux
7e6f6c99e1 Small const fixes.
Parse proj string and set combos accordingly when save is pressed.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3334 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-08 01:20:02 +00:00
timlinux
2549afe4c1 Committed my 1.8 hack by mistake
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3333 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-07 20:31:18 +00:00
timlinux
0c35108367 Moved const declaratins into qgis.h
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3332 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-07 18:10:54 +00:00
gsherman
97feefe017 Added tooltips to the render and projector in the statusbar
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3331 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-07 16:17:39 +00:00
timlinux
8310ab19a0 Check that user defined proj parameters are valid before allowing them to be inserted into the qgis.db tbl_srs.
Check if this is the first user srs and if so ensure that its srs_id=10000


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3330 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-07 14:31:24 +00:00
timlinux
3f3f898450 Update custom projection dialog to use renamed and restructured qgis.db. Still under construction.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3329 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-07 12:41:19 +00:00
timlinux
88ff44cd05 Gui enhancements for search by srid or epsg
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3328 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-07 07:11:19 +00:00
gsherman
81ab40470b Standardized rules to match those used elsewhere in qgis
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3327 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-07 06:07:36 +00:00
mhugent
3c9927a925 added a QgsOgrProvider::createSpatialIndex() method. This method creates a .qix index file for shape files. Note that there is currently no access from the GUI. If you already want to try this feature, just add a call to createSpatialIndex() to the constructor of QgsOgrProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3326 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-06 18:35:17 +00:00
timlinux
8f859294f7 Updates of qgis.db so that it increments in all versions of sqlite3.x
Note that because of issues relating to the pkey being reset to 0 if all records are deleted, I am going to write some logic into the custom projection builder to force the insert srs_id to 10000 if no records exist already. The user srs_id's must be >= 10000 to avoid conflicts with srs's defined in the system srs.db.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3325 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-06 11:57:37 +00:00
timlinux
d6edb2b7a6 Added options to search/select projections by srid and epsg (whihc in most cases are the same anyway).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3324 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-06 02:31:35 +00:00
timlinux
708809bca7 Minor changes to comments
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3323 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 23:53:36 +00:00
timlinux
f1bba66ff1 Removed the 'nonsense' code radim commented out. Removed a new std::out debug line that was killing ghistogram gneeration performance.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3322 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 23:14:52 +00:00
mcoletti
88ad20356b Restoring of broken QgsProject layers now also works for rasters.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3321 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 22:37:16 +00:00
mcoletti
0d4951cb98 version 0.6devel18
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3320 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 21:13:14 +00:00
mcoletti
3c0d88e42d Makefile :
- added qgsexception.cpp

qgisapp.cpp :
  - if reading a project file yields missing layers, now will prompt user for
    new layer data source location [0]

qgsexception :
  - added QgsProjectBadLayerException [1]

qgsproject :
  - added new read that accepts QDomNode parameter [2]

Notes:

[0] Sadly this currently only works for vector layers with physical file data
    sources.  Raster support should be added next as well as for other storage
    media types.  (E.g., databases, URLs, etc.)

[1] Thrown when, of course, QgsProject::read() encounters a layer that cannot
    be loaded.

[2] This is part of the mechanism by which qgisapp can re-ask the canonical
    QgsProject instance to open the given layer represented by the QDomNode.

                                     ###

    Also note that the directory path is remembered after the first bad layer
    file dialog and is reused if there is more than one layer that needs to be
    reloaded.

Bugs:

    The new layer signal isn't emitted after layers are successfully
    reloaded.  Thus any plug-ins dependent on that signal will not be aware
    that a project has been successfully loaded.  Current workaround is to
    reload the project after saving the corrected data source paths.

    The visual map extent doesn't appear to be restored, though that may be a
    by-product of ongoing projection implementation efforts.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3319 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 21:06:00 +00:00
rabla
2a6bffaa87 histogram fixed for PALETTE raster
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3318 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 14:52:41 +00:00
rabla
bd316d0255 use raster values instead of colors! for statistics
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3317 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 14:51:29 +00:00
rabla
a4a2c4680b selection follows box
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3316 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 10:03:52 +00:00
rabla
fffcfdd38c postscript font scale
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3315 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 10:03:02 +00:00
timlinux
b8bd30b1a2 Show on the fly projection enabled / disabled status on the status bar. Clicking the icon brings up the project properties dialog.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3314 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 09:45:42 +00:00
rabla
8092f0dfe7 postscript font scale
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3313 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-05 09:37:30 +00:00
timlinux
94ebb74d0c Fixed problems when Zoom to All and Zoom to Selected Layer are used and on the fly projection is disabled. Eventually my thought is to make on the fly projection default behaviour, but for now I think its good to support both options. Fix was to do inverse extents transform conditionally based on the project property that tells us if OTF projections are enabled.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3312 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-04 23:22:04 +00:00
rabla
44afca16dc size 'fix'
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3311 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-04 17:07:12 +00:00
rabla
39fb320205 connect QgsGrassModuleInput to QgsMapCanvas signals addedLayer and removedLayer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3310 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-04 09:21:27 +00:00
rabla
a9f578ed85 write to history if a map was updated in QGIS
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3309 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-04 09:00:52 +00:00
rabla
d3ac9af1e3 set program name
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3308 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-04 08:59:40 +00:00
rabla
00b3cc7149 correct raster resolution also for image/svg
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3307 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-04 08:40:56 +00:00
rabla
94c6c9f40b oversampling removed
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3306 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-04 08:36:44 +00:00
rabla
a16d62986f close layer/map properly
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3304 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-03 16:06:57 +00:00
rabla
8e67f54f14 raster follows requested resolution for Postscript
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3303 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-03 15:13:29 +00:00
rabla
2ff028640b TODO setpagedevice
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3302 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-03 13:20:54 +00:00
rabla
5a14233906 raise after file dialog
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3301 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-03 11:54:13 +00:00
rabla
68890a6b5b use canonical path for location dir
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3300 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-03 09:46:42 +00:00
rabla
53088a9c01 menu removed
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3299 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-03 09:41:42 +00:00
rabla
b49a464d9a get current text if updated
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3298 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-02 16:45:13 +00:00
timlinux
9cf908c0e6 Fixed bug in createFromSrid. Now postgresql on the fly projection works!
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3296 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-02 13:40:58 +00:00
timlinux
3a2cbbab0d Commit Slovak translation for Lubos Balazovic
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3295 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-02 13:14:52 +00:00
timlinux
855fc0c909 bug fix for user vs system srs.db checking (I had put it into the createFromSrid method instead of the createFromSrsId method...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3294 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-02 11:57:27 +00:00
timlinux
f5e4f23ec2 Read user proj list from resructured qgis.db
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3293 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-02 11:13:40 +00:00
timlinux
92e78103d8 Added logic so when a user clicks on a user defined srs, its proj string is shown in the text window. Cant test until qgis.db works for me too...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3292 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-02 11:04:05 +00:00
timlinux
758b5a0a63 Added logic to detect if a srsid is a user defined or system defined one.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3291 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-02 10:24:10 +00:00
gsherman
45f0221f6b Keys in tbl_srs are autoincremented, starting at 100,000.
The schema for tbl_srs and vw_srs match those in the srs.db database.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3290 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-02 05:16:35 +00:00
timlinux
8bfd48b15a Default projection to wgs84
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3289 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-01 22:57:01 +00:00
timlinux
1b3bad859d Aliased view output fields (this fixes problems with projection list not displaying in sqlite3 versions > 3.0)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3288 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-01 21:11:53 +00:00