Re: [Qgis-user] QGIS-User Digest, Vol 218, Issue 10 Moving many project files - bulk updating

2024-04-11 Thread Reginald Carlier via QGIS-User
change_servername(fl, zonder, extension) print("klaar") ## Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster T+32 51 33 74 39www.ingelmunster.be 0207.485.473 (gemeente)

[Qgis-user] Get the translation of a core string in Python

2023-10-05 Thread Reginald Carlier via QGIS-User
, Reginald Carlier, Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster T+32 51 33 74 39www.ingelmunster.be 0207.485.473 (gemeente) - 0212.221.845 (OCMW) ​RPR Rechtbank van eerste aanleg West-Vlaanderen afdeling Kortrijk Wij werken enkel op afspraak

Re: [Qgis-user] Couldn't load SIP module

2020-11-05 Thread Reginald
Hi, I had the same issue on PopOs. Launching QGIS 3.16 I had a sip error. Strange thing was that when i opened a terminal and ran qgis from in there QGIS 3.10 launched without any sip problem and fully functional. I think the sip problem is a path problem and I suspect that the path is not

[Qgis-user] no package for ubuntu groovy gorilla

2020-10-26 Thread Reginald
Hi, I have recently upgraded to ubuntu 20.10 but I noticed that the QGIS version that was installed (3.14.16) was removed during the upgrade. When I activated the QGIS repo and adjusted the settings I was still out of luck. I see that "https://ubuntu.pkgs.org/20.10/qgis-amd64/; contains no

Re: [Qgis-user] remove highlights from map canvas

2020-08-20 Thread Reginald
Hi, I figured out how to get it working with QgsRubberBand. I don't know what is exact the difference between QgsHighlight and QgsRubberBand but I wanted to share this with anyone needing this functionality: ___ -- from qgis.gui import

Re: [Qgis-user] Closest Distance of a point within a polygon to the closest part of that polygon and the name of the adjacent polygon with the common boarder

