[Qgis-user] Qgis 3.6 problem

2019-03-05 Thread Jukka
Hi,
I have two version of Qgis, 3,6 and 2.18. In  both version I have problems. I 
started a new project and if I add raster layer map and vector layer on map, I 
only can see the map or vector layer, not both. But I have older projects that 
works allright. What is the problem?

-Jukka Olanterä
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] r.viewshed batch processing

2019-03-05 Thread Samuel Williams
Hello,
I'm having some difficulty running the G.R.A.S.S r.viewshed tool in batch
mode from QGIS. Everything runs fine when initiated via the single run
interface, but switching to batch mode and entering the same parameters
fails - it looks like a parameter isn't being sent to G.R.A.S.S correctly.
If anyone can see why it is failing I would be most grateful for any
suggestions!

Processing algorithm 1/10…

Algorithm r.viewshed starting…

Input parameters:

{'-b': False,
'-c': False,
'-e': False,
'-r': False,
'GRASS_RASTER_FORMAT_META': '',
'GRASS_RASTER_FORMAT_OPT': '',
'GRASS_REGION_CELLSIZE_PARAMETER': 0.0,
'GRASS_REGION_PARAMETER': None,
'coordinates': '263160,606413',
'input': '/home/Sine/Projects - Active/A009.01 Pencloe Wind Farm FEI
2017/04 '
'GIS + Models/4.2 Working/4.2.1 '
'Datasets/Topography/OS_Terrain_5_304095_399562/OS_Terrain_5_No_Data_Val_Set.tif',
'max_distance': -1.0,
'memory': 500,
'observer_elevation': 4.0,
'output': ,
'refraction_coeff': 0.14286,
'target_elevation': 150.0}


g.region n=0.0 s=0.0 e=0.0 w=0.0 res=100.0

r.viewshed input=rast_5c7edf2bb077e4 coordinates=263160.0,606413.0
observer_elevation=4 target_elevation=150 max_distance=-1
refraction_coeff=0.14286 memory=500
output=outputc92a2bbaf5ee495f8178f059efda1a2a --overwrite

g.region raster=outputc92a2bbaf5ee495f8178f059efda1a2a

r.out.gdal -t -m input="outputc92a2bbaf5ee495f8178f059efda1a2a"
output="/home/Sine/Projects - Active/A009.01 Pencloe Wind Farm FEI 2017/04
GIS + Models/4.2 Working/4.2.1 Datasets/Viewsheds/OS Terrain
5/Viewshed-R02-150m-Tip-R001.tif" format="GTiff"
createopt="TFW=YES,COMPRESS=LZW" --overwrite

Starting GRASS GIS...

Executing

...

Traceback (most recent call last):
File
"/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
line 423, in processAlgorithm
Grass7Utils.executeGrass(self.commands, feedback, self.outputCommands)
File
"/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py",
line 400, in executeGrass
feedback.reportError(line.strip())
TypeError: reportError(self, error: str, fatalError: bool): not enough
arguments

Batch execution completed in 0.46 seconds

---

QGIS version

3.6.0-Noosa

QGIS code revision

5873452 

Compiled against Qt

5.11.1

Running against Qt

5.11.1

Compiled against GDAL/OGR

2.3.2

Running against GDAL/OGR

2.3.2

Compiled against GEOS

3.6.2-CAPI-1.10.2

Running against GEOS

3.6.2-CAPI-1.10.2 4d2925d6

PostgreSQL Client Version

10.5 (Ubuntu 10.5-1)

SpatiaLite Version

4.3.0a

QWT Version

6.1.3

QScintilla2 Version

2.10.4

Compiled against PROJ

510

Running against PROJ

5.1.0

Kind regards,


Sam.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] Funzione "aggregate" con variabile @parent su layer con SR diversi

