Re: [Qgis-user] Removing artifacts in a created DEM
Hi Hernan, I think neither of the methods you used give good results for interpolating terrain data (or most other interpolations). I had good results with v.surf.rst (available in the Processing toolbox in the GRASS section). There are tons of options with the v.surf.rst - but the defaults probably work for most options. You also don't have to output all the raster results - just the interpolated surface. One of the other options is the "Interpolation plugin" which comes with QGIS (but you have to enable it in QGIS). It appears in the raster menu in as "Interpolation". It offers a TIN interpolation and IDW. I think the TIN method is the more interesting one. Hope this helps, Andreas On 17.10.2015 00:21, hersala wrote: Hello, I'm working with a bundle of N-S and E-W distributed DGPS point transects on gentle glacier slope. With these points I created a shp file and then I obtained several DEMs (.tif files) using the tool Raster/Analysis/Grid (Interpolation). I've used Nearest Neighbor, Runing Means and Inverse Distance with several argument values. Inverse Distance produces the best results, but there are some artifacts that persists and makes the output unusable. They give the impression as if the glacial slope has bumps, but on the contrary, it is quite gentle. Can anyone give any advice in how to proceed to reduce such artifacts. I'm using QGIS 2.8.2-Wien in MS-Windows. Thanks in advance. Hernan ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Processing Feature Request(?): 'sticky parameters' AND generic settings....
Hi, not sure if I ask something which is already available (then please let me know how), or else I ask for the following: I have a model which runs some scripts. This model takes as input some x,y,value file coming from an external appliation. For a given area this external app (actually a real mathamatical 'model') is ran several times given different parameters and the result is visualized in QGIS by showing the xy values, creating contours and styling it in some ways. So the scripts in the processing model for given area has several 'fixed' parameters. Eg the boundaries in the contour script for a given area are always the same. Or the 'load script' also has some inputs which are always the same. So in the different script you have input variables like: ##minval=number 0 ##maxval=number 3000 BUT using this script in a model, I do not want to set the values everytime. In the model it is exactly the same: I can set input values, but they are not 'remembered' in between following runs. So my idea (as said: please tell me if it is already there): Can we have something like ##minval=number 0 sticky ##maxval=number 3000 sticky My idea is that as soon as this script is ran, the 'default values' are set to the last used values. So NO value availabe: use the default one (eg 3000 for maxval), but as soon as the user has changed this to say 2500, that value is saved in the QSettings somewhere, and next time the script (or model) is ran, the default value will be 2500 Idea? Or already available? Which brings me to the following, which I think is usefull for python devs, but I think also for cpp code. Why do we not have some utils class which holds some pretty often used code. What I now think of: - save a value in settings with given key - load a (cast to certain type) value from setting with given key and if not available provide a default something like (the type part not yet in it): def get_settings_value(self, key, default=''): if QSettings().contains(self.SETTINGS_SECTION + key): key = self.SETTINGS_SECTION + key val = QSettings().value(key) return val else: return default def set_settings_value(self, key, value): key = self.SETTINGS_SECTION + key QSettings().setValue(key, value) I see know so many places where there this is implemented... Or another one which I think should be centralized: - the saving and opening of 'current directory'... We have a lot of dialogs which open a file manager, but a lot of them open in pretty weird places (like some directory in the installation folder). I think it is better if we come up with some 'reasonable' places like: - current project folder - last data folder And implement those as util methods like to be used as opening places for the file dialogs. Opinions and or other ideas? Regards, Richard Duivenvoorde ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Processing Feature Request(?): 'sticky parameters' AND generic settings....
Hi Richard, I think your question is more suitable for developers list (cc-ing). AFAIK, such behavior currently not available in Processing, but I think this is good addition. If I'm not wrong we already even have similar feature request. Also I agree that having some utilities class for common operations in C++ code with Python bindings will be useful. 2015-10-17 11:45 GMT+03:00 Richard Duivenvoorde : > > Hi, not sure if I ask something which is already available (then please > let me know how), or else I ask for the following: > > I have a model which runs some scripts. > This model takes as input some x,y,value file coming from an external > appliation. > For a given area this external app (actually a real mathamatical > 'model') is ran several times given different parameters and the result > is visualized in QGIS by showing the xy values, creating contours and > styling it in some ways. > So the scripts in the processing model for given area has several > 'fixed' parameters. Eg the boundaries in the contour script for a given > area are always the same. Or the 'load script' also has some inputs > which are always the same. > > So in the different script you have input variables like: > > ##minval=number 0 > ##maxval=number 3000 > > BUT using this script in a model, I do not want to set the values > everytime. In the model it is exactly the same: I can set input values, > but they are not 'remembered' in between following runs. > > So my idea (as said: please tell me if it is already there): > Can we have something like > > > ##minval=number 0 sticky > ##maxval=number 3000 sticky > > My idea is that as soon as this script is ran, the 'default values' are > set to the last used values. > So NO value availabe: use the default one (eg 3000 for maxval), but as > soon as the user has changed this to say 2500, that value is saved in > the QSettings somewhere, and next time the script (or model) is ran, the > default value will be 2500 > > Idea? Or already available? > > Which brings me to the following, which I think is usefull for python > devs, but I think also for cpp code. > > Why do we not have some utils class which holds some pretty often used > code. What I now think of: > > - save a value in settings with given key > - load a (cast to certain type) value from setting with given key and if > not available provide a default something like (the type part not yet in > it): > > def get_settings_value(self, key, default=''): > if QSettings().contains(self.SETTINGS_SECTION + key): > key = self.SETTINGS_SECTION + key > val = QSettings().value(key) > return val > else: > return default > > def set_settings_value(self, key, value): > key = self.SETTINGS_SECTION + key > QSettings().setValue(key, value) > > I see know so many places where there this is implemented... > > > Or another one which I think should be centralized: > - the saving and opening of 'current directory'... > We have a lot of dialogs which open a file manager, but a lot of them > open in pretty weird places (like some directory in the installation > folder). > I think it is better if we come up with some 'reasonable' places like: > - current project folder > - last data folder > And implement those as util methods like to be used as opening places > for the file dialogs. > > Opinions and or other ideas? > > Regards, > > Richard Duivenvoorde > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user -- Alexander Bruy ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Copy field definitions from one vector layer to another?
You can make a join and then save as layer I have been looking for a capability (plugin or native QGIS) that will easily copy the field definitions (not the attribute data) from one layer to another layer. To date I have not found it, I may be missing something obvious. Any help/advice much appreciated. I have a layer with a bunch of fields already defined, and another layer with geometry but no additional fields. I would like to add the field definitions from the first layer to the second layer, and then populate with the appropriate data for that layer. Thanks. Dick Males Cincinnati, Ohio, USA ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] "QGIS User Survey" now available in Ukrainian
Hi all, and sorry for cross-posting. QGIS Usage Survey now also available in Ukrainian http://blog.qgis.org/2015/10/16/take-the-qgis-user-survey-in-ukranian/ -- Alexander Bruy ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] [Qgis-developer] Processing Feature Request(?): 'sticky parameters' AND generic settings....
There is currently no option in Processing to do that, and you should probably add that logic to the algorithm itself (like for instance, if the value of the parameter is equal to the default value, it should be replaced with the last value, which should be itself stored by the algorithm or taken from the Processing history) I suggest adding a feature request, so this idea is not forgotten. About the common functions, I definitely agree with that. It will also help plugins look more homogeneous (and most likely, more stable). The qgis.utils module looks like a good place to put all this functions. More important that implementing those functions would be to actually document them and make sure people know about them (the obvious place to write about them is the PyQGIS cookbook), and try to enforce using them in plugins. I have quite a few general functions that I use for several plugins. I wouldn' mind adding them to qgis.utils (or any other core module that we agree on using for this) and if anyone does the same, I think we can end up with a nice collection of them. Cheers 2015-10-17 11:40 GMT+02:00 Alexander Bruy : > Hi Richard, > > I think your question is more suitable for developers list (cc-ing). > > AFAIK, such behavior currently not available in Processing, but > I think this is good addition. If I'm not wrong we already even have > similar feature request. > > Also I agree that having some utilities class for common operations > in C++ code with Python bindings will be useful. > > > 2015-10-17 11:45 GMT+03:00 Richard Duivenvoorde : >> >> Hi, not sure if I ask something which is already available (then please >> let me know how), or else I ask for the following: >> >> I have a model which runs some scripts. >> This model takes as input some x,y,value file coming from an external >> appliation. >> For a given area this external app (actually a real mathamatical >> 'model') is ran several times given different parameters and the result >> is visualized in QGIS by showing the xy values, creating contours and >> styling it in some ways. >> So the scripts in the processing model for given area has several >> 'fixed' parameters. Eg the boundaries in the contour script for a given >> area are always the same. Or the 'load script' also has some inputs >> which are always the same. >> >> So in the different script you have input variables like: >> >> ##minval=number 0 >> ##maxval=number 3000 >> >> BUT using this script in a model, I do not want to set the values >> everytime. In the model it is exactly the same: I can set input values, >> but they are not 'remembered' in between following runs. >> >> So my idea (as said: please tell me if it is already there): >> Can we have something like >> >> >> ##minval=number 0 sticky >> ##maxval=number 3000 sticky >> >> My idea is that as soon as this script is ran, the 'default values' are >> set to the last used values. >> So NO value availabe: use the default one (eg 3000 for maxval), but as >> soon as the user has changed this to say 2500, that value is saved in >> the QSettings somewhere, and next time the script (or model) is ran, the >> default value will be 2500 >> >> Idea? Or already available? >> >> Which brings me to the following, which I think is usefull for python >> devs, but I think also for cpp code. >> >> Why do we not have some utils class which holds some pretty often used >> code. What I now think of: >> >> - save a value in settings with given key >> - load a (cast to certain type) value from setting with given key and if >> not available provide a default something like (the type part not yet in >> it): >> >> def get_settings_value(self, key, default=''): >> if QSettings().contains(self.SETTINGS_SECTION + key): >> key = self.SETTINGS_SECTION + key >> val = QSettings().value(key) >> return val >> else: >> return default >> >> def set_settings_value(self, key, value): >> key = self.SETTINGS_SECTION + key >> QSettings().setValue(key, value) >> >> I see know so many places where there this is implemented... >> >> >> Or another one which I think should be centralized: >> - the saving and opening of 'current directory'... >> We have a lot of dialogs which open a file manager, but a lot of them >> open in pretty weird places (like some directory in the installation >> folder). >> I think it is better if we come up with some 'reasonable' places like: >> - current project folder >> - last data folder >> And implement those as util methods like to be used as opening places >> for the file dialogs. >> >> Opinions and or other ideas? >> >> Regards, >> >> Richard Duivenvoorde >> ___ >> Qgis-user mailing list >> Qgis-user@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/qgis-user > > > > -- > Alexander Bruy > ___ > Qgis-developer mailing list > qgis-develo...@lists.osgeo
Re: [Qgis-user] "QGIS User Survey" now available in Spanish / "Encuesta sobre el uso de QGIS" disponible en Castellano
Muchas gracias Luigi. Ya compartí vía Facebook. Saludos desde Perú Carlos Cerdán 2015-10-16 4:47 GMT-05:00 Luigi Pirelli : > Hi > > It's a pleasure to promote the Survey in Spanish > > http://blog.qgis.org/2015/10/16/take-the-qgis-user-survey-in-spanish/ > > regards > > Luigi Pirelli > > *** > > Hola > > Es un placer presentar la "Encuesta sobre el uso de QGIS" en Castellano > > Unha perta (Galego ;) > > Luigi Pirelli > > > ** > * LinkedIn: https://www.linkedin.com/in/luigipirelli > * Elance: https://www.elance.com/s/edit/luigipirelli/ > * GitHub: https://github.com/luipir > * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli > * Mastering QGIS: > https://www.packtpub.com/application-development/mastering-qgis > > ** > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] WMS display issue and QGIS based standalone application
Hi, Thanks for your answer. I'm using QGIS 2.10.1-Pisa on an Ubuntu 14.04 LTS For both scripts, you will see screenshots for non working sample https://framapic.org/ESs6fNmIArII/uFqt0e0A and also working one https://framapic.org/21atQvjmzdq5/4whPjPGL. Unfortunately, except if there is a debug option to activate for standalone debug, I don't have any output in the console when running both scripts. Regards Thomas Gratier 2015-10-13 23:59 GMT+02:00 Salvatore Larosa : > Hi Thomas, > > On Mon, Oct 12, 2015 at 6:08 PM, Thomas Gratier > wrote: > > Hi, > > > > I'm working with the Python API to create a standalone app. > > When I reuse this sample from > > http://kartoza.com/how-to-load-a-qgis-project-in-python/, it works > perfectly > > with only vector layer(s). > > When I use a WMS with a vector layer, it fails directly. > > I've done two samples to demonstrate the issue. You can take samples from > > > https://framadrop.org/r/kkC2MVV9TH#anlncOhrg5vbo5W7D8Lfjg8ghRq7BTo9flJXvnIV+Io= > > > > Run the working vector sample with: > > python test_project_standalone_no_wms.py > > > > Run the non working wms + vector sample with: > > python test_project_standalone.py > > > > I should miss something. Do you have any clue? It's a bug or a feature > > (unwanted for my case)? > > which QGIS version are you trying with? > Using master and LTR both scripts do not work for me. > > For the non working script are you getting any log in the python shell? > > Best Regards, > -SL > > -- > Salvatore Larosa > linkedIn: http://linkedin.com/in/larosasalvatore > twitter: @lrssvt > skype: s.larosa > IRC: lrssvt on freenode > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] (no subject)
I am a new user to QGIS, and interested in making referenced pdf maps for Avenza App. I find this app excellent out in the middle of no where as the GPS on my phone places me on the map. I tend to be rather adventurous, and often can find images of maps for places I travel, but not with the geo referencing. I have tried to use QGIS and was able to make images with references, but when using print composer to save the pdf, Avenza says the map is not referenced. :( Obviously I am not doing something correctly, could some one give me a short tutorial or point me to a tutorial? I have attached link of a map of interest. http://www.fs.usda.gov/Internet/FSE_DOCUMENTS/stelprdb5357542.pdf -- Pony___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] (no subject)
Hi, Don't save as a pdf - these do not generally work as georeferenced images & QGIS cannot create a geopdf. The easy way is without using the print composer, just save the project as an image (Project menu) - the default is a georeferenced png (png + world file). Avenza cannot read these, but QGIS can. Open the png image you just saved as a new raster layer in QGIS, & then save it as a Gtiff format image. This should create a geotiff of the map that you can read with Avenza. Cheers, Brent Wood From: Pony Express To: qgis-user@lists.osgeo.org Sent: Sunday, October 18, 2015 1:35 PM Subject: [Qgis-user] (no subject) I am a new user to QGIS, and interested in making referenced pdf maps for Avenza App. I find this app excellent out in the middle of no where as the GPS on my phone places me on the map. I tend to be rather adventurous, and often can find images of maps for places I travel, but not with the geo referencing. I have tried to use QGIS and was able to make images with references, but when using print composer to save the pdf, Avenza says the map is not referenced. :( Obviously I am not doing something correctly, could some one give me a short tutorial or point me to a tutorial? I have attached link of a map of interest. http://www.fs.usda.gov/Internet/FSE_DOCUMENTS/stelprdb5357542.pdf -- Pony ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user