39191 Commits

Author SHA1 Message Date
timlinux
201e5e8b6e Fixed nasty bugwhere x and y dim for raster were both assigned raster x dim value. Added X, Y and Nodata info to general tab of properties dialog. Added placeholder that will in future be used to show a thumbnail preview on general tab.
git-svn-id: http://svn.osgeo.org/qgis/trunk@644 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-30 06:10:39 +00:00
gsherman
0c43d76dec removed stale ui file (replaced by qgshelpviewerbase.ui)
git-svn-id: http://svn.osgeo.org/qgis/trunk@643 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-30 03:44:58 +00:00
timlinux
2bbfbe716f This commit adds support for alternate band mappings of multiband imagery. For example you can use it to map Landsat TM bands 4,5 and 7 to visible colours Red, Green and Blue respectively. Multiband images can also be rendered in grayscale or pseudocolor. I made quite a few changes to get the new band referencing system working including autogenerating unique name aliases for each band and providing methods to look up a band given its number or versa visa. I think I am at a stage where the raster implementation is pretty much feature complete as far as v0.1 goes and any commits that follow should just be bugfixes to make sure rasters work as advertise, or very minor tweaks.
Screenshots of the Mulitband mapping in action are available here:

http://tim.suttonfamily.co.uk/cgi-bin/ids/index.cgi?mode=image&album=%2Fqgis&image=multiband_default_view_123rgb.png&maxDimension=800
http://tim.suttonfamily.co.uk/cgi-bin/ids/index.cgi?mode=image&album=/qgis&image=multiband_view_451rgb.png
http://tim.suttonfamily.co.uk/cgi-bin/ids/index.cgi?mode=image&album=/qgis&image=multiband_view_457rgb.png


git-svn-id: http://svn.osgeo.org/qgis/trunk@642 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 16:23:13 +00:00
timlinux
264ab6b6ed Added function to get a band name given its number. Implemented speedups on opening raster layer properties dialog.
git-svn-id: http://svn.osgeo.org/qgis/trunk@641 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 10:57:30 +00:00
mhugent
6890c21127 fixed problems when opening qgis projects
git-svn-id: http://svn.osgeo.org/qgis/trunk@640 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 09:41:00 +00:00
timlinux
c3f475c804 V0.1 release clean ups: Hid advanced symbology tab and show debug overlay checkbox
git-svn-id: http://svn.osgeo.org/qgis/trunk@639 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 07:24:49 +00:00
timlinux
75a35d7c31 Raster layer properties dialog clean up: rearanged icons so it is broader than tall to make better use of screen real estate on low res screens,
git-svn-id: http://svn.osgeo.org/qgis/trunk@638 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 07:22:56 +00:00
gsherman
1656fa8548 wait cursor during processsing
git-svn-id: http://svn.osgeo.org/qgis/trunk@637 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 02:38:20 +00:00
gsherman
7f18c61552 Modifications to support the new unified property and symbology dialog to replace all existing property and symbology dialogs (INCOMPLETE)
git-svn-id: http://svn.osgeo.org/qgis/trunk@636 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 02:35:12 +00:00
gsherman
5d6e29ff1a Added new help viewer and vector layer properties sourcefiles
git-svn-id: http://svn.osgeo.org/qgis/trunk@635 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 02:34:43 +00:00
gsherman
ac964a2198 new unified property and symbology dialog to replace all existing property and symbology dialogs (INCOMPLETE)
git-svn-id: http://svn.osgeo.org/qgis/trunk@634 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 02:33:54 +00:00
gsherman
4029db1453 primitive help viewer
git-svn-id: http://svn.osgeo.org/qgis/trunk@633 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 02:29:50 +00:00
gsherman
14b85907f0 added hooks for help viewer
git-svn-id: http://svn.osgeo.org/qgis/trunk@632 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 02:25:59 +00:00
gsherman
c7a1722259 changed signature of constructor (char * to const char *)
git-svn-id: http://svn.osgeo.org/qgis/trunk@631 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 02:21:56 +00:00
gsherman
c72879e6ca changed Cancel button to Close
git-svn-id: http://svn.osgeo.org/qgis/trunk@630 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 02:20:43 +00:00
timlinux
ce03e5b514 Support for changes made to dialog ui.
git-svn-id: http://svn.osgeo.org/qgis/trunk@629 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 01:10:07 +00:00
timlinux
d367c519be Neatened up layout of dialog.
git-svn-id: http://svn.osgeo.org/qgis/trunk@628 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 01:03:39 +00:00
gsherman
1b61f9f496 fixed bug with creating buffer in postgres 7.3.x
git-svn-id: http://svn.osgeo.org/qgis/trunk@627 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-29 00:14:13 +00:00
mhugent
6482e1ab65 fixed some problems due to changes in the vectorlayerproperties and in the renderer dialogs
git-svn-id: http://svn.osgeo.org/qgis/trunk@626 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 15:11:51 +00:00
mhugent
8c91ca4efb New mechanism that speeds up the selection of legend type by storing objects of renderer, renderer dialog and qpixmap in qgsvectorlayerproperties and applying it only if the ok-button or the apply button is pressed. Todo: fix various problems, clean up the code, document it propertly
git-svn-id: http://svn.osgeo.org/qgis/trunk@625 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 14:01:31 +00:00
timlinux
f7c8931a43 This is a major replumbing job of the calculate stats routines. Basically before we used band names to reference any band, but there is a pro
blem with this in that I have discovered that multiband imagery can have more than one band of the same name. Consequently I am reworking eve
rything to reference bands by there number. THere are also numerous other bugfixes here. This commit has been tested to work with single band
 grayscale imagery and paletted images, but not with multiband images (there is still some work to do on this). Also the properties dialog cu
 rrently scans stats for each band - this inefficient, I know about this and will submit a fix for this over the next day or two. I expect the
  multiband support to be commintted in the next couple of days too. Lastly, this patch includes a merge of any other commits not made by myse
  lf over the previous few days.