2019-03-05 Thread Totò
marti_ wrote
> Mmh, non mi ha funzionato :(
> cioè il calcolatore non mi dà errori, ma mi restituisce tutti valori nulli
> sul campo virtuale, proprio come faceva senza usare transform.
> Sul layer poligonale dei comuni (EPSG 32632) ho usato l'espressione:
> aggregate( layer:='id layer_punti', aggregate:='concatenate',
> expression:="DENOMINAZIONE", filter:=intersects (  transform(  $geometry ,
> 'EPSG:32632', 'EPSG:4326' ) ,  geometry( @parent)), concatenator:=', ')
> dove 'id layer_punti' è l'id di tale layer (che ha EPSG 4326)

Ciao Martina,
secondo me dovresti fare al contrario, cioè:

aggregate( layer:='id layer_punti', aggregate:='concatenate',
expression:="DENOMINAZIONE", filter:=intersects (  transform(  $geometry ,
'EPSG:4326', 'EPSG:32632' ) ,  geometry( @parent)), concatenator:=', ')

facci sapere



-
https://pigrecoinfinito.wordpress.com/
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Funzione "aggregate" con variabile @parent su layer con SR diversi

2019-03-05 Thread Martina Savarese
Mmh, non mi ha funzionato :(
cioè il calcolatore non mi dà errori, ma mi restituisce tutti valori nulli
sul campo virtuale, proprio come faceva senza usare transform.
Sul layer poligonale dei comuni (EPSG 32632) ho usato l'espressione:
aggregate( layer:='id layer_punti', aggregate:='concatenate',
expression:="DENOMINAZIONE", filter:=intersects (  transform(  $geometry ,
'EPSG:32632', 'EPSG:4326' ) ,  geometry( @parent)), concatenator:=', ')
dove 'id layer_punti' è l'id di tale layer (che ha EPSG 4326)

Alla fine ho riproittato il layer dei comuni in 4326 e ottenuto il campo
virtuale che volevo (riproiettare l'altro sarebbe stato un casino per come
avevo già impostatoil progetto) però mi avrebbe fatto più comodo mantenerlo
in un sistema proiettato.

Comunque grazie per la dritta,
Martina




Il giorno mar 5 mar 2019 alle ore 15:56 matteo  ha
scritto:

>
> > prova a usare la funzione transform(geom, source_auth_id, dest_auth_id)
> > applicata ad una delle due geometrie, cosi facendo, forse (non ho
> testato),
> > riesci ad usare aggregate anche con SR differenti.
>
> si, confermo che bisogna riproiettare con la funzione transform. questo
> è un ottimo esempio della riproiezione al volo e dei problemi che può
> portare
>
> Matteo
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] change default webbrowser in qgis3 settings?

2019-03-05 Thread Groene Bij
I have nothing like IE or explorer.


-Oorspronkelijk bericht-
Van: Richard Duivenvoorde  
Verzonden: dinsdag 5 maart 2019 16:59
Aan: Groene Bij ; rich...@duif.net; qgis-user@lists.osgeo.org
Onderwerp: Re: [Qgis-user] change default webbrowser in qgis3 settings?

On 05/03/2019 16.38, Groene Bij wrote:
> Update 2:
> Opening a specific project and making a qgis2web export again opened IE.
> Starting a new project and exporting in qgis2web opens Firefox.
> 
> So, choice of browser is somehow linked to the project.
> This does not explain why any new project also used to open IE, until I used 
> the python console command suggested by Richard.

Can you try to search in the project file?
It's 'just' a zip, so rename unpack it and search for IE or explorer in the 
.qgs xml file

Richard

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] change default webbrowser in qgis3 settings?

2019-03-05 Thread Richard Duivenvoorde
On 05/03/2019 16.38, Groene Bij wrote:
> Update 2:
> Opening a specific project and making a qgis2web export again opened IE.
> Starting a new project and exporting in qgis2web opens Firefox.
> 
> So, choice of browser is somehow linked to the project.
> This does not explain why any new project also used to open IE, until I used 
> the python console command suggested by Richard.

Can you try to search in the project file?
It's 'just' a zip, so rename unpack it and search for IE or explorer in
the .qgs xml file

Richard
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] change default webbrowser in qgis3 settings?

2019-03-05 Thread Groene Bij
Update 2:
Opening a specific project and making a qgis2web export again opened IE.
Starting a new project and exporting in qgis2web opens Firefox.

So, choice of browser is somehow linked to the project.
This does not explain why any new project also used to open IE, until I used 
the python console command suggested by Richard.

Strange indeed.

-Oorspronkelijk bericht-
Van: Qgis-user  Namens Groene Bij
Verzonden: dinsdag 5 maart 2019 09:50
Aan: rich...@duif.net; qgis-user@lists.osgeo.org
Onderwerp: Re: [Qgis-user] change default webbrowser in qgis3 settings?

Short update on this issue.

After entering QDesktopServices.openUrl(QUrl('http://qgis.org')) and seeing 
qgis3 opening the firefox browser, now qgis2web also always opens the firefox 
browser.
Restarts, new projects, old projects, now always my default browser is used. 

This solves my problem, but I have no idea what happened.
To me this is strange behavior, like the python line somehow changed a setting?

Greets,
Jeroen


-Oorspronkelijk bericht-
Van: Qgis-user  Namens Groene Bij
Verzonden: vrijdag 1 maart 2019 11:48
Aan: rich...@duif.net; qgis-user@lists.osgeo.org
Onderwerp: Re: [Qgis-user] change default webbrowser in qgis3 settings?

