60935 Commits

Author SHA1 Message Date
timlinux
1a91bf009d Small change - forgot empty implementation after removing =0 from pure virtual functions.
git-svn-id: http://svn.osgeo.org/qgis/trunk@535 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-20 00:31:53 +00:00
timlinux
27f7e19345 Removed pure virtual method declarations where it did not make sense for raster layers.
git-svn-id: http://svn.osgeo.org/qgis/trunk@534 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-20 00:21:18 +00:00
timlinux
48822a3cfa Removed deprecated showgrayascolor tag.
git-svn-id: http://svn.osgeo.org/qgis/trunk@533 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-20 00:06:55 +00:00
timlinux
c84cc60496 Added yours truly to authors list
git-svn-id: http://svn.osgeo.org/qgis/trunk@532 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-20 00:04:35 +00:00
timlinux
017bb7330a New style rendering where each of the 8 rendering algorithms has its own function:
SINGLE_BAND_GRAY, // a "Gray" or "Undefined" layer drawn as a range of gray colors
        SINGLE_BAND_PSEUDO_COLOR,// a "Gray" or "Undefined" layer drawn using a pseudocolor algorithm
        PALETTED_SINGLE_BAND_GRAY,// a "Palette" layer drawn in gray scale (using only one of the color components)
        PALETTED_SINGLE_BAND_PSEUDO_COLOR, // a "Palette" layer having only one of its color components rendered as psuedo color
        PALETTED_MULTI_BAND_COLOR, //a "Palette" image where the bands contains 24bit color info and 8 bits is pulled out per color
        MULTI_BAND_SINGLE_BAND_GRAY, // a layer containing 2 or more bands, but using only one band to produce a grayscale image
        MULTI_BAND_SINGLE_BAND_PSEUDO_COLOR, //a layer containing 2 or more bands, but using only one band to produce a pseudocolor image
        MULTI_BAND_COLOR //a layer containing 2 or more bands, mapped to the three RGBcolors. In the case of a multiband with only two bands, one band will have to be mapped to more than one color

Please not that this is not all implemented and a lot of deuglification needs to takes place before this is properly useable. Watch this space over the next couple of days...


git-svn-id: http://svn.osgeo.org/qgis/trunk@531 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-20 00:03:17 +00:00
timlinux
3034d45e4f Commented out deprecated showGrayAsColor serialiser/deserialiser for raster layer.
git-svn-id: http://svn.osgeo.org/qgis/trunk@530 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 23:58:58 +00:00
timlinux
a7807982e9 Repositioned status text and enlarged status font
git-svn-id: http://svn.osgeo.org/qgis/trunk@529 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 23:02:33 +00:00
timlinux
38fc3ef25e Added splash screen to constructor
git-svn-id: http://svn.osgeo.org/qgis/trunk@528 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 22:58:55 +00:00
timlinux
6f478a7869 Moved splashscreen to constructor of qgisapp
git-svn-id: http://svn.osgeo.org/qgis/trunk@527 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 22:58:20 +00:00
gsherman
849040d89a removed stale files
git-svn-id: http://svn.osgeo.org/qgis/trunk@526 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 21:09:33 +00:00
gsherman
b9b7f43718 added maplayer plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@525 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 21:05:15 +00:00
gsherman
07451fb893 removed stale files
git-svn-id: http://svn.osgeo.org/qgis/trunk@524 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 21:01:11 +00:00
gsherman
078c15b733 fixed maplayer plugin so it loads -- doesn't do anything useful
git-svn-id: http://svn.osgeo.org/qgis/trunk@523 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 20:53:53 +00:00
gsherman
f6d292064d improved documentation and behavior of the example plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@522 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 20:22:02 +00:00
gsherman
ab258797f4 fixed bug that caused multiple properties dialogs to be displayed
git-svn-id: http://svn.osgeo.org/qgis/trunk@521 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 19:07:18 +00:00
gsherman
6c8dfaf437 merge with datasource branch
git-svn-id: http://svn.osgeo.org/qgis/trunk@520 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 18:26:15 +00:00
gsherman
47af50b1e3 merge with datasource branch
git-svn-id: http://svn.osgeo.org/qgis/trunk@519 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 18:17:13 +00:00
gsherman
b778ba56a3 updated to include plugins
git-svn-id: http://svn.osgeo.org/qgis/trunk@518 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 18:06:01 +00:00
gsherman
de9b73000f merge with datasource branch
git-svn-id: http://svn.osgeo.org/qgis/trunk@517 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 17:59:42 +00:00
stevehalasz
71aa0d6dfc moving debian files out of qgis sources to allow updates to debian package without requiring new qgis release
git-svn-id: http://svn.osgeo.org/qgis/trunk@485 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-15 20:37:15 +00:00
timlinux
768d519b46 Added accessors, mutators and members for red, green, blue and gray histogram clipping to rasterlayer, and linked up to advanced symbology tab on rasterproperties dialog. TODO - implement clippng algorithm, let properties dialog modify active clipping algorithm, update dtd and raster properties serialiser in project io.
git-svn-id: http://svn.osgeo.org/qgis/trunk@477 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-14 08:35:20 +00:00
timlinux
f3cba99586 Added sdts raster data to the fileopen dialog for new raster layers.
git-svn-id: http://svn.osgeo.org/qgis/trunk@476 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-14 07:25:39 +00:00
timlinux
1db83c6e64 Last (hopefully) bugfix for serailisation of raster layer properties to project file.
git-svn-id: http://svn.osgeo.org/qgis/trunk@473 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-13 20:39:07 +00:00
timlinux
d3c426251b Small bugfix (fixes bug that caused blueBand to be mapped to gray).
git-svn-id: http://svn.osgeo.org/qgis/trunk@472 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-13 18:59:43 +00:00
timlinux
fa7dae9206 First pass at raster layer properties persistance when saving project. This is still pretty buggy at the moment. Stand by for a bug fix update in the near future...
git-svn-id: http://svn.osgeo.org/qgis/trunk@471 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-13 15:15:31 +00:00
timlinux
11cb31cd64 Updated configure script.
git-svn-id: http://svn.osgeo.org/qgis/trunk@467 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-12 19:53:57 +00:00
timlinux
0acb009f92 Small bugfix to remove a signal handler for debug checkbox that had no associated implementation in ui.h
git-svn-id: http://svn.osgeo.org/qgis/trunk@466 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-12 16:39:22 +00:00
timlinux
641a94eb62 This is a new addition to the raster implementation that allows debug info to be displayed as an overlay on the raster. Mainly useful for developers. Can be enabled / disabled using this gui. Links to screenshots below show what the debug output looks like.
Also carried out some minor refactoring to qgsrasterlayer.cpp.

