Skip to content

Commit c74090d

Browse files
committedOct 2, 2012
gdaltools: add cubic interpolation to Build overviews tool (fix #6301)
1 parent 101cc38 commit c74090d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎python/plugins/GdalTools/tools/doOverview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class GdalToolsDialog( QWidget, Ui_Widget, BaseBatchWidget ):
1515
def __init__( self, iface ):
1616
QWidget.__init__( self )
1717
self.iface = iface
18-
self.resampling_method = ('nearest', 'average', 'gauss', 'average_mp', 'average_magphase', 'mode')
18+
self.resampling_method = ('nearest', 'average', 'gauss', 'cubic', 'average_mp', 'average_magphase', 'mode')
1919

2020
self.setupUi( self )
2121
BaseBatchWidget.__init__( self, self.iface, "gdaladdo" )

‎python/plugins/GdalTools/tools/widgetOverview.ui

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
<string>gauss</string>
6464
</property>
6565
</item>
66+
<item>
67+
<property name="text">
68+
<string>cubic</string>
69+
</property>
70+
</item>
6671
<item>
6772
<property name="text">
6873
<string>average_mp</string>

4 commit comments

Comments
 (4)

etiennesky commented on Oct 4, 2012

@etiennesky
Contributor

Hi Giuseppe, would you consider including my widgets for save as options as well as overview options?

cheers,
Etienne

brushtyler commented on Oct 4, 2012

@brushtyler
ContributorAuthor

would you consider including my widgets for save as options as well as overview options?

I'm not sure which widget are you talking about. BTW, why not?

If you think your widgets fit better there, replace the current ones. And if you'd like I review your changes before pushing it to master just make a pull request or push the code to your QGis fork.

etiennesky commented on Oct 4, 2012

@etiennesky
Contributor

Hi

you can have a look at the raster save as dialog, and also in the GDAL prefs.
I made a widget for handling save profiles for both rasters and pyramids, and another raster for handling pyramids output options.

When I have the time I'll prepare a pull request and let you know.

etiennesky commented on Oct 7, 2012

@etiennesky
Contributor

Hi

please see my fork with changes to use the dialogs, it`s implemented in dem and pyramids dialogs. I left the old ui and code around for reference, which should be removed. Please comment on any issues/suggestions.

https://github.com/etiennesky/Quantum-GIS/tree/gdaltools

Please sign in to comment.