This one opens Firefox...

So maybe it is an issue in qgis, I'll give it to Tom.



-Oorspronkelijk bericht-
Van: Richard Duivenvoorde 
Verzonden: vrijdag 1 maart 2019 10:59
Aan: Groene Bij ; rich...@duif.net; qgis-user@lists.osgeo.org
Onderwerp: Re: [Qgis-user] change default webbrowser in qgis3 settings?

Sorry, wrong example, please try:

QDesktopServices.openUrl(QUrl('http://qgis.org'))

Richard

On 01/03/2019 10.35, Groene Bij wrote:
> Hi Richard,
> 
> Using your line in the Python Console I get the following message:
> 
> Traceback (most recent call last):
>   File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\code.py", line 90, in runcode
> exec(code, self.locals)
>   File "", line 1, in 
> TypeError: openUrl(QUrl): argument 1 has unexpected type 'str'
> 
> I am using 3.4.5 LTR
> 
> Greetings,
> Jeroen
> 
> -Oorspronkelijk bericht-
> Van: Qgis-user  Namens Richard 
> Duivenvoorde
> Verzonden: maandag 25 februari 2019 22:08
> Aan: qgis-user@lists.osgeo.org
> Onderwerp: Re: [Qgis-user] change default webbrowser in qgis3 settings?
> 
> Hi Jeroen,
> 
> I'd say: create an issue in the repo of it:
> https://github.com/tomchadwin/web2qgis/issues
> 
> I have some plugins which opened an url or file in a browser, and then used 
> default Qt-machinery, something like:
> 
> QDesktopServices.openUrl('http://qgis.org')
> 
> What happens if you use that in the Python Console? In your QGIS 3.
> Does it open your preferred browser?
> Or does it also open IE. If last, then maybe it is a Qt setting?
> 
> Regards,
> 
> Richard Duivenvoorde
> 
> On 25/02/2019 09.43, Groene Bij wrote:
>> Hi all,
>>
>> I am sorry to repeat this question. I really hope someone can help.
>>
>> Today I did a clean install of 3.4.5 and exporting a map with the 
>> plugin qgis2web it still opens the webmap in IE. I don’t use IE, 
>> haven’t configured it and it is not my default webbrowser in Win10.
>>
>> Somehow, some setting in qgis 3 doesn’t use my default windows 
>> settings correctly.
>>
>>  
>>
>> Qgis 2.18.28 doesn’t have this problem. I also did a clean install of
>> 2.18.28 today, exported a map with the plugin and it opens in my 
>> default webbrowser which is Firefox.
>>
>>  
>>
>> Is it a bug in 3.4.5?
>>
>> Is there a setting somewhere to change the webbrowser used?
>>
>>  
>>
>>  
>>
>> Gr.
>>
>> Jeroen
>>
>>  
>>
>>  
>>
>> *Van:*Qgis-user  *Namens *Groene 
>> Bij
>> *Verzonden:* maandag 11 februari 2019 17:10
>> *Aan:* qgis-user@lists.osgeo.org
>> *Onderwerp:* [Qgis-user] qgis3 uses IE as default browser on windows10?
>>
>>  
>>
>>  
>>
>> Hi,
>>
>>  
>>
>> Is there a setting in qgis3 to change the default internet browser 
>> used by processes?
>>
>> For instance, qgis2web opens a webbrowser after exporting the webmap. 
>> In
>> qgis2.18 my default browser Firefox was opened. Now, qgis3.4.4 it opens IE.
>>
>>  
>>
>> According to Tom Chadwin (qgis2web) the plugin refers to a piece of 
>> Pyhton code when opening the webbrowser:
>>
>> The code which opens the browser when you export is:
>>
>> https://github.com/tomchadwin/qgis2web/blob/master/qgis2web/maindialo
>> g
>> .py#L342
>>
>>  
>>
>> It uses the Python webbrowsermodule:
>>
>> https://docs.python.org/3/library/webbrowser.html
>>
>>  
>>
>> I have no experience with pyhon, so I hope there is a setting 
>> somewhere to choose my default browser. Besides that, I do hope qgis3 
>> will simply follow the default settings from the OS.
>>
>>  
>>
>> Kind regards.
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
> 
> 

[Qgis-user] QGIS 3 Frozen

2019-03-05 Thread Martin Bittens

Hello Colleagues,

After I made the latest update I don´t get access to the plugin manager. 
Clicking on 'Plugins - Manage and Install Plugins...' QGIS stops to 
work. No error message appears, and to close QGIS I need to use the 
windows task manager. Currently, there are 3 QGIS versions on my computer:


QGIS 3.4.5

QGIS 3.6.0

