Skip to content

Commit

Permalink
gdaltools: add cubic interpolation to Build overviews tool (fix #6301)
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Oct 2, 2012
1 parent 101cc38 commit c74090d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/GdalTools/tools/doOverview.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GdalToolsDialog( QWidget, Ui_Widget, BaseBatchWidget ):
def __init__( self, iface ):
QWidget.__init__( self )
self.iface = iface
self.resampling_method = ('nearest', 'average', 'gauss', 'average_mp', 'average_magphase', 'mode')
self.resampling_method = ('nearest', 'average', 'gauss', 'cubic', 'average_mp', 'average_magphase', 'mode')

self.setupUi( self )
BaseBatchWidget.__init__( self, self.iface, "gdaladdo" )
Expand Down
5 changes: 5 additions & 0 deletions python/plugins/GdalTools/tools/widgetOverview.ui
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
<string>gauss</string>
</property>
</item>
<item>
<property name="text">
<string>cubic</string>
</property>
</item>
<item>
<property name="text">
<string>average_mp</string>
Expand Down

4 comments on commit c74090d

@etiennesky
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

cheers,
Etienne

@brushtyler
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.