http://tim.suttonfamily.co.uk/cgi-bin/ids/index.cgi?mode=image&album=/qgis&image=raster_debug_info.png
http://tim.suttonfamily.co.uk/cgi-bin/ids/index.cgi?mode=image&album=/qgis&image=raster_debug_info_properties.png


git-svn-id: http://svn.osgeo.org/qgis/trunk@464 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-12 12:08:30 +00:00
timlinux
82ecab33d7 You can now request a raster layer to provide its legend - using the getLegendQPixmap method which is returned as a QPixmap. At the moment it is displayed only on the raster properties dialog, but after the qgis_datasource branch is merged in, the legend pixmap will be shown in the legend sidebar. The legend pixmap is rendered (as opposed to a staticly defined images), and in future versions will reflect histogram settings (range constraints etc). Screenshots illustrating this patch available here:
http://tim.suttonfamily.co.uk/cgi-bin/ids/index.cgi?mode=image&album=/qgis&image=raster_legend_grayscale.png
http://tim.suttonfamily.co.uk/cgi-bin/ids/index.cgi?mode=image&album=/qgis&image=raster_legend_paletted.png
http://tim.suttonfamily.co.uk/cgi-bin/ids/index.cgi?mode=image&album=/qgis&image=raster_legend_pseudocolor.png


git-svn-id: http://svn.osgeo.org/qgis/trunk@458 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-11 13:57:36 +00:00
timlinux
d738ab9af3 Added a splashscreen to on application startup.
git-svn-id: http://svn.osgeo.org/qgis/trunk@448 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-10 02:58:47 +00:00
timlinux
ba77db4560 Adjusted the advanced symbology so the gradients run diagonally bottom left to top right.
git-svn-id: http://svn.osgeo.org/qgis/trunk@447 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-10 00:26:09 +00:00
stevehalasz
4c201f2fa2 Store layer order correctly in project files. Don't store z position in
QgsMapLayer anymore. Just use zOrder list in QgsMapCanvas.


git-svn-id: http://svn.osgeo.org/qgis/trunk@446 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-09 21:17:21 +00:00
timlinux
22045c491a Added support for grass data! You need to have built your gdal library against libgrass for this to work. New entry in the raster file dialog. I also changed the raster file dialog so that it remembers the last directory you were in on subsequent use.
git-svn-id: http://svn.osgeo.org/qgis/trunk@442 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-07 17:52:25 +00:00
timlinux
df66db0b1e Added null pointer check for color map entries on paletted layers - this was causing segfaults on some grass data. There is no guarantee that a paletted image has a color map entry for every cell! We now support grass rasters with the associated commit for qgisapp.cpp coming straight after this commit.
git-svn-id: http://svn.osgeo.org/qgis/trunk@441 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-07 17:50:44 +00:00
stevehalasz
40b9ac9bf2 adding debian files
git-svn-id: http://svn.osgeo.org/qgis/trunk@426 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-06 17:45:47 +00:00
gsherman
29ebf8c39e **Updated whats new section for 0.0.14
**Added All Rasters filter to the add raster dialog
**Fixed broken properties dialog for Database layers (temporary until datasourcebranch is merged)