QGIS 3.7.0

The result is always the same. QGIS is frozen.

I am working with Windows 10.

Does anybody know what is the reason for that error?

Thank your for your help.



Martin




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] pyQGIS - set attributes by expression

2019-03-05 Thread Wouter Impens
A very late thank you Nyall, but indeed this works. Maybe it can be added
to the PYGIS Cookbook documentation?

Cheers
Wouter

Op do 7 feb. 2019 om 08:08 schreef Nyall Dawson :

> On Wed, 6 Feb 2019 at 18:14, Wouter Impens 
> wrote:
> >> > I'm trying to iterate over the fields of a vector layer (using the
> index) and fill in the values by an expression
> >> >
> >> >  my_features = a_layer.getFeatures()
> >> > for a_feat in my_features:
> >> > mijn_index = a_feat.fieldNameIndex('perc_nr')
> >> > value = an_expr
>
> Change this to:
>
> my_features = a_layer.getFeatures()
> context = QgsExpressionContext()
> for a_feat in my_features:
> mijn_index = a_feat.fieldNameIndex('perc_nr')
> context.setFeature(a_feat)
> value = an_expr.evalute(context)
> ...
>
> Nyall
>
>
> >>
> >> What's "an_expr" here? Is it a QgsExpression object?
> >>
> >> Nyall
> >>
> >> >  a_feat.setAttribute(mijn_index, value)
> >> >
> >> > a_layer.commitChanges()
> >> >
> >> > I don't get an error but nothing is filled in. I evaluated the
> expression and it's true. It also works in the field calculator.
> >> >
> >> > Anyone an idea?
> >> >
> >> >
> >> > Kind regards
> >> > Wouter
> >> > ___
> >> > Qgis-user mailing list
> >> > Qgis-user@lists.osgeo.org
> >> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Creating PNG images using QGIS 3 pygis

2019-03-05 Thread Anita Graser
Hi Walter,

On Tue, Mar 5, 2019 at 2:11 PM  wrote:

> I don't need the whole script converted - *only a hint how to create a
> png the new way.*
>
In that case, check out
https://anitagraser.com/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/pyqgis-101-exporting-layouts/

Regards,
Anita
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Creating PNG images using QGIS 3 pygis

2019-03-05 Thread wambacher
Some days ago I upgraded from QGIS 2.18 to 3.6.0 - not knowing that many
Python scripts won't run without modifications.

I could convert all of them but not this one:

|fromPyQt4.QtCoreimport*fromPyQt4.QtGuiimport*fromPyQt4importQtGuiimportprocessing,sys,time,psycopg2
importpprint ...creatin layers skipped (got this
running)...### Create Graph
#mapRenderer =iface.mapCanvas().mapRenderer()layers
=[missingLayer.id(),clipLayer.id()]mapRenderer.setLayerSet(layers)c
=QgsComposition(mapRenderer)c.setPlotStyle(QgsComposition.Print)c.setPaperSize(148,90)c.setPrintResolution(300)#
add mapx,y =0,0w,h =c.paperWidth(),c.paperHeight()composerMap
=QgsComposerMap(c,x,y,w,h)c.addItem(composerMap)#output to imagedpi
=c.printResolution()dpmm =dpi /25.4width =int(dpmm
*c.paperWidth())height =int(dpmm
*c.paperHeight())BackgroundColor=QColor(0,0,255)# create output image
and initialize itimage
=QImage(QSize(width,height),QImage.Format_ARGB32)image.setDotsPerMeterX(dpmm
*1000)image.setDotsPerMeterY(dpmm
*1000)image.fill(BackgroundColor)header
=QgsComposerLabel(c)header.setItemPosition(40,1)header.setBackgroundEnabled(0)newFont
=QFont("Comic Sans MS",18)header.setFont(newFont)header.setText("Missing
Countries Map")header.adjustSizeToText()c.addItem(header)header2
=QgsComposerLabel(c)header2.setItemPosition(50,11)header2.setBackgroundEnabled(0)newFont2
=QFont("Comic Sans
MS",10)header2.setFont(newFont2)header2.setText("TS="+ts)header2.adjustSizeToText()c.addItem(header2)footer
=QgsComposerLabel(c)footer.setItemPosition(124,87.5)footer.setBackgroundEnabled(0)newFont3
=QFont("Times
Roman",4)footer.setFont(newFont3)footer.setText(time.ctime())footer.adjustSizeToText()c.addItem(footer)legend
=QgsComposerLegend(c)legend.model().setLayerSet(mapRenderer.layerSet())legend.setItemPosition(5,65)legend.setFrameEnabled(1)newFont
=QFont("Comic Sans
MS",6)legend.setStyleFont(QgsComposerLegendStyle.Title,newFont)legend.setStyleFont(QgsComposerLegendStyle.Subgroup,newFont)legend.setStyleFont(QgsComposerLegendStyle.SymbolLabel,newFont)legend.setStyleMargin(QgsComposerLegendStyle.Title,2)legend.setTitle("Legend")legend.setSymbolHeight(2)legend.adjustBoxSize()c.addItem(legend)#
render the compositionimagePainter
=QPainter(image)imagePainter.setRenderHint(QPainter.Antialiasing)sourceArea
=QRectF(0,0,c.paperWidth(),c.paperHeight())targetArea
=QRectF(0,0,width,height)c.render(imagePainter,targetArea,sourceArea)imagePainter.end()imageFile
="missing_boundaries"+ts+".png"print"saving to "+imageFile
image.save(imageFile) |

Yes, I do know the QqsComposer has gone but I can't find any
documentation or example for QGIS3 plotting. Except the API description
of course.

I don't need the whole script converted - *only a hint how to create a
png the new way.*

regards

walter
**

||

-- 
My projects:

Admin Boundaries of the World 
Missing Boundaries

Emergency Map 
Postal Code Map (Germany only) 
Fools (QA for zipcodes in Germany) 
Postcode Boundaries of Germany 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Function-editor: Where are custom functions stored

2019-03-05 Thread DelazJ
Hi,
See
https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/expression.html#function-editor
(step 2), ie in python/expressions folder of the user profile directory
which depends on your operating system (see
https://docs.qgis.org/testing/en/docs/user_manual/introduction/qgis_configuration.html#working-with-user-profiles
)

HTH,
Harrissou

Le mar. 5 mars 2019 à 12:59, Kai Behncke  a
écrit :

> Dear users,
> I use Quantum GIS 3.6 on Windows.
>
> if I create an own custom-function via the function editor, where is this
> function stored (in which file?) ?
>
> Thank you very much, Kai
>
>
> Mit freundlichen Grüßen
> Im Auftrag
>
> Kai Behncke
> Geoinformation
> Tel.: +49 5451 931-7125
>
> E-Mail: kai.behn...@ibbenbueren.de
>
> Rathaus II
> Roncallistraße 3-5
> 1. Stock, Raum 105
> 49477 Ibbenbüren
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Error Message When Packaging Application for Win7

2019-03-05 Thread Carter, Cat
Good afternoon all

My apologies but I am unsure which mailing list is the appropriate one to use.

Our support team are trying to package QGIS 3.4.4 'Madeira' for Win7 and Win10 
for deployment, however they are facing an issue with the Win7 extraction.

Extraction issues faced on win7:
1.extract:error writing to file gdal203.dll
2. extract:error writing to file vcredist-2013-x64.exe

[cid:image003.png@01D4CE75.4D1E3DB0]

Would anyone be able to provide any advice on what might be causing this error?

Many thanks

Cat Carter
Software Asset Management Analyst
Commercial & Software Asset Management
Enterprise IT

T: +44 (0)208 186 1874

3rd Floor, 334 Outland Road
Plymouth, Devon
PL3 5TU

Leave: None Planned

[cid:4E18CA00-3CA9-4B94-970C-09C6DB028C24]

edfenergy.com

Please consider the environment before printing this email

This e-mail and any files transmitted with it are confidential and may be 
protected by legal privilege. If you are not the intended recipient, please 
notify the sender and delete the e-mail from your system.
This e-mail has been scanned for malicious content but the internet is 
inherently insecure and EDF Energy Limited can not accept any liability for the 
integrity of this message or its attachments.
No employee or agent of EDF Energy Limited or any related company is authorised 
to conclude any binding agreement on behalf of EDF Energy Limited or any 
related company by e-mail.

All e-mails sent and received by EDF Energy Limited are monitored to ensure 
compliance with the company's information security policy.  Executable and 
script files are not permitted through the EDF Energy Limited mail gateway.  
EDF Energy does not accept or send mails above 30 Mb in size.

EDF Energy Limited
Registered in England and Wales No. 2366852
Registered Office: 90 Whitfield Street, London W1T 4EZ
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Function-editor: Where are custom functions stored

2019-03-05 Thread Kai Behncke
Dear users, 
I use Quantum GIS 3.6 on Windows.

if I create an own custom-function via the function editor, where is
this function stored (in which file?) ?

Thank you very much, Kai


Mit freundlichen Grüßen
Im Auftrag

Kai Behncke
Geoinformation
Tel.: +49 5451 931-7125

E-Mail: kai.behn...@ibbenbueren.de 

Rathaus II
Roncallistraße 3-5
1. Stock, Raum 105
49477 Ibbenbüren



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] Funzione "aggregate" con variabile @parent su layer con SR diversi

2019-03-05 Thread Totò
marti_ wrote
> Tutta questa menata per dire che sarebbe stato utile se "aggregate" con
> @parent funzionasse anche con layer di SR differenti e con il prossimo
> file
> puntuale che dovrò correggere credo tutto sommato mi convenga riproiettare
> il layer dei comuni :)

Ciao Martina,
secondo me con un po' di ingegno si potrebbe fare

prova a usare la funzione transform(geom, source_auth_id, dest_auth_id)
applicata ad una delle due geometrie, cosi facendo, forse (non ho testato),
riesci ad usare aggregate anche con SR differenti.

facci sapere

saluti



-
https://pigrecoinfinito.wordpress.com/
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] QGIS-Kerning-Errors?

2019-03-05 Thread Elstermann, Mike
Hello, everybody,

When I use mass text with different markups (font attributes) over HTML text, 
kerning errors occur especially with small but necessary font sizes, i.e. the 
spacing becomes incorrect. The screenshot [1] should illustrate this. It is 
simple HTML (on the right). The errors occur equally in QGIS 2.14 and 3.2. Does 
anyone have an idea or a workaround?  What other possibilities are there for 
mass text with different attributes?

Here is the test HTML:
August-Hermann-Francke
August-Hermann-Francke
August-Hermann-Francke
August-Hermann-Francke

August-Hermann-Francke
August-Hermann-Francke

August-Hermann-Francke
August-Hermann-Francke

Thanks, mikeE.

[1] ... http://www.geoobserver.de/QGIS-Kerning-Error_1.png

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS package broken on Ubuntu Bionic with UbuntuGIS PPA

2019-03-05 Thread Bernd Vogelgesang

Hi César,

this is the lesson I had to learn hard a dozend of times over the years: 
Do not update any ububuntugis related packages "after" a QGIS version 
update.


Those two parts of the eco-system never managed to get in sync, and 
maybe never will (no idea how and why and what, I'm just a user).


On Linux Mint, I recently discovered in the Update manager the 
possibility to right-click on a package name, and set it to be ignored 
for updates.


And fortunately, a hover-over the package name reveals the source, so I 
can deactivate all ubuntugis packages for updates within seconds.


Hope this helps ... next time

Cheers,

Bernd



Am 04.03.19 um 23:39 schrieb César Augusto Ramírez Franco:

Hello,

I don't know if this is the right place to ask this, so apologies if 
it isn't.


Today I updated my system through apt and the gdal package got 
upgraded to 2.4.0 and at the same time the qgis package got removed.


I'm using the ubuntugis-unstable PPA and the QGIS repo for ubuntugis:

deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu 
bionic main # ubuntugis

deb https://qgis.org/ubuntugis bionic main # QGIS

When I try to install QGIS again, apt complains of unmet dependencies:

# apt install qgis
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 qgis : Depends: gdal-abi-2-3-0 but it is not installable
      Depends: libqgis-analysis3.6.0 but it is not going to be installed
      Depends: libqgis-app3.6.0 but it is not going to be installed
      Depends: python-qgis (= 1:3.6.0+28bionic-ubuntugis) but it is 
not going to be installed

      Recommends: qgis-plugin-grass but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I read online that removing ubuntugis and installig from the ubuntu 
repo would solve the problem but I'm relying on some ubuntugis package 
versions, so what's the recommended solution? Shouldn't QGIS 3.6 be 
able to run with GDAL 2.4.0?


Thanks in advance

--
*César Augusto Ramírez Franco*

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [QGIS-Developer] [Ubuntu] QGIS package broken on Ubuntu Bionic with UbuntuGIS PPA

2019-03-05 Thread Angelos Tzotsos

Hi Jurgen,

Sorry, I forgot to forward the UbuntuGIS update announcement to you 
yesterday.


Best regards,
Angelos

On 3/5/19 8:19 AM, Jürgen E. Fischer wrote:

Hi Alex,

On Mon, 04. Mar 2019 at 14:56:59 -0800, Alex M wrote:

I believe I have this combo working on a machine, will need to check.

I guess you don't have.



Looking at the repos, I see new version of packages went up 10 hours
ago. It is possible the QGIS release on qgis.org ubuntugis repo needs to
be rebuilt against these new packages, which usually happens within 24
hours.

The qgis.org packages in the non-nightly repo are built on release and packages
and are not automatically rebuilt when dependencies changed - see the
note on

https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

that also lists a couple of options to deal with this.


Jürgen


___
QGIS-Developer mailing list
qgis-develo...@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



--
Angelos Tzotsos, PhD
Charter Member
Open Source Geospatial Foundation
http://users.ntua.gr/tzotsos

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [Ubuntu] QGIS package broken on Ubuntu Bionic with UbuntuGIS PPA

2019-03-05 Thread Andre Joost

Am 05.03.19 um 07:19 schrieb Jürgen E. Fischer:



The qgis.org packages in the non-nightly repo are built on release and packages
and are not automatically rebuilt when dependencies changed - see the
note on

https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

that also lists a couple of options to deal with this.




Another option is to disable the ubuntugis ppa immidiately after a QGIS 
point release until QGIS calls for newer versions from it.


Unfortunately, you can't go back to GDAL 2.3 once it is updated on 
ubuntugis unstable. Same goes for GRASS.


HTH,
Andre Joost


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] change default webbrowser in qgis3 settings?

2019-03-05 Thread Groene Bij
Short update on this issue.

After entering QDesktopServices.openUrl(QUrl('http://qgis.org')) and seeing 
qgis3 opening the firefox browser, now qgis2web also always opens the firefox 
browser.
Restarts, new projects, old projects, now always my default browser is used. 

This solves my problem, but I have no idea what happened.
To me this is strange behavior, like the python line somehow changed a setting?

Greets,
Jeroen


-Oorspronkelijk bericht-
Van: Qgis-user  Namens Groene Bij
Verzonden: vrijdag 1 maart 2019 11:48
Aan: rich...@duif.net; qgis-user@lists.osgeo.org
Onderwerp: Re: [Qgis-user] change default webbrowser in qgis3 settings?

This one opens Firefox...

So maybe it is an issue in qgis, I'll give it to Tom.



-Oorspronkelijk bericht-
Van: Richard Duivenvoorde 
Verzonden: vrijdag 1 maart 2019 10:59
Aan: Groene Bij ; rich...@duif.net; qgis-user@lists.osgeo.org
Onderwerp: Re: [Qgis-user] change default webbrowser in qgis3 settings?

Sorry, wrong example, please try:

QDesktopServices.openUrl(QUrl('http://qgis.org'))

Richard

On 01/03/2019 10.35, Groene Bij wrote:
> Hi Richard,
> 
> Using your line in the Python Console I get the following message:
> 
> Traceback (most recent call last):
>   File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\code.py", line 90, in runcode
> exec(code, self.locals)
>   File "", line 1, in 
> TypeError: openUrl(QUrl): argument 1 has unexpected type 'str'
> 
> I am using 3.4.5 LTR
> 
> Greetings,
> Jeroen
> 
> -Oorspronkelijk bericht-
> Van: Qgis-user  Namens Richard 
> Duivenvoorde
> Verzonden: maandag 25 februari 2019 22:08
> Aan: qgis-user@lists.osgeo.org
> Onderwerp: Re: [Qgis-user] change default webbrowser in qgis3 settings?
> 
> Hi Jeroen,
> 
> I'd say: create an issue in the repo of it:
> https://github.com/tomchadwin/web2qgis/issues
> 
> I have some plugins which opened an url or file in a browser, and then used 
> default Qt-machinery, something like:
> 
> QDesktopServices.openUrl('http://qgis.org')
> 
> What happens if you use that in the Python Console? In your QGIS 3.
> Does it open your preferred browser?
> Or does it also open IE. If last, then maybe it is a Qt setting?
> 
> Regards,
> 
> Richard Duivenvoorde
> 
> On 25/02/2019 09.43, Groene Bij wrote:
>> Hi all,
>>
>> I am sorry to repeat this question. I really hope someone can help.
>>
>> Today I did a clean install of 3.4.5 and exporting a map with the 
>> plugin qgis2web it still opens the webmap in IE. I don’t use IE, 
>> haven’t configured it and it is not my default webbrowser in Win10.
>>
>> Somehow, some setting in qgis 3 doesn’t use my default windows 
>> settings correctly.
>>
>>  
>>
>> Qgis 2.18.28 doesn’t have this problem. I also did a clean install of
>> 2.18.28 today, exported a map with the plugin and it opens in my 
>> default webbrowser which is Firefox.
>>
>>  
>>
>> Is it a bug in 3.4.5?
>>
>> Is there a setting somewhere to change the webbrowser used?
>>
>>  
>>
>>  
>>
>> Gr.
>>
>> Jeroen
>>
>>  
>>
>>  
>>
>> *Van:*Qgis-user  *Namens *Groene 
>> Bij
>> *Verzonden:* maandag 11 februari 2019 17:10
>> *Aan:* qgis-user@lists.osgeo.org
>> *Onderwerp:* [Qgis-user] qgis3 uses IE as default browser on windows10?
>>
>>  
>>
>>  
>>
>> Hi,
>>
>>  
>>
>> Is there a setting in qgis3 to change the default internet browser 
>> used by processes?
>>
>> For instance, qgis2web opens a webbrowser after exporting the webmap. 
>> In
>> qgis2.18 my default browser Firefox was opened. Now, qgis3.4.4 it opens IE.
>>
>>  
>>
>> According to Tom Chadwin (qgis2web) the plugin refers to a piece of 
>> Pyhton code when opening the webbrowser:
>>
>> The code which opens the browser when you export is:
>>
>> https://github.com/tomchadwin/qgis2web/blob/master/qgis2web/maindialo
>> g
>> .py#L342
>>
>>  
>>
>> It uses the Python webbrowsermodule:
>>
>> https://docs.python.org/3/library/webbrowser.html
>>
>>  
>>
>> I have no experience with pyhon, so I hope there is a setting 
>> somewhere to choose my default browser. Besides that, I do hope qgis3 
>> will simply follow the default settings from the OS.
>>
>>  
>>
>> Kind regards.
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: 

Re: [Qgis-user] QGIS-Server and Out-Of-Memory

2019-03-05 Thread Andrea Peri
I guess my qgis-server is already 64bit ,
but i compile it from source and perhaps i wrongly guess is a 64bit. So i
will verify this.
Thx for hint.


Il mar 5 mar 2019, 09:09 Luca Manganelli 
ha scritto:

> Il giorno sab 2 mar 2019 alle ore 09:16 Andrea Peri 
> ha scritto:
> > Sometime this service has gone the machine in out-of-memory.
>
> I remember that when we had qgis server 32 bit, we could incur in out of
> memory error quite often.
> When we passed to 64 bit, those vanished!
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS-Server and Out-Of-Memory

2019-03-05 Thread Luca Manganelli
Il giorno sab 2 mar 2019 alle ore 09:16 Andrea Peri 
ha scritto:
> Sometime this service has gone the machine in out-of-memory.

I remember that when we had qgis server 32 bit, we could incur in out of
memory error quite often.
When we passed to 64 bit, those vanished!
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] Funzione "aggregate" con variabile @parent su layer con SR diversi