git-svn-id: http://svn.osgeo.org/qgis/trunk@624 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 09:05:05 +00:00
timlinux
1adfc7c4e8 This is a major replumbing job of the calculate stats routines. Basically before we used band names to reference any band, but there is a problem with this in that I have discovered that multiband imagery can have more than one band of the same name. Consequently I am reworking everything to reference bands by there number. THere are also numerous other bugfixes here. This commit has been tested to work with single band grayscale imagery and paletted images, but not with multiband images (there is still some work to do on this). Also the properties dialog currently scans stats for each band - this inefficient, I know about this and will submit a fix for this over the next day or two. I expect the multiband support to be commintted in the next couple of days too. Lastly, this patch includes a merge of any other commits not made by myself over the previous few days.
git-svn-id: http://svn.osgeo.org/qgis/trunk@623 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 09:04:28 +00:00
timlinux
30991df971 Added DEM to dem. Added 'other' filter which shows all files and is useful for testing to see if other GDAL supported files will work prior to creating a specific filter for them.
git-svn-id: http://svn.osgeo.org/qgis/trunk@622 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 08:41:42 +00:00
gsherman
4a546ca8a6 logic for tracking state of the project/map canvas so user can be prompted to save prior to exiting, closing, opening, or creating a new project file
git-svn-id: http://svn.osgeo.org/qgis/trunk@621 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 05:55:27 +00:00
gsherman
df14f2695e added pixmaps to fill style buttons
git-svn-id: http://svn.osgeo.org/qgis/trunk@620 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 05:53:30 +00:00
gsherman
891f4ab02c Updated TODO list
git-svn-id: http://svn.osgeo.org/qgis/trunk@619 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 04:53:14 +00:00
gsherman
8aa9ada994 Made addVectorLayer function public so it can be used from other dialogs
git-svn-id: http://svn.osgeo.org/qgis/trunk@616 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 02:10:24 +00:00
gsherman
e29991eed8 Changed name of setlayerName function to setLayerName
Added internalName to store the name of the datasource used at load time. This allows mangling of the display name without affecting the name needed to access the layer via its datasource.