git-svn-id: http://svn.osgeo.org/qgis/trunk@418 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-05 00:37:55 +00:00
gsherman
469984032f incremented version number
git-svn-id: http://svn.osgeo.org/qgis/trunk@417 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-05 00:36:09 +00:00
timlinux
e2d3a9ee9a Added behaviour group box on the advanced symbology tab.
git-svn-id: http://svn.osgeo.org/qgis/trunk@416 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-04 22:57:26 +00:00
timlinux
7a877212ca Fixed the rather broken algorithm for creating gradients on the advanced symbology tab.
Added text overlay on each color preview showing the range selected.
Note the gui now works ok, but I have to implement the application logic for this behaviour still.


git-svn-id: http://svn.osgeo.org/qgis/trunk@415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-04 22:56:07 +00:00
stevehalasz
106ff105dc add USGS ASCII DEM (*.dem) to add raster layer file dialog
git-svn-id: http://svn.osgeo.org/qgis/trunk@414 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-04 20:24:52 +00:00
timlinux
f498bab6b9 Added missing support for inverting histogram on non-pseudocolor grayscale layers.
git-svn-id: http://svn.osgeo.org/qgis/trunk@408 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-04 10:40:40 +00:00
timlinux
c9839c235b Modified add raster layer to only list tested datatypes.
git-svn-id: http://svn.osgeo.org/qgis/trunk@407 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-04 02:40:05 +00:00
timlinux
2211d3fdc2 First working version of raster properties dialog. The dialog allows control over band<->color mappings, transparency, histogram inversion and provides some statistics.
git-svn-id: http://svn.osgeo.org/qgis/trunk@406 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-04 02:36:18 +00:00
timlinux
bfdba43775 Added transparency, histogram inversion for non pseudomapped grayscale and paletted layers.
Added alternate band mapping capability for paletted layers.
Added variable stats calculation for paletted layers.
Various other small changes and code cleanups.


git-svn-id: http://svn.osgeo.org/qgis/trunk@405 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-04 02:31:46 +00:00
timlinux
ee4b7a4a60 Modified the makefile to build the new rasterproperties dialog.
git-svn-id: http://svn.osgeo.org/qgis/trunk@389 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-01 11:31:17 +00:00
timlinux
e6cb2c348b Added support for 'undefined' color interps - which are treated as grayscale and have a pseudocolor color ramp assigned.
The above allows arc/info grid and ascii grid layers to be rendered.
Added pseaudo color ramp builder for grayscale images.
Added routine to build stats for bands (this is disabled for rgb layers because of performance issues).
Stats include, minval, maxval, range, sum of squares, mean, std deviation.
Added logic to constrain greyscale & undefined histogram to n standard deviations.
Added logic to invert histogram for grayscale and undefined.

Currently these behaviours are hard coded in the constructor, but will make them available from the new rasterproperties dialog soon.


git-svn-id: http://svn.osgeo.org/qgis/trunk@388 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-01 11:30:07 +00:00
timlinux
e8e8689c6d Modified the raster file selection dialog so that it now allows arc/info binary grid, arc/info ascii grid, geotiff, geo jpg and bil files to be selected. Because qfiledialog does not support behaviour for selecting either a directory of a file, arc info binary files need to be added by selecting any .adf file in the layer dir. Also because of this multiple arc/info grid files cannot be added at once.
git-svn-id: http://svn.osgeo.org/qgis/trunk@387 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-01 11:21:20 +00:00
timlinux
feca71ccb2 Initial commit of a new properties dialog for raster layers. This is just a skeleton at the moment - I will connect it up to the backend over the next couple of days.
git-svn-id: http://svn.osgeo.org/qgis/trunk@386 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-01 11:12:55 +00:00
gsherman
3bd84324f8 added mapserver ui files
git-svn-id: http://svn.osgeo.org/qgis/trunk@385 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-01 01:16:30 +00:00
timlinux
d7a93b9731 Added support for grayscale tifs too.
git-svn-id: http://svn.osgeo.org/qgis/trunk@383 c8812cc2-4d05-0410-92ff-de0c093fc19c
2003-12-31 00:27:59 +00:00