2020-07-10 Thread Reginald
Hi, Yes the easiest way is to densify your polygons. With the desify algo you can do this and specify how dense you want them to be. processing.run("native:densifygeometries",

[Qgis-user] Error starting up QGIS 3.10.2

2020-01-28 Thread Reginald
Hi, Today I downloaded and installed QGIS 3.10.2 (64bit) on windows 7. After installing QGIS 3.10.2 I installed Visual Studio Code. The installation informed me that visual studio code was added to the path. When starting up QGIS 3.10.2 I got a message saying that something was missing in

Re: [Qgis-user] export to dxf problem

2019-12-11 Thread Reginald
Hi Boaz, When you open the dxf in autocad you need to connect to the geographical data of the area of the drawing. In the taskpane there is a data icon. Click on it and choose 'connect to data'. Next add a connection (shapefile or postgres or wms or whatever is available for the area of your

Re: [Qgis-user] Export to MSSQL from QGIS = Different SRID in ArcGIS

2019-08-27 Thread Reginald
Hi Steven, Do you mean that after importing the shape in Arcgis you are using a tool (SSMS) to check the CRS? I have always been baffled about ArcGis trying to transform correct CRSes. I can only guess that the geometry is transformed in memory but not written to the actual data. That way if you

[Qgis-user] OSGeo4W64 installer stalls at error

2019-08-23 Thread Reginald
Hi users, When I install or upgrade my qgis installation (windows7 osgeo4W64 installer) I always install from a local directory. At home I download the complete osgeo4W64 packages on a usb stick (about 30 gig). The reason I do this is because the download always fails at work because of an

Re: [Qgis-user] exporting tiff to geospatial pdf fails

2019-08-21 Thread Reginald
Hi, Some additional info: The tiff is 825MB. When opening the tiff with Gimp it renders black. Exporting in gimp to a pdf creates a pdf with a white square on it. When I add the pdf to QGIS i get the expected map. Reginald, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267

[Qgis-user] exporting tiff to geospatial pdf fails

2019-08-21 Thread Reginald
Hello qgisusers, Using QGIS 3.8.1-Zanzibar on Windows with OSGeo4W. When I try to export a georeferenced tiff to a geospatial pdf I get a progresbar in the statusbar and after about 15 seconds I get a notification in the messagebar that the pdf was rendered with a hyperlink to the file. When I

Re: [Qgis-user] html widget : entering < or > fails

2019-08-14 Thread Reginald
Hi, Sorry for the noise. I found that somehow the language settings of QGIS 3.8 had changed. When setting them back to dutch/belgium everything worked as expected. Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html

[Qgis-user] html widget : entering < or > fails

2019-08-14 Thread Reginald
Hi, I was reading in the changelog for 3.8 there was a new html widget so I was going to try it. When I entered > or < the editor changed it to / or |. I opened notepad to see if my keyboard layout had changed but there I got the usual characters. As you need both < and > to write tags it seems

Re: [Qgis-user] exporting layout to pdf changes output of locked maps

2019-06-21 Thread Reginald
Hi, I implemented the workflow you mentioned but it appears that locking has no effect. This looks like a bug. Working with themes does work. Maybe locking should be removed? Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html

Re: [Qgis-user] encoding csv to windows-1252 does not work

2019-06-18 Thread Reginald
Hi Tobias, If I understand you correctly the table in QGIS is in utf-8. When I open the table I see that the french characters show up correct. In stead of setting my database to 1252 West-Europees Windows I should set it up in utf-8. I created a test database from pgadmin and the defaults where

[Qgis-user] encoding csv to windows-1252 does not work

2019-06-18 Thread Reginald
Hi users and devs, I used 'import text separated layer' in the menu 'Add layer' from 'Layers' menuitem to add a txt file. The text files are in Windows 1252 encoding. When importing them I chose this encoding but as you

Re: [Qgis-user] exporting layout to pdf changes output of locked maps

2019-06-04 Thread Reginald
Hi, Using a different map theme works! Good to know. I'm still a little bit puzzled why the locking didn't work. Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org

Re: [Qgis-user] exporting layout to pdf changes output of locked maps

2019-06-04 Thread Reginald
hi Karl, I will try that and report back. thanks for the tip Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info:

[Qgis-user] exporting layout to pdf changes output of locked maps

2019-06-04 Thread Reginald
Hello users and devs, I've been trying to create a A1 maplayout containing two A2 maps. One of the maps I put on the layout shows an aereal photo, the other shows a topographical map on another scale. When my layout was ready I locked all the items and clicked on the export to pdf icon. The

Re: [Qgis-user] Unable to find driver ECW and JP2ECW

2019-05-16 Thread Reginald
Hi, Today I copied the georeferenced tiffs into a new project. When configuring QGIS server options I checked all tiff layers to be published in the WCS section. Now I can acces the WMS again and it renders as it should. In the layerpanel there is just a warning that the legend could not be

[Qgis-user] Unable to find driver ECW and JP2ECW

2019-05-10 Thread Reginald
Hi list, I have a qgis server project in which I serve several tiffs. It used to work fine but after updating to the latest version of QGIS 3 and QGIS 3 server it fails. When trying to connect via the Data Source Manager I get this error: Het downloaden van capabilities is mislukt: Downloaden

[Qgis-user] problem with gdal after upgrading from QGIS 3.6 to 3.6.1

2019-04-10 Thread Reginald
Hello qgis users and devs, Today I upgraded my OSGeo4W64 install on windows 7 from QGIS 3.6 to 3.6.1 I use a bat file to copy WFS features into a postgis layer. This has always worked before but now I'm getting an error: Unable to open datasource

Re: [Qgis-user] qlr of spatialite database layer not showing when database is on network drive

2019-03-22 Thread Reginald
Thanks Robert, I tried loading a gpkg layer from a qlr file and it succeeds but the styling is messed up. Using simple styling it renders ok. Regards, -- Sent from:

[Qgis-user] qlr of spatialite database layer not showing when database is on network drive

2019-03-21 Thread Reginald
Hello list, Exporting a spatialite layer to a qlr file when the layer resides in a database on a network drive fails every time I try it. When I copied this database to my C drive in windows the qlr file shows up as it should. I have compared the two files and the only difference was the drive

Re: [Qgis-user] problem with authcfg

2019-03-19 Thread Reginald
Hi, I tried removing the configuration by removing all the cached configurations. This didn't work. Then I wiped the database for authentication. This didn't work neither. Finally I started with a new profile an now it works. Regards, -- Sent from:

[Qgis-user] problem with authcfg

2019-03-19 Thread Reginald
Hi users, I have a problem concerning authcfg. On the local network there are about 5 clients that share qlr files. These qlr files are accessed via the qlrplugin and reside in a folder on a network drive (windows network). I use QGIS 3.6 on windows 7 and noticed that in the qlrfile that is

Re: [Qgis-user] applying qml to vector layer with pyqgis

2019-03-01 Thread Reginald
Hi, Sorry for the noise. After double checking the filename I noticed that the filenames for the qml files were wrong Thanks for checking Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list

[Qgis-user] applying qml to vector layer with pyqgis

2019-03-01 Thread Reginald
Hello list, I have a whole series of shapefiles and qml files residing in the same directory. The shapefiles and the qmlfiles have according names: eg. Adp36007.shp --> Adp36007.qml I have read somewhere that those qml files would be applied automaticaly when I load the shapefiles in the map.

Re: [Qgis-user] python qgis 3 adding features fails partly

2019-02-28 Thread Reginald
Thanks Michel for this explanation. I can now indeed add the table to QGIS. I used MultiPolygon in stead of Point and created the test table. I changed my code to: from qgis.PyQt.QtCore import * from PyQt5.QtGui import * perceellayer=None premielayer=None layers = [layer for layer in

Re: [Qgis-user] python qgis 3 adding features fails partly

2019-02-28 Thread Reginald
Hi, I'm still scratching my head over this one. As a test I created a table 'test' in postgis: id: pkey type oid naam: type text geom: type geometry select updateGeometrySrid('test','geom',31370) # assigning projected CRS to geometry When I try to add this table to qgis using the database

[Qgis-user] python qgis 3 adding features fails partly

2019-02-12 Thread Reginald
Hello list, Using the python console in QGIS 3.4.4 with the following code: from qgis.PyQt.QtCore import * from PyQt5.QtGui import * perceellayer=None premielayer=None layers = [layer for layer in QgsProject.instance().mapLayers().values()] for lyr in layers: if lyr.name() == "Adpf1836007":

Re: [Qgis-user] model that runs bat file to obtain vector layer

2019-02-04 Thread Reginald
Thanks Nicolas and Nyall, That makes sense. I will try to wrap the call to the bat file in the template. Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List

Re: [Qgis-user] model that runs bat file to obtain vector layer

2019-02-04 Thread Reginald
Thanks Nicolas, You have me some hints on how to do it. The bat file was created according to the code of Michel Stuyts. I adapted it to work with SSL and I guess I only have to do call C:\Osgeo4W64\bin\py3_env.bat # this will make the GDAL SRS database available os.system([("cmd",

[Qgis-user] model that runs bat file to obtain vector layer

2019-02-03 Thread Reginald
Hello list, I am running QGIS 3.4 on windows 7 and I have a bat file that uses ogr2ogr to get a layer of points from a WFS service. The bat file works when I run it in the OSGeo4W shell but not if I run it in the windows cmd shell. Then it complains about not finding the SRS. Now I want to make a

[Qgis-user] Vector layer is disappeared after opening Event Browser window

2019-01-20 Thread Reginald
Hi, Could it be that Bug #3053 is still unresolved? I'm using QGIS 3.4.3 and experiencing the behaviour described in bug #3053 which is closed. Anyone else experiencing this? For the record the vector file is a shapefile. Regards, -- Sent from:

Re: [Qgis-user] Unable to make qgis server work in QGIS 3.4.3

2019-01-16 Thread Reginald
Hi, I found the solution about isue about the transparancy. I was serving jpg in stead of png files. Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info:

Re: [Qgis-user] Unable to make qgis server work in QGIS 3.4.3

2019-01-16 Thread Reginald
Thanks Andreas, You put me on the right track. I tried setting environment variables in httpd.conf: FcgidInitialEnv QGIS_DEBUG 1 FcgidInitialEnv QGIS_SERVER_LOG_FILE "C:\OSGeo4W64\var\log\qgisserver.log" FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0 but apache wouldn't start anymore As I'm using

[Qgis-user] Unable to make qgis server work in QGIS 3.4.3

2019-01-16 Thread Reginald
Hello, When I try to make a new project for qgis server in QGIS 3.4.3 I get following error: Opvragen kaart mislukt [Fout: Error transferring

Re: [Qgis-user] Error when using poligonize (raster to vector)

2018-12-31 Thread Reginald
Thanks Andre, I reinstalled GDAL and I also installed SAGA and now it's working ;-) Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info:

[Qgis-user] Error when using poligonize (raster to vector)

2018-12-28 Thread Reginald
Hi, I have a heatmap mask tif file that I want to polygonize. I use qgis 3.4.2 on Windows 7. Every time I run the processing tool I get the message: gdal_polygonize.bat is not recognised as an internal or external command Seems like something about the path is missing? I can't find

Re: [Qgis-user] How to define generic VectorFileWriter

2018-12-24 Thread Reginald
The code above was not really tested profoundly. I found that in case that there are fields without value in the FeatureForm a value is picked from the attribute table that has no relation to the edited feature. I dont't know how to prevent this. Regards, -- Sent from:

Re: [Qgis-user] How to define generic VectorFileWriter

2018-12-21 Thread Reginald
Update #capabilities doesn't mean the editortool is toggled from qgis.PyQt.QtCore import * from qgis.core import QgsWkbTypes perceellayer=None editlayer=None layers = [layer for layer in QgsProject.instance().mapLayers().values()] for lyr in layers: if lyr.name() == "Parcels":

Re: [Qgis-user] How to define generic VectorFileWriter

2018-12-21 Thread Reginald
Hi, For those who are interrested in the result I post this script: #script uses selected features of parcellayer as geometry for editable other vector layer #make sure there is only one layer editable, otherwise only the first occuring layer will be

Re: [Qgis-user] How to define generic VectorFileWriter

2018-12-21 Thread Reginald
Thanks Nyall, I found some other information here: https://gis.stackexchange.com/questions/279734/understanding-qgis-api-documentation now I'm trying to find out how to print the FileWriter Error object as a string. Regards -- Sent from:

[Qgis-user] How to define generic VectorFileWriter

2018-12-21 Thread Reginald
Hi, I'm trying to implement a way to copy the geometry of selected parcels to an editable layer in a qgs project. I'm using QGIS 3.4.2. My code looks like this: from qgis.PyQt.QtCore import * from qgis.core import WKB perceellayer=None editlayer=None layers = [layer for layer in

Re: [Qgis-user] spatialite layer does not show

2018-12-19 Thread Reginald
Thanks for the reply, Jay M Johnson advised me this link: https://gis.stackexchange.com/questions/131996/shapefile-layers-in-qgis-dont-display-unless-i-zoom-out Meanwhile I solved the problem by saving the features in a postgresql layer. Regards, -- Sent from:

Re: [Qgis-user] spatialite layer does not show

2018-12-19 Thread Reginald
Update, In the logmessages I found this message: 2018-12-19T13:34:13 WARNINGKon geen stijlen laden uit F:/QGIS/dev/notarisattest/inlichtingen.sqlite (Query: SELECT styleQML FROM layer_styles WHERE f_table_schema IS NULL AND f_table_name='uittreksels' AND f_geometry_column ='geom' ORDER

[Qgis-user] spatialite layer does not show

2018-12-19 Thread Reginald
Hi qgis users, I have a model in which i use a parcellayer. From this parcellayer I get the selected features. In order to obtain one geometry I convert from singlepart to multipart geometry. In order to query the layers that overlay this parcels I make a buffer of -0.3m. The last step the model

[Qgis-user] Resolution problem with small laptop connected to external monitors

2018-12-14 Thread Reginald
Hi, We have a problem with a small laptop that is connected with two external monitors. All programs on the laptop show up in a sharp resolution. When using QGIS the resolution is granular. Even the aerial photo which is very sharp has a granular appearance. According to the person using the

[Qgis-user] Print composer not locking layers in 2.18.17 and crashing in 3.4.2

2018-12-03 Thread Reginald
Hello qgis users, I needed to make a A4 pdf of a parcel with as underground the aerial photographs of distinct years. When I used qgis 3.4.2 the application crashed during the proces of making the printcomposer. The aerial photographs

Re: [Qgis-user] OSGEO4W64 installs after failed download

2018-11-07 Thread Reginald
Update I found out that the invalid download was caused by internal network filtering or blocking. Some of the applications that the installer downloads were allowed some were blocked. Do they come from other URL? Luckely there is an option to install from a local directory. The sys admin

[Qgis-user] OSGEO4W64 installs after failed download

2018-10-30 Thread Reginald
Hi, Today I noticed that there was a new version of QGIS. I decided to update. During the update process the installer informed me that the download was incomplete. I choosed to try again but again it ended up incomplete so I choosed no the second time. I expected the installation to STOP because

[Qgis-user] unable to install QGIS with OSGEO4W on windows 7

2018-10-18 Thread Reginald
Hi, When trying to install QGIS with OSGEO4W64 installer on the PC of a fellow worker, everytime I get an error: crssync.exe : zip.dll is missing. you need to install it again Then when restarting and trying to run QGIS I get a dialogue that says: you need to check qgis-bin.env and correct

Re: [Qgis-user] no python support when installing QGIS 3.2 on ubuntu Bionic

2018-09-06 Thread Reginald
Yes, I probably will have to wait till the Beaver dies and I can upgrade. By the way, python-qgis got installed but cannot function due to incorrect bindings I guess... Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html

[Qgis-user] no python support when installing QGIS 3.2 on ubuntu Bionic

2018-09-06 Thread Reginald
5: version `Qt_5.10' not found (required by /home/reginald/.local/lib/python3.6/site-packages/PyQt5/QtCore.so) Python versie: 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] QGIS versie: 3.2.2-Bonn 'Bonn', 2684216 Python pad: ['/usr/share/qgis/python', '/home/reginald/.local/share/QGIS/QGIS3/profil

[Qgis-user] How to refresh image in python QGIS 3

2018-09-06 Thread Reginald
Hi, I have the following code: For some reason the image always shows the memlayer without transparancy so the underlaying buildings are not visible. Later in the code a word document is generated and when I close this document I see the memlayer as it should be. The image I save, and that I

Re: [Qgis-user] putting a script that doesn't involve GUI in scripts toolbox

2018-08-30 Thread Reginald Carlier
Thanks Nyall, This will get me on the right track. :) Regards, Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster T+32 51 33 74 39www.ingelmunster.be Raadpleeg onze disclaimer Van: Nyall Dawson [via OSGeo.org] [mailto:ml+s1560n5375927...@n6

Re: [Qgis-user] putting a script that doesn't involve GUI in scripts toolbox

2018-08-28 Thread Reginald
Thanks Havard, So I guess this means that it is impossible to use python scripts without opening a dialog? As my script doesn't fit in the template I pasted it in the editor of the pythonconsole and there it works :-) Regards, -- Sent from:

[Qgis-user] putting a script that doesn't involve GUI in scripts toolbox

2018-08-28 Thread Reginald
Hello, In QGIS 2.18 I made a script that created a feature from the selected Cadastral Parcels. That way I didn't have to draw them manualy. I want to use this script in QGIS 3 and put it in the Toolbox Processing. I did some changes to the script like replacing MapLayerRegistry with QgsProject

Re: [Qgis-user] WMS Request step size

2018-08-21 Thread Reginald
Hi Bo, I think you get more responses if you post this as a separate topic. Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info:

Re: [Qgis-user] WFS created with geoserver not showing style in QGIS

2018-08-21 Thread Reginald
Thanks Jonathan for this clarification. I guess I can style the vectorlayers in a QGIS project and serve this as a QGIS service. -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list

Re: [Qgis-user] WFS created with geoserver not showing style in QGIS

2018-08-10 Thread Reginald
The resulting xml is accesable here: https://drive.google.com/open?id=130mbfAT9gtQhU-z_NsA1vT11EGytO9xD Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List

[Qgis-user] WFS created with geoserver not showing style in QGIS

2018-08-10 Thread Reginald
Hi, In an earlier topic in this list there was a mentioning of SLD's being a styling that is layer based in stead of feature based. In geoserver I created a sld style for a layer that is inside my postgis database. The layer contains information about projects concerning sewersystem, an features

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Reginald Carlier
Thanks a lot Alessandro, That works perfectly. Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster T+32 51 33 74 39www.ingelmunster.be Raadpleeg onze disclaimer Van: Alessandro Pasotti [mailto:apaso...@gmail.com] Verzonden: donderdag 9 augustus 2018 9

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Reginald Carlier
I forgot to mention that I import datetime as follows: from datetime import datetime In the console I get the same result as from my script. Maybe I should use QCoreApplication.translate or some other explicit way to tell python to translate a string from English to Dutch? Regards, Reginald

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Reginald Carlier
ct that maybe strftime changed in python 3.6? Regards, Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster T+32 51 33 74 39www.ingelmunster.be Raadpleeg onze disclaimer -Oorspronkelijk bericht- Van: Nyall Dawson [mailto:nyall.daw...@gmail.com] Verzonde

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Reginald
nobody has issues with localisation in QGIS 3.2? -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe:

Re: [Qgis-user] Add processing script to toolbox

2018-08-01 Thread Reginald
No, but previously I made a couple of scripts based on the template. These scripts resided in the default scripts directory and I guess there is some logic that loads them in the toolbox on startup? Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html

Re: [Qgis-user] Add processing script to toolbox

2018-08-01 Thread Reginald
>Hi Reginald, >I had a quick look at this. The issue here is that your script doesn't follow the QGIS 3 API for scripts, and >will need to be ported/upgraded. >I'd suggest a good approach would be to start from the template given when you select "Create New Script >

Re: [Qgis-user] Add processing script to toolbox

2018-07-30 Thread Reginald
Hi Nyall, I have opened the options dialogue and clicked OK but everything remains the same. On a fresh install on another PC I still get the same behaviour. Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___

[Qgis-user] localisation of date fails in QGIS 3.2

2018-07-30 Thread Reginald
Hi, I have a script that was adapted to python 3.6 and runs fine on QGIS 3.2. The problem I'm having is that the date shows up in english. Under Extra > Options > Algemeen i have: Vertaling gebruikers-interface --> Nederlands Locale Dutch Belgium (nl_BE) Also if I choose for "Systeemlocale

Re: [Qgis-user] Add processing script to toolbox

2018-07-30 Thread Reginald
Hi Jean-Baptiste, I get the following warning: WARNINGKon script niet kopiëren: C:/Users/reginaldc/AppData/Roaming/QGIS/QGIS3/profiles/default/processing/scripts/notarisrapport3.py

[Qgis-user] Streetview is opening html page in text editor

2018-07-27 Thread Reginald
Hello, When I use the streetview plugin in QGIS 3.2 I noticed that it opens the page in a text editor in stead of opening the page in a browser. I tested QGIS 2.18.21 and there the plugin opens the page in the browser, so it has nothing to do with some default opening of html pages. Can this be

[Qgis-user] Add processing script to toolbox

2018-07-25 Thread Reginald
Hi, I'm trying to add some scripts to the toolbox of QGIS-versie 3.2.1-Bonn. Whatever I do to import the script in the toolbox fails. I use the python icon that is in the menubar of Toolbox Processing. I have run the scripts and they work with QGIS 3.21. Any help? Regards, -- Sent from:

[Qgis-user] Use of processing in order to run model from script

2018-06-21 Thread Reginald
Hi, I have build a model that works perfectly, and I want to wrap this in a script. In processing history I can see the command that gets executed: processing.runalg("modeler:bufferedselectionmodel","F:/Gis/Cadmap/Recent/Cadmap_Kadastrale_Percelen.shp",None) When I make a script were I import

Re: [Qgis-user] click on raster outline to make it visible

2018-05-25 Thread Reginald
Found the solution for defining the action: from PyQt4.QtCore import QFileInfo; fileName ="[%"Locatie"%]"; fraw = fileName.encode('string_escape').replace('','\\') fileInfo = QFileInfo(fileName); baseName = fileInfo.baseName(); qgis.utils.iface.addRasterLayer(fraw, baseName); With this code

Re: [Qgis-user] click on raster outline to make it visible

2018-05-25 Thread Reginald
My code now looks like this : resulting in the following error: Ongeldige Laag: GDAL provider Cannot open GDAL dataset 'F:\\Ingelmunster\riolering\\infraxscans\tif2/333-Meulebekestraat_Lammekensknokstraat_Bollewerpstraat_Leon_Bekaertstraat_Ringlaan_Mandesweg_GP_deel2.tif':

Re: [Qgis-user] click on raster outline to make it visible

2018-05-25 Thread Reginald
Hello, I have defined an action with the following python code: from PyQt4.QtCore import QFileInfo fileName ="[%"Locatie"%]"; fileInfo = QFileInfo(fileName); baseName = fileInfo.baseName(); qgis.utils.iface.addRasterLayer(fileName, baseName); The problem that I’m having is that the string

Re: [Qgis-user] click on raster outline to make it visible

2018-05-24 Thread Reginald
A little update: I created a raster tile index wich is a vector layer with one field named "location". Location stores the path of the rasterfile. Now I'm trying to add a new python action for this file. I need to find the coordinates of the place where I clicked on the map. Any suggestions?

[Qgis-user] click on raster outline to make it visible

2018-05-24 Thread Reginald
Hi, I have over 500 tif raster files that are georeferenced. I want to present them with QGIS server. I have changed the scale visibility so that they only get rendered when the user zooms in to a scale smaller than 1/2000. The problem I'm having is that several of the tiffs overlap each other.

Re: [Qgis-user] no python console in QGIS 3 Ubuntu 17.10

2018-04-14 Thread Reginald
Thanks Jurgen, That sorted it out. I now have a working version of qgis with python support. Seems like the download page of QGIS should be adapted ;-) Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user

Re: [Qgis-user] no python console in QGIS 3 Ubuntu 17.10

2018-04-14 Thread Reginald
Hi Patrick, I had added this repo but to no avail. It also gave an error: Fout:6 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu artful > Release >404 Not Found Regards, -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html

Re: [Qgis-user] no python console in QGIS 3 Ubuntu 17.10

2018-04-14 Thread Reginald
Hi, An update of the situation: First I was using: deb https://qgis.org/debian-nightly-release artful resulted in : installation of qgis without python support Then I did following command : sudo apt-get purge --auto-remove qgis which should remove qgis completely Strange: In synaptic I saw

Re: [Qgis-user] no python console in QGIS 3 Ubuntu 17.10

2018-04-13 Thread Reginald Carlier
Thanks Luke ☺ Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster T+32 51 33 74 39www.ingelmunster.be Raadpleeg onze disclaimer Van: Luke Pinner [mailto:lukepinne...@gmail.com] Verzonden: vrijdag 13 april 2018 12:48 Aan: Reginald Carlier Onderwerp: Re

Re: [Qgis-user] no python console in QGIS 3 Ubuntu 17.10

2018-04-13 Thread Reginald Carlier
Hi Luke, I have this repo installed: https://qgis.org/debian-nightly-release/ What is the repo for 3.01? I can’t seem to find it on the qgis website. Regards, Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster T+32 51 33 74 39www.ingelmunster.be

[Qgis-user] no python console in QGIS 3 Ubuntu 17.10

2018-04-13 Thread Reginald
Hi, On ubuntu 17.10 I added the nightly release to sources.list. I got to install QGIS 3, but I noticed there is no python console. I get an error of Qt 5.10 not being available. In synaptic I see that Qt 5.09 is used everywhere. I tried to install two snap versions of QGIS but every time that

Re: [Qgis-user] Unable to load qgisserver wms in qgis when more than 120 rasters

2018-04-12 Thread Reginald
Hi, I succeeded in copying the errormessage: Ongeldige Laag: WMS provider Kan het bereik niet berekenen Raster layer Provider is ongeldig (provider: wms, URI:

Re: [Qgis-user] Unable to load qgisserver wms in qgis when more than 120 rasters

2018-04-12 Thread Reginald
Thanks a lot Andreas, That worked! Altough, using the vrt succeeded the first time, but when I opened the project again qgis crashed (2.18.18) I tried several times, even loading the vrt file in a new project made qgis crash. Building the raster with gdal_merge worked. First I have build a vrt

[Qgis-user] Unable to load qgisserver wms in qgis when more than 120 rasters

2018-04-12 Thread Reginald
Hi, I have a problem when I try to make a wmsservice for qgis server. When I load the wmsservice in another instance of qgis everything works as long as there are no more than about 120 rasters in my project. When I try to add more tiffs to my project I get a timeout when trying to load the wms

[Qgis-user] unable to install external packages

2018-04-05 Thread Reginald Carlier
Hi, It's not an option to install a virtualbox or other virtual machine on the PC's of the users. Besides that the script wouldn't work in a virtual environment because it has no access then to the resources it needs. Regards, Reginald Carlier Deskundige GIS Gemeente Ingelmunster

Re: [Qgis-user] unable to deploy pythonscript

2018-04-05 Thread Reginald Carlier
Hi Frank, The problem is that the system administrator prefers just one version of QGIS without installing OSGEO4W on every PC. So I'm stuck with this version of QGIS. Regards, Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster T+32 51 33 74

[Qgis-user] unable to deploy pythonscript

2018-04-05 Thread Reginald
Hi, Maybe this question should be posted to the development mailinglist but as I am not subscribed there I post it here. I have written a python script that depends on external python packages (python-docx, pymssq, and others). When I am trying to deploy it on other computers, where there is a

Re: [Qgis-user] Calculate age in years with expressionbuilder

2017-12-19 Thread Reginald Carlier
Thanks Stefan, I finally got the age by using this code: (2017 - year(to_date("GDate"))) Year(to_date(now()) seems to fail as there are missing brackets but I can't figure out where. Regards, Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmu

[Qgis-user] Calculate age in years with expressionbuilder

2017-12-18 Thread Reginald
hello, I am calculating the age of persons with the expression builder. My formulae looks like this: year(age( to_date(now()) , "GDate" )) The result looks alright for people who are younger than 68 years. People who are born in 1949 or before get negative ages and the age goes from -68 to -31

Re: [Qgis-user] minidump after running script

2017-10-20 Thread Reginald
thanks for this solution. My script now looks like this and works :-) from qgis.PyQt.QtCore import * from qgis.PyQt.QtGui import * from qgis.PyQt.QtWidgets import * import processing layer=None for lyr in QgsMapLayerRegistry.instance().mapLayers().values(): if lyr.name() ==

[Qgis-user] minidump after running script

2017-10-20 Thread Reginald
Hi, I am trying to make a report by using a script. The script looks as follows: from qgis.PyQt.QtCore import * from qgis.PyQt.QtGui import * from qgis.PyQt.QtWidgets import * import processing # selectiepolygoon layer contains one multipolygone layer=None for lyr in

Re: [Qgis-user] splitting line at vertex

2017-09-27 Thread Reginald
Hi, I have tried it too and it works indeed. When I look at the layer where it works it says : layer source : multilinestring?crs=EPSG:31370={0cb5880a-ee8f-43d0-881d-84fb679a00c2} When I look at the layer where it doesn't work it says : layer source : memory?geometry=MultiLineString=EPSG:31370

Re: [Qgis-user] splitting line at vertex

2017-09-27 Thread Reginald
Hi Bernard, I think the problem is that it concerns a temporary drawing layer. There is something about this temporary layer that is different from a normal shape layer so that splitting at a vertex is not working. Regards, -- Sent from:

[Qgis-user] splitting line at vertex

2017-09-27 Thread Reginald
hello, I am trying to split a line at a vertex but somehow it always fails. I have read several answers on stackexchange but none of them works. Splitting a line is easy but I want the split to happen at the vertex. So I enabled snapping and I left click under the line, then I left click on the

  1   2   >