git-svn-id: http://svn.osgeo.org/qgis/trunk@615 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 02:09:10 +00:00
gsherman
8c520c2369 Changed name of setlayerName function to setLayerName
git-svn-id: http://svn.osgeo.org/qgis/trunk@614 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 02:07:56 +00:00
gsherman
58139133d8 Tweaked display name to capitalize the first letter from name of layer
git-svn-id: http://svn.osgeo.org/qgis/trunk@613 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 02:05:06 +00:00
gsherman
8ca1965c7f Tweaked display name to capitalize the first letter and strip schema/geometry column from name of PG layers
git-svn-id: http://svn.osgeo.org/qgis/trunk@612 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 02:03:52 +00:00
gsherman
3a5a61c09d Added ability to load a layer by double clicking on it in the list of PG layers
git-svn-id: http://svn.osgeo.org/qgis/trunk@611 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 01:58:52 +00:00
gsherman
c8a3a98644 Updated status of existing todo items
git-svn-id: http://svn.osgeo.org/qgis/trunk@610 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-28 01:53:27 +00:00
timlinux
e798b7c8e3 Added *.DEM extension for usgs dem file filter. It aint pretty but we need some way to manage upper case extensions....
git-svn-id: http://svn.osgeo.org/qgis/trunk@609 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-27 10:02:48 +00:00
mhugent
a80235de6d removed a bug related to loading of symbology
git-svn-id: http://svn.osgeo.org/qgis/trunk@608 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-27 07:56:23 +00:00
gsherman
8052c0a0cd Updated TODO list
git-svn-id: http://svn.osgeo.org/qgis/trunk@607 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-27 07:10:15 +00:00
gsherman
020e92a1a8 removed setModal(true) from the dialog to prevent Qt 3.1 compilation error
git-svn-id: http://svn.osgeo.org/qgis/trunk@606 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-27 06:14:09 +00:00
gsherman
c070be862b fix to plugin installation location
git-svn-id: http://svn.osgeo.org/qgis/trunk@605 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-27 06:09:44 +00:00
gsherman
b54897e15f fix to plugin installation and detection code. Also solve qt 3.1 compile problems
git-svn-id: http://svn.osgeo.org/qgis/trunk@604 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-27 06:08:44 +00:00
gsherman
e1794c5f93 fixed QgsProjectIo so right-click context menus are connected when loading a saved project
git-svn-id: http://svn.osgeo.org/qgis/trunk@603 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-27 03:01:11 +00:00
mcoletti
409d73805f Trivial clean-up of QGisApp::addRasterLayer() :
- s/Erdas/ERDAS/

- s/Usgs/USGS/

- s/Sdts/SDTS/

- s/Lyr/Layer/

- use QStringList::empty() instead of QStringList::length() == 0

- now unfreeze mapCanvas if user didn't select files

- use more intuitive and safer for() instead of while()

- prettified code

- added XXX comment regarding possible initContextMenu() invocation
  even if layer is invalid


git-svn-id: http://svn.osgeo.org/qgis/trunk@602 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 22:48:53 +00:00
stevehalasz
e8a904f025 Show legend text as white for grayscale layers
git-svn-id: http://svn.osgeo.org/qgis/trunk@601 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 21:33:22 +00:00
stevehalasz
a4e24bc891 Set drawingStyle for Undefined raster bands to SINGLE_BAND_GRAY by default. Lack of default was preventing these layers from being displayed at all.
git-svn-id: http://svn.osgeo.org/qgis/trunk@600 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 21:12:22 +00:00
stevehalasz
e8a29d5455 update() mapLegend after render()ing mapCanvas in addRasterLayer(). This prevents multiple repaints. Don't know why, just doing same as addLayer()
git-svn-id: http://svn.osgeo.org/qgis/trunk@599 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 20:39:53 +00:00
mcoletti
d565d76ba5 Added GDAL compiler flags.
git-svn-id: http://svn.osgeo.org/qgis/trunk@598 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 19:06:30 +00:00
mhugent
57e1623fd9 saving and loading of symbology
git-svn-id: http://svn.osgeo.org/qgis/trunk@597 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 17:25:22 +00:00
timlinux
75460eb95b Added some additional things that need doing as dicussed with Gary on irc.
git-svn-id: http://svn.osgeo.org/qgis/trunk@596 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 08:42:38 +00:00
gsherman
ccbc9e6771 added toolbar with buffer button
git-svn-id: http://svn.osgeo.org/qgis/trunk@595 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 07:27:05 +00:00
gsherman
d3bc661ce2 changes to support compilation under Qt 3.1.x
git-svn-id: http://svn.osgeo.org/qgis/trunk@594 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 03:00:49 +00:00
gsherman
28e366c33f changed detection logic for qt share libs and qt multi-threaded lib
git-svn-id: http://svn.osgeo.org/qgis/trunk@593 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 01:03:32 +00:00