2019-03-05 Thread Martina Savarese
Grazie,
avevo un caso in cui dovevo verificare la corretta ubicazione di un layer
punti (con un dato SR e con un campo striga contenente il nome del comune),
rispetto a un layer poligonale di comuni con altro SR e stesso campo. Allo
scopo di tale verifica ho pensato di poter utilizzare o l'algoritmo "Unisci
attributi per posizione" o uno spatial join con "aggregate", preferendo
quest'ultimo per avere un campo virtuale, con i valori concatenati da
virgola, e che successivamente potessi anche riutilizzare per altro
semplicemente sostituendo il campo nell'espressione (invece di avere una
serie di nomi di comuni separati da virgola, avere i nomi delle entità, la
tipologia o altro).
Alla fine ho risolto con "Unisci attributi per posizione" (senza dover
riproiettare uno dei due layer, dal momento che stavo lavorando con la 3),
ma mi è andata bene perché i punti con ubicazione sbagliata erano pochi: se
fossero stati molti di più avrei dovuto salvare il file di output per poter
proseguire a spostare i punti anche nei giorni successivi e magari
aggiungerci anche un campo di verifica da spuntare o segnarmi a che punto
ero arrivata con le correzioni, perché non avrei avuto il vantaggio di un
campo virtuale che si modifica man mano che correggevo i punti.
Tutta questa menata per dire che sarebbe stato utile se "aggregate" con
@parent funzionasse anche con layer di SR differenti e con il prossimo file
puntuale che dovrò correggere credo tutto sommato mi convenga riproiettare
il layer dei comuni :)

Martina


Il giorno lun 4 mar 2019 alle ore 22:15 nino formica 
ha scritto:

> Ciao,
>
> certo che è normale !
> Stiamo parlando di operazioni geospaziali (come appunto aggregate) tra
> entità (i layer) che devono essere espressi nello stesso SR.
>
> Saluti
> Nino
>
> Il lun 4 mar 2019, 18:58 Martina Savarese  ha
> scritto:
>
>> Salve, ho notato che la funzione "aggregate" con la variabile @parent non
>> funziona se i due layer hanno SR differenti. Prova fatta sulla versione
>> 3.4.5 (windows 10).
>> Francamente non ricordo se fosse così anche nelle precedenti, cioè, è
>> normale?
>> Martina
>> ___
>> QGIS-it-user mailing list
>> QGIS-it-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>>
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user