Re: [Qgis-user] merging parts from various raster files

2024-04-30 Thread Frank Broniewski via QGIS-User
Hello Sybille,

I am not sure if I understand your problem correctly. I assume, you have a 
mosaic of raster files (that overlap) and you want to create a single raster 
file for statistical analysis. In my opinion, the easiest way to achieve that 
is to create a virtual raster (VRT) and either use that for stats or create a 
new raster file from the VRT. You can find the tool in the processing toolbox. 
With the tool you can even define the resolution, if mixed, and how the VRT 
should be resampled.

HTH
Frank

https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/gdal/rastermiscellaneous.html#build-virtual-raster

Von: QGIS-User  im Auftrag von Sibylle 
St?ckli via QGIS-User 
Gesendet: Dienstag, 30. April 2024 11:34
An: qgis-user@lists.osgeo.org 
Betreff: [Qgis-user] merging parts from various raster files

Dear community

I am working with QGIS 3.34 (Prizren) and would like to merge region 1 from
raster (.tif) file 1 and region 2 from raster file 2, and...
For sure I will need to use raster-miscellaneous-merge.

My question is related to the pre-processing of the input raster files.
- The 12 raster files all have the same coordinate system.
- The raster files are fully overlapping (the entire country).
- The region is not defined per se in the raster file, but in an additional
shape file (biogeo.shp).
- For sure I can carry out some zonal statistics using raster and shape
file, but to merge the regions I need all the pixels form a regions as input
file for the merging process. This process is more than just selecting
regions or cropping. Do you have any suggestions?

Kind regards
Sibylle

___
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] GeoJSON problem

2024-04-25 Thread Frank Broniewski via QGIS-User
In addition, you can open the GeoJSON file in any text editor or code editor of 
your choice and search for yourself, it is all plain text.

Von: QGIS-User  im Auftrag von chris 
hermansen via QGIS-User 
Gesendet: Mittwoch, 24. April 2024 22:19
An: Rafal Jonca 
Cc: qgis-user@lists.osgeo.org 
Betreff: Re: [Qgis-user] GeoJSON problem

Rafal and list,

On Wed, Apr 24, 2024 at 11:47 AM Rafal Jonca via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> wrote:
I wanted ask you are here any GeoJSON specialists ?


I was preparing some vector point features, with names, from some time,
but now I am looking and they are empty (name attributes are null, only
vector point locations still exist). It happened after saving to GeoJSON.

I am not a GeoJSON expert. Are these attributes still there somewhere in
it or I have to make them once again from scrap ?

Almost two months of work to trash :/

You don't say what you did to "prepare" your vector point features except that 
you lost some "names" after saving to GeoJSON.

Were you using QGIS?  How did you create your vector point features?

Looking at the sample GeoJSON file here

https://gist.github.com/wavded/1200773?short_path=99c1af9

might give you some insights.  In particular, you can see that attributes are 
called "properties" and are rendered as a set of key-value pairs.


--
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.
___
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] editing and saving very large table

2024-03-13 Thread Frank Broniewski via QGIS-User
Hi,

you can use the DB Manager for custom layer queries. You can create SQL queries 
and add those to the layer tree, more information can be found here 
https://docs.qgis.org/3.34/en/docs/user_manual/plugins/core_plugins/plugins_db_manager.html

And of course, ordering queries based on custom criteria can be done there via 
ORDER BY clause ...

HTH
Frank

Von: QGIS-User  im Auftrag von Gordon 
Wakelin-King via QGIS-User 
Gesendet: Mittwoch, 13. März 2024 00:20
An: chris hermansen ; Michael.Dodd 

Cc: Frederik-Matti Bartels (CAPSA) ; 
qgis-user@lists.osgeo.org 
Betreff: Re: [Qgis-user] editing and saving very large table


Surely this is something that can be done easily with an SQL Select  with 
Order-by, in one of the SQL variants that QGIS can use?



I’m asking for my own benefit too. Having come from the MapInfo environment I 
would reach for an SQL Select to do this task, but I’m less familiar with SQL 
in QGIS.



Gordon Wakelin-King







From: QGIS-User  On Behalf Of chris 
hermansen via QGIS-User
Sent: Wednesday, March 13, 2024 8:02 AM
To: Michael.Dodd 
Cc: Frederik-Matti Bartels (CAPSA) ; 
qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] editing and saving very large table



Michael and list,



On Tue, Mar 12, 2024 at 11:48 AM Michael.Dodd 
mailto:michael.d...@open.ac.uk>> wrote:

In this particular instance the data are not spatial data, at this stage at 
least. There is no link to location.



The data does have a hierarchy according to several columns, by sorting I can 
put the data into a suitable order for editing in further information into an 
extra column. Without sorting the places where the extra info and which 
specific extra info are impossible to find and check as they are scattered all 
over.



I tried putting the information in using the field calculator and even though 
the simple expression seemed correct and there was no error message it did not 
put the information in. So I was even thinking of putting the information in by 
hand once sorted although suspect there may be issues with this too.



I was wondering about sorting the whole file then copying out/exporting chunks 
of a million rows at a time to go into a normal spreadsheet. If the copying 
out/export would not work directly then saving the sorted version of the data 
and chopping up using e.g. notepad++ and editing with spreadsheet. It is 
important to do the sorting before chopping up into the 5 separate files.



It is only later that spatial information is attached, that is not relevant at 
this stage as the spatial data will not be attached to all rows.



Ok so you are sorting a text file, presumably something like a .CSV.  Perhaps 
you are working on Windows.



What are your options to sort the file before you put it in QGIS?  It seems 
your spreadsheet won't accommodate the number of lines in your file; what about 
the "sort" utility in say Windows PowerShell?



Here's an article that talks about sorting .CSV files that way.



https://stackoverflow.com/questions/23603397/sorting-csv-using-windows-sort 
which in turn refers to this article



https://devblogs.microsoft.com/scripting/hey-scripting-guy-how-can-i-use-windows-powershell-to-sort-a-csv-file/



Alternatively, if you're using Linux or (I would imagine) OS/X, you can use the 
Posix "sort" utility.

--

Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.
___
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] Geotiff from Google Network planner to QGIS

2024-02-27 Thread Frank Broniewski via QGIS-User
GeoTIFF is a rather complex file format. It may contain some metadata 
information like elevation data, but this is optional. If Google does not 
export this information with the GeoTIFF, you are probably out of luck.


Von: QGIS-User  im Auftrag von krishna 
Ayyala via QGIS-User 
Gesendet: Dienstag, 27. Februar 2024 14:32
An: qgis-user 
Betreff: [Qgis-user] Geotiff from Google Network planner to QGIS

Hello,
I am reposting this question.
Regards.

This is the image from Google network planner (GNP) for best server. Whenever I 
click anywhere on the image, the device information is displayed as shown in 
red circle.

[image.png]


I exported this image to geotiff from GNP. Then added it to QGIS, I am not 
getting the device information, I am only getting the RGB values as shown 
below. What should I do to display the device information in QGIS?

[image.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] Optimize QGIS Command_Line

2024-02-11 Thread Frank Broniewski via QGIS-User
Sorry, but I am out of ideas, I simply do not know enough about MSSQL to 
provide some insight. But I see, you are using a stored procedure instead of 
referring a table as source directly. Are you sure that this is not the 
culprit? It might work fine inside MSSQL but might pose problems when facing 
with the outside.

Just to rule out the file format, did you try writing to Shapefile or some 
other format to test wether it is a problem with the GeoPackage format itself 
or maybe the ogr2ogr driver needs some tweaking?

What does querying with ogrinfo on your stored procedure give you as an answer? 
Maybe there is something in there for information as well ... missing spatial 
index on your side?


Von: Dennis Burgess 
Gesendet: Samstag, 10. Februar 2024 22:36
An: Frank Broniewski ; QGIS-User@lists.osgeo.org 

Betreff: Re: [Qgis-user] Optimize QGIS Command_Line


Originally its in MSSQL, we have done a makevalid() on all lines before we use 
OGR2OGR to export it to a GeoPackage.  That file is on the local NVME drive.
We did try setting the spatial index to no, this had very little difference in 
time.


Dennis Burgess





From: Frank Broniewski 
Sent: Wednesday, February 7, 2024 12:35:52 AM
To: QGIS-User@lists.osgeo.org; Dennis Burgess
Subject: AW: [Qgis-user] Optimize QGIS Command_Line

Hi Dennis,

concerning your first command, is your GeoPackage stored locally or on a 
network drive? Writing SQLite/GepPackage databases onto a network drive can 
have a severe performance impact. Another idea, did you try setting -lco 
SPATIAL_INDEX=no and creating the index after the import? This might speed up 
your import as well.

This page https://gdal.org/drivers/vector/sqlite.html  has some more insights 
on performance, but maybe you know it already ...

Concerning your second command, without knowing how many lines / polygons you 
want to dissolve here (seems like a lot looking at the file size) it looks 
pretty normal to me. Keep in mind that dissolving is a rather cost intensive 
process, when not dissolving by attribute. As every geometry has to be checked 
against all the others if they can be dissolved spatially - spatial indexes 
aside.
I do not know the internals of the algorithm itself, but I would guess it is 
not well suited for a threaded / multi process approach and it just runs on one 
core of your CPU doing all the work - like most GIS tools do.

A speedier approach could be to spatially divide your data into smaller parts, 
do the dissolve on each part to reduce the number of features, and then finally 
dissolve the results into the final one ...




Von: QGIS-User  im Auftrag von Dennis 
Burgess via QGIS-User 
Gesendet: Dienstag, 6. Februar 2024 15:23
An: QGIS-User@lists.osgeo.org 
Betreff: Re: [Qgis-user] Optimize QGIS Command_Line


ogr2ogr -f gpkg geom_multi_38.gpkg 
"MSSQL:server=xx;database=x;uid=x;pwd=;MultipleActiveResultSets=true;"
 -sql "EXEC xx 42039, 38" -overwrite  -gt 100 -lco SPATIAL_INDEX=yes  
OGR_SQLITE_CACHE=10240MB OGR_SQLITE_SYNCHRONOUS=OFF



This one takes around 30 min to export to gpkg file, if I run the same exec 
command on sql it takes less than 40 seconds to pull down ..  these are 
geometry lines.   Around 940 lines.



The second one





"c:\program files\qgis 3.26.2\apps\qgis\bin\qgis_process" run native:dissolve 
--INPUT=geom_multi_55096.gpkg --OUTPUT=geom_multi_diss_38.gpkg



This would e one of them.  Last job took 49 minutes, orginal input is around 
1.2 gig.



Dedicated platform for processing: 72 cores, 32 gig of RAM, running on NVME 
disk.

SQL 2019 Enterprise: 80 cores, 512gig ram, NVME disks.





From: Johannes Kröger (WhereGroup) 
Sent: Tuesday, February 6, 2024 2:01 AM
To: Dennis Burgess ; QGIS-User@lists.osgeo.org
Subject: Re: [Qgis-user] Optimize QGIS Command_Line



Hey Dennis,

can you share those command lines (maybe with sensitive information stripped)? 
Otherwise it is hard to guess what the issue might be.

What does your CPU, RAM and I/O utilisation look like during those long running 
processes? Same for the MSSQL database server host system.

Cheers, Hannes

On 05.02.24 14:46, Dennis Burgess via QGIS-User wrote:

I have two  command lines, one reads from my MSSQL database and creates a 
GeoPackage on the local disk.  This takes WAY too long, just to create it , it 
uses 5% or less CPU, and is SUPER slow. Looking for methods to speed this up.  
The data is around 1.2 to 1.4 gig of pop, but it should not take 50 min to 
create.



Also I am doing a dissolve on this data, once its on the disk, this also takes 
quite a while, even though when I do it from QGIS it takes like 10 min vs an 
hour or more on the computer with the command line.



I’m sure I am doing something wrong on both of these. Just trying to understand 
what it would be.



Thank

Re: [Qgis-user] Optimize QGIS Command_Line

2024-02-06 Thread Frank Broniewski via QGIS-User
Hi Dennis,

concerning your first command, is your GeoPackage stored locally or on a 
network drive? Writing SQLite/GepPackage databases onto a network drive can 
have a severe performance impact. Another idea, did you try setting -lco 
SPATIAL_INDEX=no and creating the index after the import? This might speed up 
your import as well.

This page https://gdal.org/drivers/vector/sqlite.html  has some more insights 
on performance, but maybe you know it already ...

Concerning your second command, without knowing how many lines / polygons you 
want to dissolve here (seems like a lot looking at the file size) it looks 
pretty normal to me. Keep in mind that dissolving is a rather cost intensive 
process, when not dissolving by attribute. As every geometry has to be checked 
against all the others if they can be dissolved spatially - spatial indexes 
aside.
I do not know the internals of the algorithm itself, but I would guess it is 
not well suited for a threaded / multi process approach and it just runs on one 
core of your CPU doing all the work - like most GIS tools do.

A speedier approach could be to spatially divide your data into smaller parts, 
do the dissolve on each part to reduce the number of features, and then finally 
dissolve the results into the final one ...




Von: QGIS-User  im Auftrag von Dennis 
Burgess via QGIS-User 
Gesendet: Dienstag, 6. Februar 2024 15:23
An: QGIS-User@lists.osgeo.org 
Betreff: Re: [Qgis-user] Optimize QGIS Command_Line


ogr2ogr -f gpkg geom_multi_38.gpkg 
"MSSQL:server=xx;database=x;uid=x;pwd=;MultipleActiveResultSets=true;"
 -sql "EXEC xx 42039, 38" -overwrite  -gt 100 -lco SPATIAL_INDEX=yes  
OGR_SQLITE_CACHE=10240MB OGR_SQLITE_SYNCHRONOUS=OFF



This one takes around 30 min to export to gpkg file, if I run the same exec 
command on sql it takes less than 40 seconds to pull down ..  these are 
geometry lines.   Around 940 lines.



The second one





"c:\program files\qgis 3.26.2\apps\qgis\bin\qgis_process" run native:dissolve 
--INPUT=geom_multi_55096.gpkg --OUTPUT=geom_multi_diss_38.gpkg



This would e one of them.  Last job took 49 minutes, orginal input is around 
1.2 gig.



Dedicated platform for processing: 72 cores, 32 gig of RAM, running on NVME 
disk.

SQL 2019 Enterprise: 80 cores, 512gig ram, NVME disks.





From: Johannes Kröger (WhereGroup) 
Sent: Tuesday, February 6, 2024 2:01 AM
To: Dennis Burgess ; QGIS-User@lists.osgeo.org
Subject: Re: [Qgis-user] Optimize QGIS Command_Line



Hey Dennis,

can you share those command lines (maybe with sensitive information stripped)? 
Otherwise it is hard to guess what the issue might be.

What does your CPU, RAM and I/O utilisation look like during those long running 
processes? Same for the MSSQL database server host system.

Cheers, Hannes

On 05.02.24 14:46, Dennis Burgess via QGIS-User wrote:

I have two  command lines, one reads from my MSSQL database and creates a 
GeoPackage on the local disk.  This takes WAY too long, just to create it , it 
uses 5% or less CPU, and is SUPER slow. Looking for methods to speed this up.  
The data is around 1.2 to 1.4 gig of pop, but it should not take 50 min to 
create.



Also I am doing a dissolve on this data, once its on the disk, this also takes 
quite a while, even though when I do it from QGIS it takes like 10 min vs an 
hour or more on the computer with the command line.



I’m sure I am doing something wrong on both of these. Just trying to understand 
what it would be.



Thanks for any assistance !

Dennis





___

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

--

Johannes Kröger / GIS-Entwickler/-Berater



-

Aufwind durch Wissen!

Web-Seminare und Online-Schulungen

bei der 
www.foss-academy.com

-



WhereGroup GmbH

c/o KK03 GmbH

Lange Reihe 29

20099 Hamburg

Germany



Tel: +49 (0)228 / 90 90 38 - 36

Fax: +49 (0)228 / 90 90 38 - 11



johannes.kroe...@wheregroup.com

www.wheregroup.com

Geschäftsführer:

Olaf Knopp, Peter Stamm

Amtsgericht Bonn, HRB 9885

---
___
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] adding offset to QgsSvgMarkerSymbolLayer using pyqgis

2024-01-25 Thread Frank Broniewski via QGIS-User
But there is markerOffset2 and/or markerOffsetWithWidthAndHeight, maybe this 
does what you want?

https://qgis.org/pyqgis/master/core/QgsSvgMarkerSymbolLayer.html

HTH,
Frank


Von: QGIS-User  im Auftrag von Bernhard 
Seckinger via QGIS-User 
Gesendet: Donnerstag, 25. Januar 2024 10:03
An: qgis-user@lists.osgeo.org 
Betreff: [Qgis-user] adding offset to QgsSvgMarkerSymbolLayer using pyqgis

Hi,

I wrote a plugin which changes the symbology of a layer using SVG-images.
Almost everything works but I need to add an offset to the SVG-image and did
not find a way to set it from pyqgis.

That's what I'm doing currently (rule is a rule from a QgsRuleBasedRenderer):

icon = os.path.dirname(__file__) + 'a.svg';
marker = QgsSvgMarkerSymbolLayer(icon)
marker.setAngle(100) # setting the angle works
# marker.setOffset(5,5) # this doesn't work (there is no setOffset method)
rule.symbol().changeSymbolLayer(0,marker)

Any ideas?

Thanks, Bernhard

--
Bernhard Seckinger 
___
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] Decimal delimiter different in label and attribute table

2024-01-11 Thread Frank Broniewski via QGIS-User
Hello Michaela,

Geopackage always stores numbers with "." as decimal separator. The table view 
just shows a localized view of it. If you enter numbers with a comma, they get 
internally replaced with a point before storing the values in the geopackage.
But you can format the label and force the german number format with the 
following expression as an example:

 format_number( "flaeche", 2, 'de')

If you use the expression dialog window, you can use the built in help for more 
information about the format_number function.


HTH
Frank

Von: QGIS-User  im Auftrag von Huesmann, 
Michaela via QGIS-User 
Gesendet: Donnerstag, 11. Januar 2024 15:13
An: qgis-user@lists.osgeo.org 
Betreff: [Qgis-user] Decimal delimiter different in label and attribute table


Hello all,

I created a geopackage layer with a column of fieldtype „Decimal (Double)“. In 
the Attribute Table I can see the decimal delimiter as comma as I want it in 
Germany. But the labels display the delimiter as point. Where do I change the 
delimiter for labels?



[cid:image001.png@01DA44A0.677C0C90]



Best regards,

Michaela



[Kreisstadt Steinfurt]

 - 48565 Steinfurt
www.steinfurt.de

Mit freundlichen Grüßen
im Auftrag
Michaela Huesmann
IT
Fachdienst Tiefbau

Tel.: +49 2552 925 219
Fax:
E-Mail: 
michaela.huesm...@stadt-steinfurt.de

Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail ausdrucken.

___
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] [extern] Re: Problem with Python/Qgis

2023-12-12 Thread Frank Broniewski via QGIS-User
Hi Gael,

this is not a QGIS problem, but one of your installed plugins is causing the 
issue. The first line mentions it already
> Couldn't load plugin 'crayfish'

I don't know the plugin, but you could try to delete / uninstall it and 
reinstall it again. If you go in a terminal to 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins and 
delete the 'crayfish' folder, QGIS should start without the error.

Further down the line the vrtbuilder plugin is mentioned as well, you might 
want to delete and reinstall it as well, just to be sure if the crayfish plugin 
is a dependency of the vrtbuilder plugin.

HTH
Frank


Von: QGIS-User  im Auftrag von Gael 
Kermarrec via QGIS-User 
Gesendet: Mittwoch, 13. Dezember 2023 01:52
An: chris hermansen 
Cc: qgis-user@lists.osgeo.org 
Betreff: Re: [Qgis-user] [extern] Re: Problem with Python/Qgis


thanks chris for your help. I tried your suggestion, I was able to install Qgis 
but interestingly as I launched it I got immediatly the error message

Couldn't load plugin 'crayfish' due to an error when calling its initGui() 
method AttributeError: module 'pyqtgraph' has no attribute 'GraphicsWindow' 
Traceback (most recent call last): File 
"/usr/lib/python3/dist-packages/qgis/utils.py", line 448, in startPlugin 
plugins[packageName].initGui() File 
"/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/plugin.py",
 line 96, in initGui w = CrayfishPlotWidget(self.plot_dock_widget) File 
"/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/gui/plot_widget.py",
 line 186, in __init__ self.gw = pyqtgraph.GraphicsWindow() AttributeError: 
module 'pyqtgraph' has no attribute 'GraphicsWindow' Python version: 3.8.10 
(default, Nov 22 2023, 10:22:35) [GCC 9.4.0] QGIS version: 3.26.3-Buenos Aires 
Buenos Aires, 65e4edfdad Python Path: /usr/share/qgis/python 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins 
/usr/share/qgis/python/plugins /usr/lib/python38.zip /usr/lib/python3.8 
/usr/lib/python3.8/lib-dynload /usr/local/lib/python3.8/dist-packages 
/usr/lib/python3/dist-packages 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python 
/home/kermarrec/.local/share/gis4wrf/python38/local/lib/python3.8/site-packages 
/home/kermarrec/.local/share/gis4wrf/python38/lib/python3/site-packages 
/home/kermarrec/.local/share/gis4wrf/python38/lib/python3.8/site-packages . 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vrtbuilderplugin
 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vrtbuilderplugin/vrtbuilder

I have no idea what I could do to solve the problem.

gael.

On 12/12/23 18:36, chris hermansen wrote:
Gael and list,

On Tue, Dec 12, 2023 at 8:03 AM Gael Kermarrec via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> wrote:
Dear members,

I am trying to install Qgis from Ubuntu 20.04 but everytime I make sudo
apt install qgis qgis-plugin-grass I become the following:


The following packages contain unsatisfied dependencies:
qgis: Depends on python3-qgis (= 1:3.22.16+32focal) but
1:3.26.3+32focal-ubuntugis needs to be installed
Depends on qgis-providers (= 1:3.22.16+32focal) but
1:3.26.3+32focal-ubuntugis needs to be installed
Depends on qgis-common (= 1:3.22.16+32focal) but
1:3.26.3+32focal-ubuntugis needs to be installed
qgis-plugin-grass: Depends on qgis-plugin-grass-common (=
1:3.22.16+32focal) but 1:3.26.3+32focal-ubuntugis needs to be installed
Depends on grass782
E: Unable to correct problems, defective packages are in "keep in the
current state" mode.

I have no idea what I should do to make it works. Maybe somebody had the
same problem, I would be grateful to get some support as I would like to
work with QGis.

It looks as though you might be trying to work with the ubuntugis PPA.  If 
that's so, maybe you should consider trying the suggested methodology on the 
QGIS site here:

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

If you just want to correct the unsatisfied dependencies, it's probably worth 
trying your command again with the "-f" option:

apt install -f qgis qgis-plugin-grass

In any event, I suggest you read this useful mini-tutorial on fixing 
unsatisfied dependencies.

https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa
--
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.

--
----
Dr. Gael Kermarrec
Institute for meteorology and climatology
Leibniz Universität Hannover
Herrenhäuser Str. 2
D-30419 Hannover
Tel: +49 511 762 2679
Email: kermar...@meteo.uni-hannover.de
Web: www.meteo.uni-hannover.de
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: 

Re: [Qgis-user] [EXTERNAL] AW: GDAL libraries in standalone installer for Windows

2023-09-28 Thread Frank Broniewski via QGIS-User
The gdalinfo binary has a –build flag

C:\OSGeo4W\bin>gdalinfo.exe --build
PAM_ENABLED=YES
OGR_ENABLED=YES
CURL_ENABLED=YES
CURL_VERSION=8.1.2
GEOS_ENABLED=YES
GEOS_VERSION=3.12.0-CAPI-1.18.0
PROJ_BUILD_VERSION=9.2.1
PROJ_RUNTIME_VERSION=9.2.1
COMPILER=MSVC 192930143

You should be able to find this in your QGIS installation as well somewhere … 
but otherwise, I am not sure I can help you furthermore here

Best,
Frank

Von: QGIS-User  Im Auftrag von Newcomb, Doug 
via QGIS-User
Gesendet: Donnerstag, 28. September 2023 14:17
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Fw: [EXTERNAL] AW: GDAL libraries in standalone installer 
for Windows

Sorry, I forgot to copy the list.


From: Newcomb, Doug mailto:doug_newc...@fws.gov>>
Sent: Thursday, September 28, 2023 7:44 AM
To: Frank Broniewski mailto:broniew...@a-a.lu>>
Subject: Re: [EXTERNAL] AW: GDAL libraries in standalone installer for Windows

Thanks for reaching out Frank!

That covers GDAL, but not the components that GDAL was compiled with.  I did 
find out from another source that you can use the setup utility in the 
Standalone installer to determine the current library version, but that is not 
quite what I was hoping for.

Doug
____
From: Frank Broniewski mailto:broniew...@a-a.lu>>
Sent: Thursday, September 28, 2023 1:17 AM
To: Newcomb, Doug mailto:doug_newc...@fws.gov>>; 
qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org> 
mailto:qgis-user@lists.osgeo.org>>
Subject: [EXTERNAL] AW: GDAL libraries in standalone installer for Windows




 This email has been received from outside of DOI - Use caution before clicking 
on links, opening attachments, or responding.



Hi Doug,



if you go to Help -> About you get a list of libraries and their respective 
versions.



HTH

Frank



Von: QGIS-User 
mailto:qgis-user-boun...@lists.osgeo.org>> 
Im Auftrag von Newcomb, Doug via QGIS-User
Gesendet: Mittwoch, 27. September 2023 22:31
An: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Betreff: [Qgis-user] GDAL libraries in standalone installer for Windows



Hi Folks,

Is there a way that I can easily find out the versions of the libraries 
compiled into the QGIS Standalone installer for Windows?

Doug





Doug Newcomb - Cartographer

USFWS

551F Pylon Dr

Raleigh, NC

New Number (984) 308-0861 doug_newc...@fws.gov<mailto:doug_newc...@fws.gov>

-



NOTE: This email correspondence and any attachments to and from this sender is 
subject to the Freedom of Information Act (FOIA) and may be disclosed to third 
parties.​


___
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] GDAL libraries in standalone installer for Windows

2023-09-27 Thread Frank Broniewski via QGIS-User
Hi Doug,

if you go to Help -> About you get a list of libraries and their respective 
versions.

HTH
Frank

Von: QGIS-User  Im Auftrag von Newcomb, Doug 
via QGIS-User
Gesendet: Mittwoch, 27. September 2023 22:31
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] GDAL libraries in standalone installer for Windows

Hi Folks,
Is there a way that I can easily find out the versions of the libraries 
compiled into the QGIS Standalone installer for Windows?
Doug



Doug Newcomb - Cartographer
USFWS
551F Pylon Dr
Raleigh, NC
New Number (984) 308-0861 doug_newc...@fws.gov
-

NOTE: This email correspondence and any attachments to and from this sender is 
subject to the Freedom of Information Act (FOIA) and may be disclosed to third 
parties.​

___
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] Output to pdf file doesn't contain vector details

2023-09-19 Thread Frank Broniewski via QGIS-User
In addition to the free resource, I can highly recommend the two books “QGIS 
Map Design” [1] and “QGIS Map Design - Second Edition” [2] by Anita Graser and 
Gretchen N. Peterson with tons of great map designs and how to create them. 
They base on somewhat dated QGIS versions by now, but the content itself is 
still super valuable.

[1] https://locatepress.com/book/qmd
[2] https://locatepress.com/book/qmd2
Von: QGIS-User  Im Auftrag von Emma Hain via 
QGIS-User
Gesendet: Mittwoch, 20. September 2023 04:11
An: chris hermansen 
Cc: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Output to pdf file doesn't contain vector details

Michael and list,

But, it should also be possible to use Qgis to (say) input GIS data files in 
one format (such as NASA's SRTM “tiles”), then output the data in another 
vector-graphics format (such as .shp shapefiles or .svg files) – for directing 
the data to another application for further processing, as convenient – whether 
or not Qgis technically can do much the same further processing.
This can be done by undertaking transformations. In the Processing tools panel, 
type in the search bar  'convert' and select the appropriate tool - however if 
you are unsure of what you are doing, you may introduce positional and other 
errors. By sticking with the cartographic process within QGIS and importing in 
your other elements, this would produce a more accurate response. I would also 
really learn about Coordinate Reference Systems (CRS) as well. A map is 
different to a graphic is you are placing disparate datasets together.

I would totally support learning about the strengths of the cartography of 
QGIS. It is developed by people who love the art of cartography so perhaps you 
should harness this? I do understand though that you work with what you have 
the most experience with.

However, if you do want to go down the path of using QGIS' cartographic power, 
here are some really helpful online free tutorials: 
https://www.qgistutorials.com/en/

If you would like additional features in QGIS, please feel free to add them to 
here  and label them as a feature 
enhancement.

Good luck
Em




On Tue, 19 Sept 2023 at 03:32, chris hermansen via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> wrote:
Michael and list,

I've been following along trying some stuff with data I have on hand and offer 
you some comments below.

On Mon, Sep 18, 2023 at 9:25 AM Michael McNeil 
mailto:memcnei...@gmail.com>> wrote:
The foregoing got sent before it was ready, sorry. I'll just continue from 
where I left off.

As I said, I would prefer to use shapefiles to transfer the data – that is 
intended to be an interim format – however CorelDraw doesn't accept shapefiles 
(.shp) , though it does svg. But I've found that the reason why I can't produce 
svg (and pdf) files containing the detailed vector-graphics data that I wish to 
include in the map, for transfer into CorelDraw, is because Qgis believes (so I 
surmise) that I must want to ultimately print out the data – and because 
printers (or engravers, or whatever) inherently must have a maximum resolution 
they can render, Qgis has thoughtfully determined that that maximum should be 
no greater than 3000 dpi (with a mere 300 dpi being the default).

That, of course (the Export Resolution), is why my detailed contour lines are 
being rendered (upon Layout) into mere solid blobs of color – accompanied by an 
80 MB pdf file! It seems crazy to me.

Not sure you're correct here - did you select "Always export as vectors" in the 
SVG (or PDF) export window?  If so, then your vectors are not being rasterized. 
 However, they ARE being reproduced at the thickness determined by your 
settings and the print scale.


Why? Because – regardless of the merits of being able to transfer 
full-resolution vector graphics using the svg and pdf formats – there's also 
the possibility (which the powers at be at Qgis don't seem to realize – I'm 
sure you all will correct me on this) of using (say) pdf format as a 
presentation medium for Qgis' (and others') vector-graphics maps. By 
presentation I mean an interactive experience for viewing maps – in other 
words, the Qgis output should not just be for printout.

[examples deleted]

The SVG conversion you are using is part of the QGIS "print layout manager" 
functionality, where the user is preparing a cartographic product for 
reproduction at a certain scale and resolution.  So it's quite reasonable that 
such functionality would behave the way QGIS doe; someone using QGIS to make a 
cartographic product they intend to be used at a print size of 8.5 X 11 inches 
or 1 X 2 metres would expect to see lines of a chosen thickness when the 
product is reproduced at that desired scale.

Accordingly, one thing that might help is if you choose a larger page size, the 
default being A4 or US Letter.  You might also try experimenting with layer 
Properties > Symbology > Stroke width.  This won't 

Re: [Qgis-user] Error! No Internet connection? OSM Place Search plugin error

2023-09-12 Thread Frank Broniewski via QGIS-User
Hi Jared,

I tried the OSM Search plugin just now and it works for me, so maybe there is 
an issue on your end after all? It’s hard to tell from afar , but maybe you 
might find some info in the messages log.
And I really do not know, what a web map has to do with the OSM Search plugin, 
so there must be more than that plugin involved and the message does not even 
come from the OSM Search plugin? Maybe you want to create a fresh user profile 
and test each plugin the user has separately to find out which plugin gives you 
the error …


Von: QGIS-User  Im Auftrag von Jared Jordan 
via QGIS-User
Gesendet: Dienstag, 12. September 2023 16:50
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Error! No Internet connection? OSM Place Search plugin 
error

I am not sure if this is the right group to send to, but I have a user that is 
having an issue with a map from QGIS.  He has created a web map and exported it 
to an html.  They have been using that same html file for a while now but about 
a month or so ago suddenly the Place Search (using OSM Place Search Plugin) 
started giving him the error in the image below.

[cid:image001.png@01D9E615.1C8BB580]

Network configuration has not changed, and I am not even sure where to start.  
This is the same error all other users get.  We have tried exporting a new web 
map, but the same thing happens.
I don’t know much about the program as I just found out that they use it.   I 
tried to replicate it, but I could not actually find that plugin within QGIS 
when I tried to install it on my system.  I am wonder if it has been 
discontinued or deprecated.

I do have a video of the error, but I am not familiar with list serves and what 
is allowed to be sent or not.  If I am in the wrong list serve for this kind of 
issue, please just let me know.
[cid:image002.jpg@01D9E615.1C8BB580]
Jared Jordan​
Adna Technologies
[cid:image003.png@01D9E615.1C8BB580]
jjor...@teamadna.com
www.TeamAdna.com
[Facebook]
[Twitter]

___
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] Converting csv to shapefile issues

2023-07-27 Thread Frank Broniewski via QGIS-User
Hi Jamie,

I presume, you did have a look at 
https://docs.qgis.org/3.28/en/docs/user_manual/managing_data_source/opening_data.html#importing-a-delimited-text-file
 ?

In any case, editing CSV files in QGIS is not possible, you will have to 
convert it to a "real" geo-format beforehand, hence my proposition to edit the 
CSV in Excel. Do you have an example of the coordinate values? Is it WGS84, in 
decimal degrees, or in degrees, minutes, seconds? In addition, you can only use 
on pair of coordinates, either bottom hole or surface hole. You could add the 
CSV twice, and take the alternate coordinate pair to both.

Do you get a map with points at all? If it is empty, QGIS does not understand 
your coordinate values.

Von: Jamie Gould 
Gesendet: Donnerstag, 27. Juli 2023 15:35
An: Frank Broniewski ; qgis-user@lists.osgeo.org
Betreff: RE: Converting csv to shapefile issues

Thank you, Frank.

Sorry I should have been more clear; SH is Surface Hole, and BH is the Bottom 
Hole.  I've tried specifying the Surface Hole Lat and Long columns and I've 
tried specifying the Bottom Hole Lat and Long columns, but it still results in 
the error.

I know in ArcGIS you can take that data and it'll calculate standard lat and 
long columns for you, which I was thinking may be the problem with my data and 
was hoping I could calculate those columns, but the Toggling Editing Mode 
Button is greyed out so I cannot add those columns and was wondering if that 
step has to be after the shapefile is made, which is a problem because I cannot 
seem to get my csv data to convert to a shapefile.  I made sure to take out 
special characters and spaces that I know a shapefile doesn't like.  Maybe I'll 
give the geopackage a shot and see if that works.

Thank you,
Jamie

From: Frank Broniewski mailto:broniew...@a-a.lu>>
Sent: Wednesday, July 26, 2023 11:21 PM
To: Jamie Gould mailto:jgo...@longshore.ca>>; 
qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: AW: Converting csv to shapefile issues

HI Jamie,

I do not know, what SH Lat/Long and BH Lat/Long are, but you can open your CSV 
with Calc or Excel, do your data manipulation there and then add the CSV to 
QGIS. During the import you can specify your Lat/Long columns, and once you 
have your points visible on the map, you should be able to export to Shapefile 
as well.
Just be aware that Shapefile has several limitations on length of column names, 
column content and so forth. You might be better of to use Geopackage, which is 
a more modern file format for geodata.

HTH,
Frank

Von: QGIS-User 
mailto:qgis-user-boun...@lists.osgeo.org>> 
Im Auftrag von Jamie Gould via QGIS-User
Gesendet: Mittwoch, 26. Juli 2023 21:28
An: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Betreff: [Qgis-user] Converting csv to shapefile issues

Good afternoon,

I'm currently using geoSCOUT at the company I'm working at.  One cannot export 
out any attributes with a layer or shapefile out of geoSCOUT and you cannot 
view an attribute table within geoSCOUT either.  There are a couple of tasks 
I'd like to do that it would be beneficial to have those attributes.  So, I 
have exported out a UWI list and imported into an analytics program we 
subscribe to called EVA, from here I can export out a csv of the UWI plus data. 
 I have brought this csv into QGIS and want to convert it to a shapefile.  The 
csv does not export out of EVA with Lat and Long columns, but does give SH Lat, 
SH Long, BH Lat, and BH Long.

I thought perhaps I could add a column to the csv file within QGIS and 
calculate a lat/long column, but the Toggle Editing Mode Button is greyed out.  
So, then I thought maybe I could create one shapefile with the SH data, and 
another with the BH data, then merge the two shapefiles and perform a points to 
path if necessary.  When I right click on the csv file to export as an ESRI 
shapefile, the export fails, and I get the below message.
[cid:image001.png@01D9C0A2.986AA0A0]

Does anyone have any other ideas of how I could go about this?

Thank you in advance,

Jamie Gould, C. Tech
___
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] Converting csv to shapefile issues

2023-07-26 Thread Frank Broniewski via QGIS-User
HI Jamie,

I do not know, what SH Lat/Long and BH Lat/Long are, but you can open your CSV 
with Calc or Excel, do your data manipulation there and then add the CSV to 
QGIS. During the import you can specify your Lat/Long columns, and once you 
have your points visible on the map, you should be able to export to Shapefile 
as well.
Just be aware that Shapefile has several limitations on length of column names, 
column content and so forth. You might be better of to use Geopackage, which is 
a more modern file format for geodata.

HTH,
Frank

Von: QGIS-User  Im Auftrag von Jamie Gould 
via QGIS-User
Gesendet: Mittwoch, 26. Juli 2023 21:28
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Converting csv to shapefile issues

Good afternoon,

I'm currently using geoSCOUT at the company I'm working at.  One cannot export 
out any attributes with a layer or shapefile out of geoSCOUT and you cannot 
view an attribute table within geoSCOUT either.  There are a couple of tasks 
I'd like to do that it would be beneficial to have those attributes.  So, I 
have exported out a UWI list and imported into an analytics program we 
subscribe to called EVA, from here I can export out a csv of the UWI plus data. 
 I have brought this csv into QGIS and want to convert it to a shapefile.  The 
csv does not export out of EVA with Lat and Long columns, but does give SH Lat, 
SH Long, BH Lat, and BH Long.

I thought perhaps I could add a column to the csv file within QGIS and 
calculate a lat/long column, but the Toggle Editing Mode Button is greyed out.  
So, then I thought maybe I could create one shapefile with the SH data, and 
another with the BH data, then merge the two shapefiles and perform a points to 
path if necessary.  When I right click on the csv file to export as an ESRI 
shapefile, the export fails, and I get the below message.
[cid:image001.png@01D9C05A.D5B3F2B0]

Does anyone have any other ideas of how I could go about this?

Thank you in advance,

Jamie Gould, C. Tech
___
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/Postgis : Disable double authentication request?

2021-12-02 Thread Frank Broniewski

Hi Laurent,

how do you authenticate against the PostGIS database? Do you use the 
Authentication manager? Then you might run into the same questions I 
asked last week, you might want to do a search on the mailing lists 
archive to see the answers I received on that topic.


In any case, if you use the authentication manager, the connection 
credetials to the PostGIS database are stored with a unique ID which is 
then in turn used in the layers connection string for reference. SInce 
this ID is different for each user, you run into the problem you 
encountered.


So, basically you have two options here:

* create an authentication entry with the same ID on each machine

* use PostgreSQL service files to connect to the database

The QGIS manual has a nice round up on the topic, you can find the 
related parts here 
https://docs.qgis.org/3.16/en/docs/user_manual/managing_data_source/opening_data.html?highlight=authentication#database-related-tools


HTH,

Frank

Am 01.12.21 um 15:55 schrieb celati Laurent:

Good afternoon,

I work on windows with qgis 3.16.6 and postgresql/postgis.
I have shared a qgis project to several users. The layers are postgis 
tables. For some time, whenever an user opens the project, it has been 
constantly asked for a double authentication (id / pswd).
Would somebody knows why and how to make so that there is as before a 
single request for authentication?


I paste below the header of my qgs project opened with a text editor; 
confidential content is replaced by X :


|http://mrcc.com/qgis.dtd' 'SYSTEM'> saveDateTime="2021-11-25T15:26:51" saveUser="XX" 
version="3.16.6-Hannover" saveUserFull="XXX" projectname=""> 
   
 |





Thanks a lot.

___
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 project templates and PostGIS connections

2021-11-24 Thread Frank Broniewski
I just wanted to thank you all for your valuable feedback that I 
received. It's good to have so many, flexible options in QGIS, although 
the KERBEROS stuff is way over my head :-), but it's good to know that 
it is possible.


Many thanks again,

Frank



Am 22.11.21 um 20:35 schrieb Frank Broniewski:

Hi fellow QGIS user!

I am scratching my head on the following problem. I want to create a 
QGIS project template which has PostGIS layers in it. I want to be 
able to pass this template to other users who might use them for 
different tasks.


The problem now is the connection string to the PostGIS database. When 
using the authentication manager each PostGIS connection gets its own 
ID which in turn is then referenced in the connection string to the 
layer. But now this ID to the PostGIS connection is different for each 
user, so the stored connection string in the template is not valid 
anymore. And each user has his own credentials for logging into 
PostGIS as well.


I see that I can give a custom ID to a connection in the 
authentication manager, but it is locked by default, so I am hesitant 
to unlock it. But is this a viable option? Create the PostGIS 
connection under the same ID for each user?


There's also the PostgreSQL connection service file [1] which might be 
an option? Does anyone have some experience to share, especially when 
talking Windows PC?


How do you manage PostGIS connections for "simple" users on a somewhat 
larger scale? I am talking about 20 users, just enough to be annoying 
enough for manual deployment ...


Many thanks for any tips,

Frank


[1] https://www.postgresql.org/docs/12/libpq-pgservice.html

___
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] QGIS project templates and PostGIS connections

2021-11-22 Thread Frank Broniewski

Hi fellow QGIS user!

I am scratching my head on the following problem. I want to create a 
QGIS project template which has PostGIS layers in it. I want to be able 
to pass this template to other users who might use them for different tasks.


The problem now is the connection string to the PostGIS database. When 
using the authentication manager each PostGIS connection gets its own ID 
which in turn is then referenced in the connection string to the layer. 
But now this ID to the PostGIS connection is different for each user, so 
the stored connection string in the template is not valid anymore. And 
each user has his own credentials for logging into PostGIS as well.


I see that I can give a custom ID to a connection in the authentication 
manager, but it is locked by default, so I am hesitant to unlock it. But 
is this a viable option? Create the PostGIS connection under the same ID 
for each user?


There's also the PostgreSQL connection service file [1] which might be 
an option? Does anyone have some experience to share, especially when 
talking Windows PC?


How do you manage PostGIS connections for "simple" users on a somewhat 
larger scale? I am talking about 20 users, just enough to be annoying 
enough for manual deployment ...


Many thanks for any tips,

Frank


[1] https://www.postgresql.org/docs/12/libpq-pgservice.html

___
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] QgsBlockingNetworkRequest causes SIGSEGV

2021-05-24 Thread Frank Broniewski
Hi Richard,

I must admit that I am not sure myself. I have  a script that can communicate 
with the public Web-API of the official luxemburgish geoportal. I use the 
`requests` module in that and it has a nice little command line interface, 
nice for testing and such.

Then I read in a post from Nyall Dawson [1] that QgsBlockingNetworkRequest is 
a "nearly drop-in replacement for the requests module". So I thought I would 
give it a go and remove the dependency on the requests module. In addition, 
having found the unittest script [2] I was pretty certain that it should work. 
But my knowledge of everything Qt is not that great, so there's lots of room 
for misconception on my side here.

It is not the end of the world if QgsBlockingNetwortRequest is only usable 
from inside QGIS, but I was certainly surprised to see it crash like this. But 
then I will have to find out how I can run my tests against the API then when a 
QGIS environment is a requirement here.

And yes, I can confirm that using QgsBlockingNetwortRequest from within QGIS, 
the python console is sufficient, works fine as intended.

Thanks a lot for your feedback and the small plugin,
Frank


[1] https://lists.osgeo.org/pipermail/qgis-user/2019-November/044364.html
[2] https://github.com/qgis/QGIS/blob/master/tests/src/python/
test_qgsblockingnetworkrequest.py

Am Sonntag, 23. Mai 2021, 21:23:14 CEST schrieb Richard Duivenvoorde:
> Hi Frank,
> 
> Moving this to dev list as I think that is more appropriate for this
> question.
> 
> I can easily replicate your issue (on Debian Testing, see below the
> coredump.txt)
> 
> BUT: are you sure you want to use it outside of QGIS in a standalone script?
> Because I think these things will need some kind of Qt-Application to
> run... (as the Application is responsible for stuff like NetWorkProxies,
> and has the actual 'NetWorkAccessManager'?). But all just guessing...
> 
> Using your code in a minimal HelloWorldPlugin (attached), it just works.
> (the url I'm using just sents 'ok' as text).
> 
> So: I would not try to run it in a standalone script without a QGIS
> application context, but in a plugin it 'works'?
> 
> 
> Regards,
> 
> Richard Duivenvoorde
> 
> 
> 
> 
> 
>PID: 18825 (gnome-shell)
>UID: 1000 (richard)
>GID: 1000 (richard)
> Signal: 11 (SEGV)
>  Timestamp: Sat 2021-03-06 16:16:12 CET (3min 52s ago)
>   Command Line: /usr/bin/gnome-shell
> Executable: /usr/bin/gnome-shell
>  Control Group:
> /user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell
> @wayland.service Unit: user@1000.service
>  User Unit: org.gnome.Shell@wayland.service
>  Slice: user-1000.slice
>  Owner UID: 1000 (richard)
>Boot ID: 4aaa450c98ed47b299254a234e463620
> Machine ID: df76fc45bc594c71b48c4eb87da1774e
>   Hostname: oost
>Storage:
> /var/lib/systemd/coredump/core.gnome-shell.1000.4aaa450c98ed47b299254a234e4
> 63620.18825.161504377200.zst Message: Process 18825 (gnome-shell) of
> user 1000 dumped core. 
> Stack trace of thread 18825:
> #0  0x7fe88cf6003d g_type_check_instance
> (libgobject-2.0.so.0 + 0x3503d) #1  0x7fe88cf50883
> g_signal_handler_disconnect (libgobject-2.0.so.0 + 0x25883) #2 
> 0x7fe88cf42eef n/a (libgobject-2.0.so.0 + 0x17eef) #3 
> 0x7fe88ce2dfae n/a (libglib-2.0.so.0 + 0x31fae) #4  0x7fe88cf440a3
> g_object_unref (libgobject-2.0.so.0 + 0x190a3) #5  0x7fe88d1c1df8 n/a
> (libgnome-shell.so + 0x21df8) #6  0x7fe88cf440a3 g_object_unref
> (libgobject-2.0.so.0 + 0x190a3) #7  0x7fe88c546c7e n/a (libgjs.so.0 +
> 0x47c7e) #8  0x7fe88c546d5a n/a (libgjs.so.0 + 0x47d5a) #9 
> 0x7fe88c542588 n/a (libgjs.so.0 + 0x43588) #10 0x7fe88c542673 n/a
> (libgjs.so.0 + 0x43673) #11 0x7fe88aa3681c n/a (libmozjs-78.so.0 +
> 0x65381c) #12 0x7fe88aa073be n/a (libmozjs-78.so.0 + 0x6243be) #13
> 0x7fe88aa10c02 n/a (libmozjs-78.so.0 + 0x62dc02) #14 0x7fe88aa18ac5
> n/a (libmozjs-78.so.0 + 0x635ac5) #15 0x7fe88aa330b6 n/a
> (libmozjs-78.so.0 + 0x6500b6) #16 0x7fe88aa337dc n/a (libmozjs-78.so.0
> + 0x6507dc) #17 0x7fe88aa33a6c n/a (libmozjs-78.so.0 + 0x650a6c) #18
> 0x7fe88aa33d25 n/a (libmozjs-78.so.0 + 0x650d25) #19 0x7fe88c55dc1f
> n/a (libgjs.so.0 + 0x5ec1f) #20 0x7fe88ce4e8f4 n/a (libglib-2.0.so.0 +
> 0x528f4) #21 0x7fe88ce4dd6f g_main_context_dispatch (libglib-2.0.so.0 +
> 0x51d6f) #22 0x7fe88ce4e118 n/a (libglib-2.0.so.0 + 0x52118) #23
> 0x7fe88ce4e40b g_main_loop_run (libglib-2.0.so.0 + 0x5240b) #24
> 0x7fe88c27627e meta_init (libmutter-7.so.0 + 0xc529e) #25
> 0x7ffd8eec1f9c n/a (n/a + 0x0)
> #26 0x455059545f4e4f49 

[Qgis-user] QgsBlockingNetworkRequest causes SIGSEGV

2021-05-22 Thread Frank Broniewski
Hi all,

I am trying to replace the `requests` module with QgsBlockingNetworkRequest to 
remove a potentially unnecessary dependency from my QGIS plugin. But I am 
having trouble using it so far as Python crashes on the command line with a 
SIGSEGV all the time. First of all, things work from within the QGIS Python 
shell. But not from the command line outside of QGIS.

I am running Fedora 34 KDE spin, but I also tested on Ubuntu 20.04 with the 
same failure. It is rather simple to reproduce on my end:

1) open a Python3 shell
2) >>> import qgis
>>> from qgis.core import QgsBlockingNetworkRequest as bnr
>>> r = bnr()
fish: Job 1, 'python' terminated by signal SIGSEGV (Adressbereichsfehler)

I did look at the unittest Testcases  [1] for the class, e.g the 
testFetchEmptyUrl class method and do not see anything that I could have 
changed to avoid the SIGSEGV.

So, can I not use QgsBlockingNetworkRequest outside of QGIS or am I just 
missing something?

Any tips are greatly appreciated,
Frank


[1] https://github.com/qgis/QGIS/blob/master/tests/src/python/
test_qgsblockingnetworkrequest.py


___
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] Authentication Manager master password timeout setting

2021-04-13 Thread Frank Broniewski
Hello all,

I am looking for a way to further protect the access to the stored 
authentication credentials in the authentication manager. 

As far as I can see, currently the master password is requested once per QGIS 
session and then never again while QGIS remains open. What I am looking for is 
a setting - or something similar - where the master password is always 
requested when accessing a stored connection in the authentication manager. Or 
if this is more easily achievable - after a certain time - the master password 
is requested again.

The reason behind this is that I want to disable the possibility that a third 
party/user can access stored passwords while QGIS is running and the 
authentication database has already been unlocked.

If there is no such thing, would it be possible to achieve something like this  
in Python via the API?

Many thanks for any hints
Frank


___
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] Authentication Manager master password protection

2021-04-13 Thread Frank Broniewski
Hello all,

I am looking for a more protective setting for the authentication manager.

Currently, as far as I understand, the master password for the authentication 
manager is requested once per QGIS session and is never requested again while 
QGIS remains open.

Is there a way to change this behaviour? Ideally there would be a setting that 
the master password is always requested when accessing an authentication entry 
in the manager. Or is there some kind of time-out as a setting that I can 
activate - just like on  a banking website, where your session is cancelled 
after a certain time period of inactivity?

Does something like this exist? My initial research did not reveal anything in 
that regards. Or can I maybe use the Python API to achieve something in that 
regard?

Many thanks for any hints,
Frank


___
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] Print composer: legend in multiple pages?

2020-08-12 Thread Frank Broniewski

Hi Luca,

I do not think that there is an automatic way for that, but you can set 
the legend content manually and just create two legends with custom 
content on different pages.


Hth,
Frank

Am Di, 11. Aug, 2020 um 10:49 A. M. schrieb Luca Manganelli 
:

Hello,

if I have a legend with many entries, it is possible to distribute it 
in multiple pages in Print Composer?



___
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] combining fragmented forests

2020-05-07 Thread Frank Broniewski

Hi Reiko,

another idea might be to use a buffer to stitch polygons together. Use a 
small buffer value and choose to dissolve the resulting polygons. That 
method does not however preserve meaningful attribute values.


Let's know how your progress goes,
Frank

Am 06.05.20 um 20:55 schrieb RMG:

Hello,

I have five shapefiles that contain thousands of fragmented forests that 
I created from a NDVI raster of a large protected area in West Africa, 
which I separated into five panels. Now, how do I stitch thousands of 
the fragmented forests at the borders?


Each shapefile's attributes have ID, count (number of units), area, and 
perimeter, so I can visually recognize which fragments need stitching, 
but because there are so many, I don't think I can do it manually.


Any help would be appreciated.

Best wishes,


Reiko Matsuda Goodwin
Comoé Monkey Project 
Guenon Conservation Community 





___
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] Small towns and villages of France

2020-04-22 Thread Frank Broniewski

Hi Hamish,

I don't think NE has the appropriate scale for villages, it is far too 
small. Your best bet is probably using data from Openstreetmap. Get 
yourself a recent copy from here [1], look at the point layer and the 
attribute you want is "place" = 'village' or "place" = 'hamlet' [2].


HTH

Frank


[1] https://download.geofabrik.de/europe.html

[2] https://wiki.openstreetmap.org/wiki/Map_Features#Place

On 21.04.20 21:53, Hamish Macdonald wrote:

Hi,
Please could someone recommend which of the components of Natural 
Earth will give me the smallest populated places in France (e.g 
villages) or an alternative copyright free source for France to use 
with qgis?

Many thanks for your help.
Hamish

___
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] copy layer to scratch

2018-08-31 Thread Frank Broniewski
There's also the "Save selected features" processing module, you could select 
all features in your layer and use the module to copy things over to a new layer

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com



-Ursprüngliche Nachricht-
Von: Qgis-user  Im Auftrag von Tobias 
Wendorff
Gesendet: Donnerstag, 30. August 2018 15:02
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] copy layer to scratch

Hi there,

is there a sane way to copy layers to memory? Right now, I'm using "Merge 
vector layers" for this.

Best regards,
Tobias

___
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] points to polygon

2018-08-15 Thread Frank Broniewski
Hi Antonio,



there are two tools in the processing toolbox which might help you. For one 
there’s the points to line (qgis:pointstopath) script and second the lines to 
polygons (qgis:linestopolygons) script which might do what you want.



Best,

Frank



Von: Qgis-user  Im Auftrag von Antonio Silva
Gesendet: Dienstag, 14. August 2018 23:01
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] points to polygon



Hi,



I'm trying to make polygons from a set of points in QGIS Bonn 3.2.1 under 
Ubuntu 18.04.

I was used to do this with Points2One but I couldn't find this complement any 
more.

Is there any other option?

Thanks a lot.

All the best



Antonio

___
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] localisation of date fails in QGIS 3.2

2018-08-09 Thread Frank Broniewski
My take on getting the locale from Qt and setting it in Python:

 

import locale

 

def get_qgis_locale():

loc = QLocale()



for lang in loc.uiLanguages():

if lang.startswith(loc.bcp47Name()):

return '%s.UTF-8' % lang.replace('-', '_')

return 'en_US.UTF-8'

 

locale.setlocale(locale.LC_ALL, get_qgis_locale())

print(locale.getlocale())

 

uiLanguages() is a bit ambiguous, when using auto locale it just shows ‘de’ for 
me, setting 

the override – not the user interface – to nl_BE it shows ‘nl-BE’ which should 
be enough for setting locale.setlocale, you just need to replace the dash with 
an underscore. There is still the possibility that this will break on some 
language combinations though.

 

Frank

 

Von: Qgis-user  Im Auftrag von Alessandro 
Pasotti
Gesendet: Donnerstag, 9. August 2018 09:30
An: Reginald Carlier 
Cc: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] localisation of date fails in QGIS 3.2

 

On Thu, Aug 9, 2018 at 9:23 AM, Reginald Carlier 
mailto:reginald.carl...@ingelmunster.be> > 
wrote:

Thanks a lot Alessandro,

 

That works perfectly.

 

Glad it helped.

 

 

btw, this is a side-effect of the recent changes in QGIS locale: we are now 
using setting a "default locale" (from QGIS settings) when QGIS starts, and 
that locale is used through the whole QGIS application.

 

If you change the default locale in the settings, please remember to restart 
QGIS.

 

 

 

 





Reginald Carlier



Deskundige GIS



  




  Gemeente Ingelmunster

  , 

  Oostrozebekestraat 4

  , 

  8770

   

  Ingelmunster




  T

  +32 51 33 74 39


  www.ingelmunster.be




  

  

  

  


  Raadpleeg onze disclaimer 

  Van: Alessandro Pasotti 
[mailto:apaso...@gmail.com] 
Verzonden: donderdag 9 augustus 2018 9:10
Aan: Reginald Carlier
CC: Nyall Dawson [via OSGeo.org]; qgis-user@lists.osgeo.org
Onderwerp: Re: [Qgis-user] localisation of date fails in QGIS 3.2

   

  Reginald,

   

   

  Using QT:

   

  locale = QLocale(QLocale.Japanese)

  locale.toString(QDate.currentDate())

   

  And, if you want to use the same settings that 
you set in QGIS, just use the default locale:

   

  locale = QLocale() # Default locale from QGIS 
options/settings 

  locale.toString(QDate.currentDate())

   

   

   

   

  On Thu, Aug 9, 2018 at 8:54 AM, Reginald 
Carlier  wrote:

  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 Carlier



  Deskundige GIS



  Fout! Bestandsnaam niet opgegeven.




  Gemeente Ingelmunster

  , 

  Oostrozebekestraat 4

  , 

  8770

   

  Ingelmunster




  T

  +32 51 33 74 39


  www.ingelmunster.be




  Fout! Bestandsnaam niet opgegeven.

  Fout! Bestandsnaam niet opgegeven.

  Fout! Bestandsnaam niet opgegeven.

  Fout! Bestandsnaam niet opgegeven.


  Raadpleeg onze disclaimer 

 

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

2018-08-09 Thread Frank Broniewski
Hi Reginald,

 

I couldn’t find the post where you describe your problem. I just tried your 
code, this is the result from QGIS 3.2 (Windows) Python console, auto-locale 
German Germany (de_DE):

import datetime

vandaag = datetime.datetime.now() 

dag = vandaag.day 

maand = vandaag.strftime("%B") 

jaar = vandaag.year 

datum = str(dag) + " " + maand + " " + str(jaar)

print(datum)

9 August 2018

 

*but* when I override the locale to nl_BE I still get the same output as with 
the auto-locale.

 

import locale

print(locale.getlocale())

(None, None)

 

So I believe the locale is somehow not determinable for Python and a fallback 
is used.

 

Doing :

import locale

print(locale.getlocale())

(None, None)

locale.setlocale(locale.LC_ALL, 'nl_BE')

'nl_BE'

print(locale.getlocale())

('nl_BE', 'ISO8859-1')

import datetime

vandaag = datetime.datetime.now() 

dag = vandaag.day 

maand = vandaag.strftime("%B") 

jaar = vandaag.year 

datum = str(dag) + " " + maand + " " + str(jaar)

print(datum)

9 augustus 2018

 

does the trick though. There should be a way to get the set locale from PyQGIS 
somehow though …

 

Hth,

Frank

 

Von: Qgis-user  Im Auftrag von Reginald 
Carlier
Gesendet: Donnerstag, 9. August 2018 08:40
An: Nyall Dawson ; 'qgis-user@lists.osgeo.org' 

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

 

Hi Nyall,

Somehow my post shows the code but my previous post doesn't.
Anyway this is how the code looks:

vandaag = datetime.now() 
dag = vandaag.day 
maand = vandaag.strftime("%B") 
jaar = vandaag.year 
datum = str(dag) + " " + maand + " " + str(jaar)

I suspect that maybe strftime changed in python 3.6?

Regards,





Reginald Carlier​



Deskundige GIS



  




Gemeente Ingelmunster

, 

Oostrozebekestraat 4

, 

8770

 

Ingelmunster




T

  +32 51 33 74 39


  www.ingelmunster.be




  

  

  

  


  Raadpleeg onze disclaimer 

-Oorspronkelijk bericht-
Van: Nyall Dawson [mailto:nyall.daw...@gmail.com] 
Verzonden: donderdag 9 augustus 2018 8:36
Aan: Reginald Carlier
CC: qgis-user
Onderwerp: Re: [Qgis-user] localisation of date fails in QGIS 3.2

On Mon, 30 Jul 2018 at 19:22, Reginald mailto:reginald.carl...@ingelmunster.be> > wrote:
>
> 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 negeren" (ignore system locale) I still
> get the date in english.
> My code looks like this and works fine in QGIS 2.18:
>
>

I think you forgot to include the code? Can you re-share?

Nyall



smime.p7s
Description: S/MIME cryptographic signature
___
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] processing.run gdal file extension fun

2018-08-06 Thread Frank Broniewski
Hi all,

 

My question is probably more for the devs: I am developing a processing
script to do some work on SRMT elevation scenes. I want to use some
GDAL-tools to do the task, my first is filling the scene with
gdal:fillnodata.

 

My processing run-task is as follows:

params = {

'INPUT': input_evelation,

'BAND': 1,

'DISTANCE': 10,

'ITERATIONS': 0,

'NO_MASK': False,

'OUTPUT':
QgsProcessingUtils.generateTempFilename('filled.gtiff')

}

filled = processing.run('gdal:fillnodata', params, context=context,

feedback=feedback)['OUTPUT']

 

Usually I use “gtiff” as extension for GeoTIFF files, just to make it
obvious that the file is a geotiff and not a standard one. I was getting
missing file errors and could not understand why the output file could not
be found. This was giving me some headaches. Then, just for the fun I tried
changing 

 

'OUTPUT': QgsProcessingUtils.generateTempFilename('filled.gtiff') -> to ->
'OUTPUT': QgsProcessingUtils.generateTempFilename('filled.tif')

 

and it works!

 

Simply by using the TIF (*.tif) file extension the script runs through. This
caught me totally by surprise, is this intentionally or some kind of
oversight? Shouldn’t this be kind of irrelevant which naming convention the
output follows?

 

Frank

 

 

Dipl. Geogr. Frank Broniewski

Waldhölzbacher Str. 51

66679 Losheim am See

06872 509 068 4

0176 611 26 9 2 6

 <http://www.frankbroniewski.com> www.frankbroniewski.com

 



smime.p7s
Description: S/MIME cryptographic signature
___
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] Hoja de Excel generada por ODK

2018-07-25 Thread Frank Broniewski
Hi,

 

I don’t know Google Sheets, but in Excel you can use any of the functions 
available to split the coordinates at the comma “,” character and put the parts 
into new columns.

 

Hth

Frank

 

Von: Qgis-user  Im Auftrag von Eddison Araya
Gesendet: Mittwoch, 25. Juli 2018 06:37
An: qgis-user 
Betreff: [Qgis-user] Hoja de Excel generada por ODK

 


Hello, I used ODK Collector connected with Google Drive to perform field 
surveys. 

 



 

As you can see, the X and Y coordinates are contained in the same column when 
using the ODK Collector APP, connected to the Google Drive Sheet. How can I 
take that to QGIS? I have tried to use the function Add Layer of Delimited Text 
I can not do it since the coordinates are in the same column.

 

Thank you

 

Eddison

 

Gracias

 

Eddison



smime.p7s
Description: S/MIME cryptographic signature
___
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] Python error when trying to do a slope analysis in a DEM raster file

2018-07-10 Thread Frank Broniewski
Hi Larry,

 

it’s difficult to tell what went wrong without knowing the steps and the data 
you used. I just tried all the slope algorithms in the toolbox (gdal:slope, 
qgis:slope) and all work nicely here. I use QGIS 3 from the 
OSGeo4W-Installation … used a projected (in meters) SRTM scene and had no 
troubles running the slope algorithms.

 

Frank

 

Dipl. Geogr. Frank Broniewski

Waldhölzbacher Str. 51

66679 Losheim am See

06872 509 068 4

0176 611 26 9 2 6

 <http://www.frankbroniewski.com> www.frankbroniewski.com

 

 

 

Von: Qgis-user  Im Auftrag von larry mason
Gesendet: Montag, 9. Juli 2018 19:29
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Python error when trying to do a slope analysis in a DEM 
raster file

 

  
<https://mailtrack.io/trace/mail/4790cfbaf39d64c696d840259962559ef60d0b91.png?u=651070>
 

I know I should read the documentation just not sure where to find it. I'm 
trying to do a slope analysis of a DEM raster layer... I get the following 
python stack trace:

 

snip---

An error has occurred while executing Python code: 

AttributeError: 'slope' object has no attribute 'preprocessParameters' 

Traceback (most recent call last):
  File 
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\menus.py", 
line 181, in 
action.triggered.connect(lambda: _executeAlgorithm(alg))
  File 
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\menus.py", 
line 227, in _executeAlgorithm
dlg = alg.createCustomParametersWidget(None)
  File 
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithm.py",
 line 62, in createCustomParametersWidget
return GdalAlgorithmDialog(self)
  File 
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithmDialog.py",
 line 58, in __init__
self.mainWidget().parametersHaveChanged()
  File 
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithmDialog.py",
 line 110, in parametersHaveChanged
parameters = self.parent.getParameterValues()
  File 
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\AlgorithmDialog.py",
 line 119, in getParameterValues
return self.algorithm().preprocessParameters(parameters)
AttributeError: 'slope' object has no attribute 'preprocessParameters'


Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 
64 bit (AMD64)] 
QGIS version: 3.0.0-Girona Girona, 001c80b0c3 

 

end snip---

 

So I'm wondering if I need to set anything up for QGIS is use python modules. 
Or where one sets up preprocessing Parameters. Any good tutorials on loading 
DEMs. configuring properties, and running analysis. Thanks,

Larry

 

 

 

 

 


 
<https://mailtrack.io?utm_source=gmail_medium=signature_campaign=signaturevirality6;>
 

Sender notified by 
 
<https://mailtrack.io?utm_source=gmail_medium=signature_campaign=signaturevirality6;>
 Mailtrack 07/09/18, 12:25:29 PM 



 



smime.p7s
Description: S/MIME cryptographic signature
___
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 config settings

2018-07-09 Thread Frank Broniewski
Hi Patrick,

the location changed from QGIS 2 to QGIS 3. QGIS 2 is the .qgis2 folder, while 
.config/QGIS/profile/default is the folder for QGIS 3. I want to mention that 
you can have more than one user profile in QGIS 3, see 
https://www.qgis.org/en/site/forusers/visualchangelog30/index.html#feature-add-support-for-user-profiles
 for more details on that

HTH
Frank


-Ursprüngliche Nachricht-
Von: Qgis-user  Im Auftrag von Patrick 
Dunford
Gesendet: Montag, 9. Juli 2018 08:31
An: qgis-user ML 
Betreff: [Qgis-user] Qgis config settings

Good day all

Where are the config settigns for Qgis stored on Linux editions

On my existing desktop running 3.0 there are two different locations used:

* ~/.config/QGIS

* ~/.qgisX

This computer was upgraded from 2.18

I have a computer that had Qgis 3 on it as the first installation that has been 
upgraded to 3.2/3.3 and none of these folders exist.

Thanks

___
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


smime.p7s
Description: S/MIME cryptographic signature
___
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 3 Processing question

2018-07-04 Thread Frank Broniewski
Hi Nyall,

this works like a charm! Here's what I needed it for: Create polygon center 
lines in QGIS [1]. My script for processing is still quite rough around the 
edges and everywhere else and needs some testing, but I am getting results, 
thanks to you!

Many thanks,
Frank


[1] GIT 
https://github.com/frankbroniewski/polygoncenterline/blob/master/PolygonCenterline.py

-Ursprüngliche Nachricht-
Von: Nyall Dawson  
Gesendet: Dienstag, 3. Juli 2018 11:55
An: Frank Broniewski 
Cc: qgis-user 
Betreff: Re: [Qgis-user] QGIS 3 Processing question

> Nyall's tip with the temporary layer store just runs through nicely, but 
> nothing gets added to the layer pane after the script finished.

Sorry - missed something here. Because you're directly using the output from 
the child algorithm as your algorithm's final output, you should also pass the 
OUTPUT parameter value direct to the child algorithm. So in

>
>  def processAlgorithm(self, parameters, context, feedback):
>  # qgis:pointsalonglines
>  params = {
>  'INPUT': parameters[self.INPUT],
>  'DISTANCE': parameters[self.DISTANCE],
>  'START_OFFSET': 0,
>  'END_OFFSET': 0,
>  'OUTPUT': 'memory:'
>  }

 'OUTPUT': 'memory:'

should be

 'OUTPUT': parameters[self.OUTPUT]

Nyall


smime.p7s
Description: S/MIME cryptographic signature
___
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] Iterating two layers in Report - QGIS 3.2

2018-07-04 Thread Frank Broniewski
Hi Carlos,

 

did you find Nyalls excellent post on Reports in QGIS 3 already? I believe it 
explains what you want do achieve. Have a look at [1]

 

[1] 
https://north-road.com/2018/01/23/exploring-reports-in-qgis-3-0-the-ultimate-guide/

 

Hth,

Frank

 

Dipl. Geogr. Frank Broniewski

Waldhölzbacher Str. 51

66679 Losheim am See

06872 509 068 4

0176 611 26 9 2 6

 <http://www.frankbroniewski.com> www.frankbroniewski.com

 

 

 

Von: Qgis-user  Im Auftrag von Carlos Cerdán
Gesendet: Dienstag, 3. Juli 2018 16:49
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Iterating two layers in Report - QGIS 3.2

 

Hi list

I would like to make a report (atlas) iterating two layers where:

1. Layer of level 2 administrative boundary is iterated (with atlas feature) 
and shows it as a no filled polygon, with out label;  and else polygons as 
white filled with labels;  and

2. Layer of administrative level 3 boundary is iterated too (with atlas 
feature), and shows labels only in polygons that are intersected or are within 
the active level 2 boundary.

How can be this done in QGIS 3.2? I was succsefull in QGIS 2.18, but now it 
doesn't work. I've tryed rules as:

 intersects(@atlas_geometry,$geometry )

contains(geometry(@atlas_feature),centroid( $geometry ) ) is true

but nothing.

 

I'm tring this because of non desired labels of level 3 boundary. One solutiion 
is using white labels that are fused with white polygons of level 2 boundary... 
but it is plan B.

 

Any advice please?

 

Cheers!

 

Carlos Cerdan

 



smime.p7s
Description: S/MIME cryptographic signature
___
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 3 Processing question

2018-07-03 Thread Frank Broniewski
Rudi, Nyall,

I tried both your tips on how to solve this puzzle, but both didn't work 
unfortunately. Nyall's tip with the temporary layer store just runs through 
nicely, but nothing gets added to the layer pane after the script finished. 
Rudi's tip changes mostly the vector layer type from memory to a physical 
layer, but does not work as well. I even tried to return the result from the 
processing alg directly with no success: 

return processing.run(
'qgis:pointsalonglines', 
params, context=context, feedback=feedback
)

=> {'OUTPUT': }

Jean-Baptiste's tip on copying the features over to a new feature sink does 
work though.
I can however use the output from qgis:pointsalonglines without any problem in 
a second processing algorithm without needing to copy the features over to 
another feature sink.

It seems that there's some logic going on that prevents returning other 
processing results. Maybe it has to do with the ownership that's mentioned a 
few times in the docs [1]?



[1] 
https://qgis.org/pyqgis/master/core/Processing/QgsProcessingAlgorithm.html?highlight=parameterassink#qgis.core.QgsProcessingAlgorithm.addParameter



-Ursprüngliche Nachricht-
Von: Nyall Dawson  
Gesendet: Dienstag, 3. Juli 2018 01:37
An: Frank Broniewski 
Cc: qgis-user 
Betreff: Re: [Qgis-user] QGIS 3 Processing question

On Fri, 29 Jun 2018 at 17:35, Frank Broniewski  
wrote:

> def processAlgorithm(self, parameters, context, feedback):
> # qgis:pointsalonglines
> params = {
> 'INPUT': parameters[self.INPUT],
> 'DISTANCE': parameters[self.DISTANCE],
> 'START_OFFSET': 0,
> 'END_OFFSET': 0,
> 'OUTPUT': 'memory:'
> }
> points = processing.run(
> 'qgis:pointsalonglines',
> params, context=context, feedback=feedback
> )['OUTPUT']
>
> return {self.OUTPUT: points}
>

Try:

 def processAlgorithm(self, parameters, context, feedback):
 # qgis:pointsalonglines
 params = {
 'INPUT': parameters[self.INPUT],
 'DISTANCE': parameters[self.DISTANCE],
 'START_OFFSET': 0,
 'END_OFFSET': 0,
 'OUTPUT': 'memory:'
 }
 points = processing.run(
 'qgis:pointsalonglines',
 params, context=context, feedback=feedback
 )['OUTPUT']

# store result layer in context - this prevents it being deleted and 
cleaned up
# when processAlgorithm finishes
context.temporaryLayerStore().addMapLayer(points)

 # return the layer ID in the results dictionary - processing will 
automatically retrieve the corresponding
 # layer from the context when required
 return {self.OUTPUT: points.id()}


Nyall


smime.p7s
Description: S/MIME cryptographic signature
___
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 3 Processing question

2018-07-02 Thread Frank Broniewski
Thanks for your answer, I feared that this might be an option after all. I will 
try Rudi’s answer first and then yours. I will definitely post my insights here 
so everyone can profit 

 

Frank

 

Von: Jean-Baptiste Desbas  
Gesendet: Freitag, 29. Juni 2018 16:03
An: Frank Broniewski 
Cc: Nyall Dawson ; qgis-user 
Betreff: Re: [Qgis-user] QGIS 3 Processing question

 

Hi, 

 

I had the same issue. I had to loop over the output vector layer (child alg) to 
feed the sink (main alg). Maybe is not the simpliest/shortest/fastest, but it 
works.

Something like that :

 

o = processing.run(
'qgis:pointsalonglines', 
params, context=context, feedback=feedback
)['OUTPUT'] 

 

 (sink, dest_id) = self.parameterAsSink(

parameters,
self.OUTPUT,
context,
o.fields,
o.wkbType(),
o.sourceCrs()
)

 

for f in o.getFeatures()

sink.addFeature(f)

 

 

return {'OUTPUT':dest_id}

 

 

2018-06-29 9:35 GMT+02:00 Frank Broniewski mailto:ha...@frankbroniewski.com> >:

Hi Nyall,

thanks a ton for your response. I am well know for making things tricky for 
myself 
Anyway, my testing-algorithm-script is still not working. It runs through, but 
I do not get the expected result loaded into the layer tree. I suppose it runs 
through - the  output from the 'qgis:pointsalonglines' is a QgsVectorLayer - 
but after finishing I get nuthink back.

Here's my complete script: You'll need a temporary polygon layer in a projected 
CRS (I use EPSG:31466) for it to work nicely. Copy & Paste it into a new script 
window and run it. I simply don't find the reason why the point result layer 
isn't loaded into my layer tree ...


from qgis.PyQt.QtCore import QCoreApplication
from qgis.core import (QgsApplication,
   QgsProcessing,
   QgsFeatureSink,
   QgsProcessingAlgorithm,
   QgsProcessingParameterFeatureSource,
   QgsProcessingParameterNumber,
   QgsProcessingParameterFeatureSink)

import processing


class PolygonCenterline(QgsProcessingAlgorithm):

INPUT = 'INPUT'
DISTANCE = 'DISTANCE'
OUTPUT = 'OUTPUT'

def tr(self, text):
return QCoreApplication.translate('Processing', text)

def createInstance(self):
return PolygonCenterline()

def group(self):
return self.tr <http://self.tr> ('Cartography')

def groupId(self):
return 'cartography'

def name(self):
return 'polygoncenterline'

def displayName(self):
return self.tr <http://self.tr> ('Calculate a polygon centerline')

def initAlgorithm(self, config=None):
self.addParameter(
QgsProcessingParameterFeatureSource(
self.INPUT,
self.tr <http://self.tr> ('Vector Polygon Layer'),
[QgsProcessing.TypeVectorPolygon]
)
)

self.addParameter(
QgsProcessingParameterNumber(
self.DISTANCE,
self.tr <http://self.tr> ('Point distance value'),
type=QgsProcessingParameterNumber.Double,
minValue=10.0
)
)

self.addParameter(
QgsProcessingParameterFeatureSink(
self.OUTPUT,
self.tr <http://self.tr> ('Center line')
)
)

def processAlgorithm(self, parameters, context, feedback):
# qgis:pointsalonglines
params = {
'INPUT': parameters[self.INPUT], 
'DISTANCE': parameters[self.DISTANCE],
'START_OFFSET': 0,
'END_OFFSET': 0,
'OUTPUT': 'memory:'
}
points = processing.run(
'qgis:pointsalonglines', 
params, context=context, feedback=feedback
)['OUTPUT']

return {self.OUTPUT: points}




-Ursprüngliche Nachricht-
Von: Nyall Dawson mailto:nyall.daw...@gmail.com> > 
Gesendet: Freitag, 29. Juni 2018 01:04
An: Frank Broniewski mailto:ha...@frankbroniewski.com> >
Cc: qgis-user mailto:qgis-user@lists.osgeo.org> >
Betreff: Re: [Qgis-user] QGIS 3 Processing question


On Fri, 29 Jun 2018 at 07:14, Frank Broniewski mailto:ha...@frankbroniewski.com> > wrote:
>
> def processAlgorithm(self, parameters, context, feedback):


You're making this tricky for yourself! Cut out everything in processAlgorithm 
related to self.INPUT, and just pass the parameter value direct to the child 
algorithm to handle:

> params = {
>
> 'INPUT': parameters[self.INPUT],
>
> 'DISTANCE': pt_value,
>
> 'START_OFFSET': 0,
>
> 'END_OFFSET': 0,
>
> 'OUTPUT': 'memory:'
>
> }


Nyall



Re: [Qgis-user] QGIS 3 Processing question

2018-07-02 Thread Frank Broniewski
Hi Rudi,

 

thanks a lot for your answer, I will definitely try that out. And once I’ve 
done it I will post my insights for future reference. I tried the 
QgsProcessingParameterVectorDestination already, but 

 

> Finally, in your `params` dict, change the value for OUTPUT from `memory:` to 
> `output`

 

This is really new to me. Where did you find that? I really searched the docs 
up and down and gis.stackexchange as well, but never came across an output 
output for the output 

 

Many thanks,

Frank

 

Von: Rudi von Staden  
Gesendet: Sonntag, 1. Juli 2018 15:56
An: Frank Broniewski 
Cc: qgis-user 
Betreff: Re: [Qgis-user] QGIS 3 Processing question

 

Hi Frank,

 

On Fri, 29 Jun 2018 at 09:35, Frank Broniewski mailto:ha...@frankbroniewski.com> > wrote:

Anyway, my testing-algorithm-script is still not working. It runs through, but 
I do not get the expected result loaded into the layer tree. I suppose it runs 
through - the  output from the 'qgis:pointsalonglines' is a QgsVectorLayer - 
but after finishing I get nuthink back.

 

I had a similar problem. I think it's because the template defines the output 
as a feature sink, so you assume you have to use the same. I think if you 
change your definition from:

 

self.addParameter(

QgsProcessingParameterFeatureSink(

self.OUTPUT,

 <http://self.tr/> self.tr('Center line')

)

)

 

to: 

self.addParameter(

QgsProcessingParameterVectorDestination(

self.OUTPUT,

self.tr <http://self.tr> ('Center line')

)

)

 

and then in processAlgorithm you need to add output as a layer you can work 
with:

 

output = self.parameterAsOutputLayer(parameters,self.OUTPUT,context)

 

Finally, in your `params` dict, change the value for OUTPUT from `memory:` to 
`output`.

 

The new syntax is more complicated than it used to be, and it takes some time 
to wrap your head around it. I do find that it gets easier once you've got a 
couple of scripts under your belt.

 

Rudi

 



smime.p7s
Description: S/MIME cryptographic signature
___
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 3 Processing question

2018-06-29 Thread Frank Broniewski
Hi Nyall,

thanks a ton for your response. I am well know for making things tricky for 
myself 
Anyway, my testing-algorithm-script is still not working. It runs through, but 
I do not get the expected result loaded into the layer tree. I suppose it runs 
through - the  output from the 'qgis:pointsalonglines' is a QgsVectorLayer - 
but after finishing I get nuthink back.

Here's my complete script: You'll need a temporary polygon layer in a projected 
CRS (I use EPSG:31466) for it to work nicely. Copy & Paste it into a new script 
window and run it. I simply don't find the reason why the point result layer 
isn't loaded into my layer tree ...


from qgis.PyQt.QtCore import QCoreApplication
from qgis.core import (QgsApplication,
   QgsProcessing,
   QgsFeatureSink,
   QgsProcessingAlgorithm,
   QgsProcessingParameterFeatureSource,
   QgsProcessingParameterNumber,
   QgsProcessingParameterFeatureSink)

import processing


class PolygonCenterline(QgsProcessingAlgorithm):

INPUT = 'INPUT'
DISTANCE = 'DISTANCE'
OUTPUT = 'OUTPUT'

def tr(self, text):
return QCoreApplication.translate('Processing', text)

def createInstance(self):
return PolygonCenterline()

def group(self):
return self.tr('Cartography')

def groupId(self):
return 'cartography'

def name(self):
return 'polygoncenterline'

def displayName(self):
return self.tr('Calculate a polygon centerline')

def initAlgorithm(self, config=None):
self.addParameter(
QgsProcessingParameterFeatureSource(
self.INPUT,
self.tr('Vector Polygon Layer'),
[QgsProcessing.TypeVectorPolygon]
)
)

self.addParameter(
QgsProcessingParameterNumber(
self.DISTANCE,
self.tr('Point distance value'),
type=QgsProcessingParameterNumber.Double,
minValue=10.0
)
)

self.addParameter(
QgsProcessingParameterFeatureSink(
self.OUTPUT,
self.tr('Center line')
)
)

def processAlgorithm(self, parameters, context, feedback):
# qgis:pointsalonglines
params = {
'INPUT': parameters[self.INPUT], 
'DISTANCE': parameters[self.DISTANCE],
'START_OFFSET': 0,
'END_OFFSET': 0,
'OUTPUT': 'memory:'
}
points = processing.run(
'qgis:pointsalonglines', 
params, context=context, feedback=feedback
)['OUTPUT']

return {self.OUTPUT: points}




-Ursprüngliche Nachricht-
Von: Nyall Dawson  
Gesendet: Freitag, 29. Juni 2018 01:04
An: Frank Broniewski 
Cc: qgis-user 
Betreff: Re: [Qgis-user] QGIS 3 Processing question

On Fri, 29 Jun 2018 at 07:14, Frank Broniewski  
wrote:
>
> def processAlgorithm(self, parameters, context, feedback):


You're making this tricky for yourself! Cut out everything in processAlgorithm 
related to self.INPUT, and just pass the parameter value direct to the child 
algorithm to handle:

> params = {
>
> 'INPUT': parameters[self.INPUT],
>
> 'DISTANCE': pt_value,
>
> 'START_OFFSET': 0,
>
> 'END_OFFSET': 0,
>
> 'OUTPUT': 'memory:'
>
> }


Nyall


smime.p7s
Description: S/MIME cryptographic signature
___
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 Processing question

2018-06-28 Thread Frank Broniewski
Hi all,

 

I am getting my feet wet with the new QGIS 3 Processing script syntax. In my
script I want to use some other processing scripts from the toolbox. I think
I got most things right, but I do not get a result back. For testing I just
try to use ‘qgis:pointsalonglines’ on a temporary polygon layer and return
the points as a result. Here’s what I have so far:

 

def initAlgorithm(self, config=None):

self.addParameter(

QgsProcessingParameterFeatureSource(

self.INPUT,

self.tr("Vector Polygon Layer"),

[QgsProcessing.TypeVectorPolygon]

)

)

[…]

self.addParameter(

QgsProcessingParameterFeatureSink(

self.OUTPUT,

self.tr('Center line'),

QgsProcessing.TypeVectorAnyGeometry

)

)

 

 

def processAlgorithm(self, parameters, context, feedback):

source = self.parameterAsSource(parameters, self.INPUT, context)

# turn QgsProcessingParameterFeature - the source -  into a 

# QgsVectorLayer apparently self.parameterAsVectorLayer() does 

# not work on temporary layers so this step is required to use

# the input layer in processing algorithms

source_vl = source.materialize(QgsFeatureRequest())

 

pt_value = […]

 

# qgis:pointsalonglines

params = {

'INPUT': source_vl, 

'DISTANCE': pt_value,

'START_OFFSET': 0,

'END_OFFSET': 0,

'OUTPUT': 'memory:'

}

 

points = processing.run(

'qgis:pointsalonglines', 

params, context=context, feedback=feedback

)['OUTPUT']

return {self.OUTPUT: points}

 

 

running the script gives the following output in the processing window
(including some debug info not included above):

 

Eingabeparameter:

{ 'DISTANCE' : 10, 'INPUT' :
'Polygon?crs=EPSG:31466={e1a2d6cf-0cac-46f5-b1c8-ee208c497d22}',
'OUTPUT' : 'memory:' }

 



Ergebnisse: {'OUTPUT': 'output_953bb179_3f12_4312_89e4_5ffa13e8336b'}



Ausführung nach 0.03 Sekunden abgeschlossen

Ergebisse:

{'OUTPUT': }

 

Lade Ergebnis Layer

Algorithmus 'None' beendet

 

The last output line does not look right to me, any idea what I am doing
wrong here?

 

Many thanks,

Frank

 

 

Dipl. Geogr. Frank Broniewski

Waldhölzbacher Str. 51

66679 Losheim am See

06872 509 068 4

0176 611 26 9 2 6

 <http://www.frankbroniewski.com> www.frankbroniewski.com

 



smime.p7s
Description: S/MIME cryptographic signature
___
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] Delete key does not remove item in composer

2018-06-27 Thread Frank Broniewski
I've tried all the locales in C:\OSGeo4W64\apps\qgis\i18n
And the following ones are affected (added already to the bug report)

ca
de
es
gl
hi
hu
km
nb
pt_BR
sl
zh-Hant

-Ursprüngliche Nachricht-
Von: Bernhard Ströbl  
Gesendet: Mittwoch, 27. Juni 2018 11:25
An: rich...@duif.net; Frank Broniewski ; Alexandre 
Neto ; DelazJ 
Cc: Qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Delete key does not remove item in composer

done:
https://issues.qgis.org/issues/19281

Am 27.06.2018 um 11:16 schrieb Richard Duivenvoorde:
> I can reproduce:
> 
> in english both keys work, but if I start QGIS in German:
> 
> qgis3 --lang de
> 
> then only backspace works, del does not
> 
> (My OS is Debian english, US keyboard, LANGUAGE=en_US:en
> 
> Please create an issue for it (and preferably try some other languages 
> too :-) )
> 
> Regards,
> 
> Richard
> 
> On 06/27/2018 11:12 AM, Frank Broniewski wrote:
>> Just tried, but to no avail (QGIS 3.2, OSGeo4W64, Windows 10)
>>
>> I renamed my profile, started QGIS, created an empty composer, drew a 
>> rectangle and tried to delete it with DEL – does not work, BACKSPACE 
>> does
>>
>>   
>>
>> *Von:* Alexandre Neto 
>> *Gesendet:* Mittwoch, 27. Juni 2018 11:08
>> *An:* DelazJ 
>> *Cc:* Frank Broniewski ; 
>> Qgis-user@lists.osgeo.org
>> *Betreff:* Re: [Qgis-user] Delete key does not remove item in 
>> composer
>>
>>   
>>
>>   
>>
>> Hi,
>>
>>   
>>
>> On Linux, version 3.2 works as expected, both DELETE and Backspace 
>> remove layout composer items
>>
>>   
>>
>> Can you try to use a clean settings profile and check again?
>>
>>   
>>
>> DelazJ mailto:del...@gmail.com>> escreveu no dia 
>> quarta, 27/06/2018 às 10:02:
>>
>>  Hi,
>>
>>   
>>
>>  Let's not be so categorical and please, indicate also the platform
>>  you are working on. I've reported a bug long time ago (QGIS 2.8)
>>  about macOS https://issues.qgis.org/issues/12874
>>
>>  Checking right now, I can say that:
>>
>>  - on macOS, QGIS 2.18.0, both buttons do delete composer items
>>
>>  - on Windows 10, using QGIS 2.18.21 and 3.3, both buttons do the
>>  same thing.
>>
>>   
>>
>>  Maybe, there are some local settings that interfere but on my side,
>>  documentation looks right.
>>
>>   
>>
>>  Regards,
>>
>>  Harrissou
>>
>>   
>>
>>  2018-06-27 10:30 GMT+02:00 Frank Broniewski
>>  mailto:ha...@frankbroniewski.com>>:
>>
>>  Hi,
>>
>>  I just want to confirm that DELETE never worked for me (can't
>>  recall it ever did), BACKSPACE does though.
>>
>>  Frank
>>
>>  Dipl. Geogr. Frank Broniewski
>>  Waldhölzbacher Str. 51
>>  66679 Losheim am See
>>  06872 509 068 4
>>  0176 611 26 9 2 6
>>  www.frankbroniewski.com <http://www.frankbroniewski.com>
>>
>>
>>  -Ursprüngliche Nachricht-
>>  Von: Qgis-user >  <mailto:qgis-user-boun...@lists.osgeo.org>> Im Auftrag von
>>  Bernhard Ströbl
>>  Gesendet: Mittwoch, 27. Juni 2018 10:25
>>  An: Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>>  Betreff: [Qgis-user] Delete key does not remove item in 
>> composer
>>
>>
>>  Hi all,
>>  the documentation [1] states that for removing an item in
>>  composer one can either use Backspace or Delete. However Delete
>>  does not work for me :-( Is there anything I am missing?
>>  Tried:
>>  QGIS 2.18.20 on Win7 and Ubuntu 16.04, QGIS 3.2 on Ubuntu 
>> 16.04
>>
>>  [1]
>>  
>> https://docs.qgis.org/2.18/en/docs/user_manual/print_composer/overvie
>> w_composer.html
>>
>>  Bernhard
>>
>>
>>  __ Information from ESET Mail Security, version of virus
>>  signature database 17619 (20180627) __
>>
>>  The message was checked by ESET Mail Security.
>>  http://www.eset.com
>>
>>
>>  ___
>>  Qgis-user mailing list
>>  Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>>  List

Re: [Qgis-user] Delete key does not remove item in composer

2018-06-27 Thread Frank Broniewski
Good catch! Never occurred to me that this could be a language issue

-Ursprüngliche Nachricht-
Von: Richard Duivenvoorde  
Gesendet: Mittwoch, 27. Juni 2018 11:16
An: Frank Broniewski ; Alexandre Neto 
; DelazJ 
Cc: Qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Delete key does not remove item in composer

I can reproduce:

in english both keys work, but if I start QGIS in German:

qgis3 --lang de

then only backspace works, del does not

(My OS is Debian english, US keyboard, LANGUAGE=en_US:en

Please create an issue for it (and preferably try some other languages too :-) )

Regards,

Richard

On 06/27/2018 11:12 AM, Frank Broniewski wrote:
> Just tried, but to no avail (QGIS 3.2, OSGeo4W64, Windows 10)
> 
> I renamed my profile, started QGIS, created an empty composer, drew a 
> rectangle and tried to delete it with DEL – does not work, BACKSPACE 
> does
> 
>  
> 
> *Von:* Alexandre Neto 
> *Gesendet:* Mittwoch, 27. Juni 2018 11:08
> *An:* DelazJ 
> *Cc:* Frank Broniewski ; 
> Qgis-user@lists.osgeo.org
> *Betreff:* Re: [Qgis-user] Delete key does not remove item in composer
> 
>  
> 
>  
> 
> Hi,
> 
>  
> 
> On Linux, version 3.2 works as expected, both DELETE and Backspace 
> remove layout composer items
> 
>  
> 
> Can you try to use a clean settings profile and check again?
> 
>  
> 
> DelazJ mailto:del...@gmail.com>> escreveu no dia 
> quarta, 27/06/2018 às 10:02:
> 
> Hi,
> 
>  
> 
> Let's not be so categorical and please, indicate also the platform
> you are working on. I've reported a bug long time ago (QGIS 2.8)
> about macOS https://issues.qgis.org/issues/12874
> 
> Checking right now, I can say that:
> 
> - on macOS, QGIS 2.18.0, both buttons do delete composer items
> 
> - on Windows 10, using QGIS 2.18.21 and 3.3, both buttons do the
> same thing.
> 
>  
> 
> Maybe, there are some local settings that interfere but on my side,
> documentation looks right.
> 
>  
> 
> Regards,
> 
> Harrissou
> 
>  
> 
> 2018-06-27 10:30 GMT+02:00 Frank Broniewski
> mailto:ha...@frankbroniewski.com>>:
> 
> Hi,
> 
> I just want to confirm that DELETE never worked for me (can't
> recall it ever did), BACKSPACE does though.
> 
> Frank
> 
> Dipl. Geogr. Frank Broniewski
> Waldhölzbacher Str. 51
> 66679 Losheim am See
> 06872 509 068 4
> 0176 611 26 9 2 6
> www.frankbroniewski.com <http://www.frankbroniewski.com>
> 
> 
> -Ursprüngliche Nachricht-
> Von: Qgis-user  <mailto:qgis-user-boun...@lists.osgeo.org>> Im Auftrag von
> Bernhard Ströbl
> Gesendet: Mittwoch, 27. Juni 2018 10:25
> An: Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> Betreff: [Qgis-user] Delete key does not remove item in 
> composer
> 
> 
> Hi all,
> the documentation [1] states that for removing an item in
> composer one can either use Backspace or Delete. However Delete
> does not work for me :-( Is there anything I am missing?
> Tried:
> QGIS 2.18.20 on Win7 and Ubuntu 16.04, QGIS 3.2 on Ubuntu 
> 16.04
> 
> [1]
> 
> https://docs.qgis.org/2.18/en/docs/user_manual/print_composer/overview
> _composer.html
> 
> Bernhard
> 
> 
> __ Information from ESET Mail Security, version of virus
> signature database 17619 (20180627) __
> 
> The message was checked by ESET Mail Security.
> http://www.eset.com
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto: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 <mailto: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 <mailto: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] Delete key does not remove item in composer

2018-06-27 Thread Frank Broniewski
Just tried, but to no avail (QGIS 3.2, OSGeo4W64, Windows 10)

I renamed my profile, started QGIS, created an empty composer, drew a rectangle 
and tried to delete it with DEL – does not work, BACKSPACE does

 

Von: Alexandre Neto  
Gesendet: Mittwoch, 27. Juni 2018 11:08
An: DelazJ 
Cc: Frank Broniewski ; Qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Delete key does not remove item in composer

 

 

Hi,

 

On Linux, version 3.2 works as expected, both DELETE and Backspace remove 
layout composer items

 

Can you try to use a clean settings profile and check again?

 

DelazJ mailto:del...@gmail.com> > escreveu no dia quarta, 
27/06/2018 às 10:02:

Hi,

 

Let's not be so categorical and please, indicate also the platform you are 
working on. I've reported a bug long time ago (QGIS 2.8) about macOS 
https://issues.qgis.org/issues/12874 

Checking right now, I can say that:

- on macOS, QGIS 2.18.0, both buttons do delete composer items

- on Windows 10, using QGIS 2.18.21 and 3.3, both buttons do the same thing.

 

Maybe, there are some local settings that interfere but on my side, 
documentation looks right.

 

Regards,

Harrissou

 

2018-06-27 10:30 GMT+02:00 Frank Broniewski mailto:ha...@frankbroniewski.com> >:

Hi,

I just want to confirm that DELETE never worked for me (can't recall it ever 
did), BACKSPACE does though.

Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com <http://www.frankbroniewski.com> 


-Ursprüngliche Nachricht-
Von: Qgis-user mailto:qgis-user-boun...@lists.osgeo.org> > Im Auftrag von Bernhard Ströbl
Gesendet: Mittwoch, 27. Juni 2018 10:25
An: Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org> 
Betreff: [Qgis-user] Delete key does not remove item in composer


Hi all,
the documentation [1] states that for removing an item in composer one can 
either use Backspace or Delete. However Delete does not work for me :-( Is 
there anything I am missing?
Tried:
QGIS 2.18.20 on Win7 and Ubuntu 16.04, QGIS 3.2 on Ubuntu 16.04

[1]
https://docs.qgis.org/2.18/en/docs/user_manual/print_composer/overview_composer.html

Bernhard


__ Information from ESET Mail Security, version of virus signature 
database 17619 (20180627) __

The message was checked by ESET Mail Security.
http://www.eset.com


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org <mailto: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 <mailto: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 <mailto:Qgis-user@lists.osgeo.org> 
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-- 

Alexandre Neto

-

@AlexNetoGeo

http://sigsemgrilhetas.wordpress.com

http://gisunchained.wordpress.com



smime.p7s
Description: S/MIME cryptographic signature
___
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] Delete key does not remove item in composer

2018-06-27 Thread Frank Broniewski
Ok, 

 

Windows 10 (and AFAIR Win7 also) with QGIS 2.18 & 3.0 & 3.2 
OSGeo4W-Installation (32bit & 64bit). The DELETE key never worked …

Before reading this thread I never assumed it should work, although by habit I 
press it always before noticing that it doesn’t do anything. I always used the 
menu or backspace afterwards …

 

Von: DelazJ  
Gesendet: Mittwoch, 27. Juni 2018 11:02
An: Frank Broniewski 
Cc: Bernhard Ströbl ; Qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Delete key does not remove item in composer

 

Hi,

 

Let's not be so categorical and please, indicate also the platform you are 
working on. I've reported a bug long time ago (QGIS 2.8) about macOS 
https://issues.qgis.org/issues/12874 

Checking right now, I can say that:

- on macOS, QGIS 2.18.0, both buttons do delete composer items

- on Windows 10, using QGIS 2.18.21 and 3.3, both buttons do the same thing.

 

Maybe, there are some local settings that interfere but on my side, 
documentation looks right.

 

Regards,

Harrissou

 

2018-06-27 10:30 GMT+02:00 Frank Broniewski mailto:ha...@frankbroniewski.com> >:

Hi,

I just want to confirm that DELETE never worked for me (can't recall it ever 
did), BACKSPACE does though.

Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com <http://www.frankbroniewski.com> 


-Ursprüngliche Nachricht-
Von: Qgis-user mailto:qgis-user-boun...@lists.osgeo.org> > Im Auftrag von Bernhard Ströbl
Gesendet: Mittwoch, 27. Juni 2018 10:25
An: Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org> 
Betreff: [Qgis-user] Delete key does not remove item in composer


Hi all,
the documentation [1] states that for removing an item in composer one can 
either use Backspace or Delete. However Delete does not work for me :-( Is 
there anything I am missing?
Tried:
QGIS 2.18.20 on Win7 and Ubuntu 16.04, QGIS 3.2 on Ubuntu 16.04

[1]
https://docs.qgis.org/2.18/en/docs/user_manual/print_composer/overview_composer.html

Bernhard


__ Information from ESET Mail Security, version of virus signature 
database 17619 (20180627) __

The message was checked by ESET Mail Security.
http://www.eset.com


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org <mailto: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 <mailto:Qgis-user@lists.osgeo.org> 
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

 



smime.p7s
Description: S/MIME cryptographic signature
___
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] Delete key does not remove item in composer

2018-06-27 Thread Frank Broniewski
Hi,

I just want to confirm that DELETE never worked for me (can't recall it ever 
did), BACKSPACE does though.

Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com


-Ursprüngliche Nachricht-
Von: Qgis-user  Im Auftrag von Bernhard 
Ströbl
Gesendet: Mittwoch, 27. Juni 2018 10:25
An: Qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Delete key does not remove item in composer

Hi all,
the documentation [1] states that for removing an item in composer one can 
either use Backspace or Delete. However Delete does not work for me :-( Is 
there anything I am missing?
Tried:
QGIS 2.18.20 on Win7 and Ubuntu 16.04, QGIS 3.2 on Ubuntu 16.04

[1]
https://docs.qgis.org/2.18/en/docs/user_manual/print_composer/overview_composer.html

Bernhard


__ Information from ESET Mail Security, version of virus signature 
database 17619 (20180627) __

The message was checked by ESET Mail Security.
http://www.eset.com


___
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


smime.p7s
Description: S/MIME cryptographic signature
___
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] Irregular map frame with transparent mask?

2018-06-20 Thread Frank Broniewski
Hi Alex,

 

this is not really supported atm in the composer. There are two blog posts 
which might get you going to achieve something similar than your example. But 
grids will definitely be a problem:

 

https://anitagraser.com/2016/05/01/how-to-create-round-maps-in-print-composer/

https://smathermather.com/2013/04/09/quantum-gis-compositing-continued/

 

best,

Frank

 

Dipl. Geogr. Frank Broniewski

Waldhölzbacher Str. 51

66679 Losheim am See

06872 509 068 4

0176 611 26 9 2 6

 <http://www.frankbroniewski.com> www.frankbroniewski.com

 

 

 

Von: Alexandre Neto  
Gesendet: Mittwoch, 20. Juni 2018 13:06
An: rich...@duif.net
Cc: Frank Broniewski ; Phil Wyatt 
; QGIS User 
Betreff: Re: [Qgis-user] Irregular map frame with transparent mask?

 

Thanks guys for your suggestions. 

 

Unfortunatly this was not what I was looking for. I was looking for a mask in 
the Layouts window. And I would like it to be full transparent regarding other 
elements of the layout.

 

Following the example of the video, I would like to have a map item with the 
shape of that country. but I would like to see the layout items that are around 
the map.

 

Cherry on top of the cake: that the grids still work fine with labels around 
the edges of the irregular shape.

 

I hate cite ESRI but here it goes... Something like this image:

 

https://community.esri.com/servlet/JiveServlet/showImage/2-753103-397442/pastedImage_2.png

 

Thanks,

 

Alex

 

Richard Duivenvoorde mailto:rdmaili...@duif.net> > 
escreveu no dia quarta, 20/06/2018 às 08:56:

Works like a charm.

Thanks Frank for the tip! Quick and easy:
- copy a feature
- paste as memory layer
- put it on top
- choose 'Inverted polygons' as Symbology
- fiddle with transparency

Is worth a blog post somewhere if you ask me :-)

Regards,

Richard Duivenvoorde

On 20-06-18 08:39, Frank Broniewski wrote:
> The process in this video is really outdated, there’s an „inverted
> polygon“ renderer which does the same without having to go through all
> the hassle. You can find the renderer where you „select single symbol“,
> „categorized“ etc.
> 
>  
> 
> HHT
> Frank
> 
>  
> 
> Dipl. Geogr. Frank Broniewski
> 
> Waldhölzbacher Str. 51
> 
> 66679 Losheim am See
> 
> 06872 509 068 4
> 
> 0176 611 26 9 2 6
> 
> www.frankbroniewski.com <http://www.frankbroniewski.com>  
> <http://www.frankbroniewski.com>
> 
>  
> 
>  
> 
>  
> 
> *Von:*Qgis-user  <mailto:qgis-user-boun...@lists.osgeo.org> > *Im Auftrag von
> *Phil Wyatt
> *Gesendet:* Mittwoch, 20. Juni 2018 03:47
> *An:* 'Alexandre Neto' mailto:senhor.n...@gmail.com> 
> >; 'QGIS User'
> mailto:qgis-user@lists.osgeo.org> >
> *Betreff:* Re: [Qgis-user] Irregular map frame with transparent mask?
> 
>  
> 
> Does this video show what you want to achieve?
> 
>  
> 
> https://www.youtube.com/watch?v=6h5kT2--xBM
> 
>  
> 
> Cheers - Phil
> 
>  
> 
> *From:*Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org 
> <mailto:qgis-user-boun...@lists.osgeo.org> ] *On Behalf
> Of *Alexandre Neto
> *Sent:* Wednesday, 20 June 2018 4:20 AM
> *To:* QGIS User
> *Subject:* [Qgis-user] Irregular map frame with transparent mask?
> 
>  
> 
> Hi,
> 
>  
> 
> I am looking for a way to create a map with an irregular (non-rectangle)
> frame.
> 
>  
> 
> There is blog post from Anita showing how to do it but it needs a white
> mask all around the map. While I need it to be transparent. 
> 
>  
> 
> I don't think this is possible yet without going the SVGs way, but maybe
> someone have so cool trick to share.
> 
>  
> 
> Thanks
> 
> -- 
> 
> Alexandre Neto
> 
> -
> 
> @AlexNetoGeo
> 
> http://sigsemgrilhetas.wordpress.com
> 
> http://gisunchained.wordpress.com
> 
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org> 
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

-- 

Alexandre Neto

-

@AlexNetoGeo

http://sigsemgrilhetas.wordpress.com

http://gisunchained.wordpress.com



smime.p7s
Description: S/MIME cryptographic signature
___
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] Irregular map frame with transparent mask?

2018-06-20 Thread Frank Broniewski
The process in this video is really outdated, there’s an „inverted polygon“ 
renderer which does the same without having to go through all the hassle. You 
can find the renderer where you „select single symbol“, „categorized“ etc.

 

HHT
Frank

 

Dipl. Geogr. Frank Broniewski

Waldhölzbacher Str. 51

66679 Losheim am See

06872 509 068 4

0176 611 26 9 2 6

 <http://www.frankbroniewski.com> www.frankbroniewski.com

 

 

 

Von: Qgis-user  Im Auftrag von Phil Wyatt
Gesendet: Mittwoch, 20. Juni 2018 03:47
An: 'Alexandre Neto' ; 'QGIS User' 

Betreff: Re: [Qgis-user] Irregular map frame with transparent mask?

 

Does this video show what you want to achieve?

 

https://www.youtube.com/watch?v=6h5kT2--xBM

 

Cheers - Phil

 

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of 
Alexandre Neto
Sent: Wednesday, 20 June 2018 4:20 AM
To: QGIS User
Subject: [Qgis-user] Irregular map frame with transparent mask?

 

Hi,

 

I am looking for a way to create a map with an irregular (non-rectangle) frame.

 

There is blog post from Anita showing how to do it but it needs a white mask 
all around the map. While I need it to be transparent. 

 

I don't think this is possible yet without going the SVGs way, but maybe 
someone have so cool trick to share.

 

Thanks

-- 

Alexandre Neto

-

@AlexNetoGeo

http://sigsemgrilhetas.wordpress.com

http://gisunchained.wordpress.com



smime.p7s
Description: S/MIME cryptographic signature
___
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] MS localdb crash error

2018-06-11 Thread Frank Broniewski
Hi Chris,

 

I cannot comment speficially on your crash, but I had a better experience
connecting to an MS Access Database via ODBC when I used an „OGR Virtual
Format“ and used the file directly in QGIS instead of doing the connection
in QGIS.

 

Here are some links that might help you creating such a file to connect to
your DB:

http://www.gdal.org/drv_odbc.html

http://www.gdal.org/drv_vrt.html

 

and an example:



 





 
ODBC:USER/PW@DB,Naturmerkmale,Beziehung





SELECT "ID", "Nummer", "Art", "Baumart", "Durchmesser", "Letzte
Messung", "Bemerkung", "Preisgruppe",

"GK-Rechtswert" as rechtswert, "GK-Hochwert" as hochwert,

(

SELECT COUNT(*) FROM "Beziehung" AS b WHERE n."ID" =
b."Naturmerkmal"

) AS anzahl

FROM "Naturmerkmale" AS n

WHERE "GK-Rechtswert" > 0





EPSG:31467

wkbPoint











 

HTH

Frank

 

 

Dipl. Geogr. Frank Broniewski

Waldhölzbacher Str. 51

66679 Losheim am See

06872 509 068 4

0176 611 26 9 2 6

www.frankbroniewski.com <http://www.frankbroniewski.com> 

 

 

 

 

 

Von: Qgis-user  Im Auftrag von Franklin,
Chris - Perth.
Gesendet: Dienstag, 12. Juni 2018 01:44
An: Qgis-user@lists.osgeo.org
Betreff: [Qgis-user] MS localdb crash error

 

Hi,

 

I have an ODBC connection to a MS localDB on my machine, I have a
spatialised view in that Db showing only 2 point currently collected by a 3
party piece of software via an internal GPS unit, I can bring into QGIS but
if I zoom in and out QGIS crashes – see report below. No other layers are
loaded - im running QGIS3 on Windows 10. I have also tried in QGIS 2.18.20
with the same result.

 

 

h2. User Feedback

 

 

 

h2. Report Details

 

*Crash ID*: a3e6a017d398405b26144fef17da819ca6a5a747

 

 

*Stack Trace*



RtlEnterCriticalSection :

SQLDisconnect :

LockHandle :

SQLGetStmtAttrW :

isProvider :

isProvider :

isProvider :

QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator :

QgsVectorLayerFeatureSource::getFeatures :

QgsVectorLayerLabelProvider::registerFeature :

QgsMapRendererCustomPainterJob::doRender :

QgsMapRendererCustomPainterJob::staticRender :

QgsMapRendererJob::renderingTime :

QThreadPoolPrivate::reset :

QThread::start :

BaseThreadInitThunk :

RtlUserThreadStart :



 

 

*QGIS Info*

QGIS Version: 3.0.3-Girona

QGIS code revision: commit:8a899c8758

Compiled against Qt: 5.9.2

Running against Qt: 5.9.2

Compiled against GDAL: 2.2.4

Running against GDAL: 2.2.4

 

 

 

*System Info*

CPU Type: x86_64

Kernel Type: winnt

Kernel Version: 10.0.16299

 

Any help gratefully received. 

 

Kind Regards

 

Chris

 

 

Kind Regards

 




Chris Franklin 
Senior GIS Officer 

Level 2, Australia Place, 15 - 17 William Street
Perth, Western Australia 6000

T: +61 8 9261 6100  |  D: +61 8 9261 6127 |  M: +61 420 665660

 <http://www.rml.com.au/> www.rml.com.au

 

Please consider the environment before printing this email.

This email and any attached files are confidential and may be legally
privileged. If you are not the intended recipient, any disclosure,
reproduction, copying, distribution, or other dissemination or use of this
communication is strictly prohibited. If you have received this transmission
in error, please notify the sender immediately and then delete this email.
Email transmission cannot be guaranteed to be secure or error free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore is in no way liable for
any errors or omissions in the content of this message, which may arise as a
result of email transmission. If verification is required, please request a
hard copy.

 



smime.p7s
Description: S/MIME cryptographic signature
___
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] How to update my plugin?

2018-04-26 Thread Frank Broniewski
Hi all,

I've recently released my first plugin (yay!) and of course shortly after doing 
so I discovered some issues which I fixed almost immediately. What's the best 
way to update my plugin now? I went to the plugin's homepage and added another 
version to it. This version sits there now since the 24th and is "not 
approved". How do I get it approved? More patience? Or do I need to edit the 
initial release and upload the new ZIP there?

Many thanks,
Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

___
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 widgets in QT Designer

2018-04-24 Thread Frank Broniewski
Hi,

I am missing the QGIS widgets in QT Designer. This is for QGIS 3 & QT5 on 
OSGeo4W64. Are the widgets not yet implemented or is my installation messed up? 
Qgis-ltr has them though. Any ideas?

Many thanks,
Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

___
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] Simple curves

2018-04-17 Thread Frank Broniewski
Hi Marco,

in QGIS 3 there is a special toolbar for forms which allows you to design 
circles, arcs and so forth.
For QGIS 2 there are some plugins which allow you to do so, namely QAD and 
cadtools.

HTH
Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

Von: Qgis-user <qgis-user-boun...@lists.osgeo.org> Im Auftrag von Marco Dinges
Gesendet: Dienstag, 17. April 2018 16:07
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Simple curves

Hey guys,

is it possible to create simple curves with, for example, three Points and a 
radius?
___
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] Mixed Translation

2018-04-12 Thread Frank Broniewski
I did have a rummage through the qgis_de.qm file with QT Linguist and could not 
find any missing translation strings. This is why I think the translation issue 
is not related to the translation itself, but must be located somewhere else.

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

-Ursprüngliche Nachricht-
Von: Tobias Wendorff <tobias.wendo...@tu-dortmund.de> 
Gesendet: Donnerstag, 12. April 2018 08:42
An: Frank Broniewski <ha...@frankbroniewski.com>
Cc: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Mixed Translation

Hi there,

Am Do, 12.04.2018, 08:35 schrieb Frank Broniewski:
>
> Any ideas what might cause the mixed translations?

I don't have an idea, but I've experienced similar things in other dialogs. I'm 
also interested if I can help (like additional translations).

Best regards,
Tobias

___
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] Mixed Translation

2018-04-12 Thread Frank Broniewski
Hi everybody,

I noticed a translation issue - see linked image below [1] - upon exiting QGIS. 
I can't believe that the translation hasn't been done so I assume  a problem 
somewhere else. Please notice all the text being in German while the buttons 
are in English. This is on the latest OSGeo4W64 on Windows 10 with QGIS 
2.18.18. System locale is DE_de, and overriding the locale with DE_de manually 
does not solve the issue.
Any ideas what might cause the mixed translations?

Many thanks,
Frank


[1] Image https://www.frankbroniewski.com/files/qgis_exit_dialog.png


Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

___
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] unable to deploy pythonscript

2018-04-05 Thread Frank Broniewski
Hi Reginald,

pip and setuptools are both available through the OSGeo4W installer. You might 
as well try to use the OSGeo4W-Shell and not the default Windows CMD to install 
further python modules through pip or setuptools. Using the OSGeo4W-Shell takes 
care for setting up the right environment for Python.

HTH
Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

-Ursprüngliche Nachricht-
Von: Qgis-user <qgis-user-boun...@lists.osgeo.org> Im Auftrag von Reginald
Gesendet: Donnerstag, 5. April 2018 08:26
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] unable to deploy pythonscript

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 standalone installation of 
QGIS-OSGeo4W-2.18.17-1-Setup-x86_64.exe  on Windows 7 and where I have opened a 
cmd window as administrator, executed a bat file that sets the path right for 
the python environment of the installed qgis, I get an error when I try to 
execute pip commands.
I execute them as : python -m pip install python-docx Then I get a mentioning 
of setuptools that are not installed.
I tried to install setuptools with pip but then I got a mentioning of there not 
being a version of setuptools.
The python version is 2.75. I downloaded setuptools and unzipped it and 
executed easy_install.py but then I got a mentioning that I might have no 
rights to write to this directory. As I am administrator this can not be the 
case.
How can I install setuptools or use pip to download external python packages 
for the qgis python installation?

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: 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] QGIS 3 Print Composer - Page Properties

2018-04-03 Thread Frank Broniewski
I just want to join this discussion. I find that making assumptions on how 
people use the map composer / layout manager like Carlo does is difficult 
terrain. So saying that most users just make one-page maps is at least not true 
for me. I like adding metadata to my map layouts like tables, graphics and text 
on more than one page and having now the option to have different page sizes is 
just great.  I tend to agree with Nyall here that people will eventually get 
used to do right click.

Just my 2c
Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

-Ursprüngliche Nachricht-
Von: Qgis-user <qgis-user-boun...@lists.osgeo.org> Im Auftrag von Nyall Dawson
Gesendet: Dienstag, 3. April 2018 06:16
An: Carlo A. Bertelli <carlo.berte...@gmail.com>
Cc: qgis-user <qgis-user@lists.osgeo.org>; QGIS Developer Mailing List 
<qgis-develo...@lists.osgeo.org>
Betreff: Re: [Qgis-user] [QGIS-Developer] QGIS 3 Print Composer - Page 
Properties

On 3 April 2018 at 07:06, Carlo A. Bertelli (Charta s.r.l.) 
<carlo.berte...@gmail.com> wrote:
> I suggest to provide the same interface as version 2 calling this 
> "default page size" and explaining that every page could get a 
> different size, right-clicking on the page. Most users make one-page 
> maps and they would never need this otherwise vital feature.

I've thought long on this. I'm reasonably convinced it's a short-term issue as 
people adjust there 2.x workflows to 3.0.

There's two approaches I can see working to mitigate it:

1. Add a "pages panel", which allows you to pick from existing pages (e.g. via 
a drop-down combo box) and then set the properties for that page. It could also 
have the actions for adding new pages and deleting existing pages there too.

and/or

2. Add a "new layout wizard", which shows when you create a new print layout. 
This would prompt users to set the page size before the layout is actually 
created. It could potentially replace the existing layout manager approach to 
creating layouts from a template, e.g. by showing a nice list of available 
templates via thumbnail graphics.

Unfortunately both approaches aren't trivial, and would require some hours to 
implement.

Nyall


> c
>
> On Mon, Apr 2, 2018 at 10:01 PM, Alessandro Pasotti 
> <apaso...@gmail.com>
> wrote:
>>
>> The reason for this change is that your can now have different 
>> settings for each page.
>>
>> The page size is not a property of the layout anymore but it's a 
>> property of the page.
>>
>> But I agree that the page properties might be better exposed.
>>
>>
>> On Mon, Apr 2, 2018, 21:56 C Hamilton <adenacult...@gmail.com> wrote:
>>>
>>> I was just going to ask what happened to the "Page Size" properties 
>>> in the QGIS 3 print composer, but I stumbled upon it accidentally by 
>>> right-mouse clicking on the page and selecting "Page Properties." 
>>> This was not easily found. In the QGIS 2 print compose it is a part 
>>> of the layout. In QGIS 3 I just lucked out.
>>>
>>> Could the page properties be more obvious to find? At lease add them 
>>> to the Layout or Edit menus or put them back under the layout settings.
>>>
>>> Thanks,
>>>
>>> Calvin
>
>
> --
> --
> 
> Carlo A. Bertelli
>Charta servizi e sistemi per il territorio e la storia ambientale srl
>   Dipendenze del palazzo Doria,
>   vc. alla Chiesa della Maddalena 9/2 16124  Genova (Italy)
>   tel./fax +39(0)10 2475439  +39 0108566195  mobile:+39 393 1590711
>e-mail: berte...@chartasrl.eu  http://www.chartasrl.eu
> --
> 
>
>
>
>
> ___
> 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

Re: [Qgis-user] clipping csv data to shapefile

2018-03-28 Thread Frank Broniewski
Hello,

I am a little bit late to the discussion, but this type of question is a 
typical use case for the “Select by Location” processing tool. In your case you 
would import your CSV data and the countries into a QGIS project. After that 
you can run the “Select by Location” processing tool and define criteria like 
intersects, within et al. Run the tool and it will select all points from your 
CSV that will match the criteria, you can then go ahead and save the selection 
as a new layer (Shapefile, CSV or something else). Make sure to tick the “Save 
only selected features” though.

HTH
Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

Von: Qgis-user <qgis-user-boun...@lists.osgeo.org> Im Auftrag von Steve Research
Gesendet: Dienstag, 27. März 2018 15:05
An: Alexandre Neto <senhor.n...@gmail.com>
Cc: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] clipping csv data to shapefile

Thanks Alexandre,

I had done this for the Europe layer but did it again for both the data and 
coast layers.

Removed all other layers and ran the clip again.

That has worked perfectly.

Cheers
Steve

On 27 Mar 2018, at 08:10, Alexandre Neto 
<senhor.n...@gmail.com<mailto:senhor.n...@gmail.com>> wrote:
In that case, your Europe shape was not well projected. Setting the CRS at the 
project is not enough.

Set it back to the original CRS, then use the save as tool on the layer to 
reproject to WGS84.

If you are in QGIS 3, I think you no longer need to use the same CRS on both 
layers.

A ter, 27/03/2018, 07:54, Steve Research 
<stevesteveresea...@gmail.com<mailto:stevesteveresea...@gmail.com>> escreveu:
Thanks Alexandre,

I have tried that but it is odd. I have plant world distribution data (lat and 
long) in a csv which I have as a WGS84 vector layer. I have a European shp file 
which is converted to WGS84. If I clip the world data layer to the Europe shp I 
end up with a new, but blank, vector layer.

Cheers
Steve



On 26 Mar 2018, at 22:25, Alexandre Neto 
<senhor.n...@gmail.com<mailto:senhor.n...@gmail.com>> wrote:
Hi Steve,

In the processing toolbox search for clip.

set the csv as the input layer, and the world ?countries? shapefile as clip 
layer.

Hope it helps

Steve Research 
<stevesteveresea...@gmail.com<mailto:stevesteveresea...@gmail.com>> escreveu no 
dia segunda, 26/03/2018 às 21:31:
I have some plants distribution data (from GBIF) in CSV format.

I added this to my world map shapefile (Layer\Add Layer\Add Delimited Text 
layer).

Some records are outside of the coastline.

How can I clip this CSV data to the coastline?

Regards,
Steve
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
--
Alexandre Neto
-
@AlexNetoGeo
http://sigsemgrilhetas.wordpress.com
http://gisunchained.wordpress.com
--
Alexandre Neto
-
@AlexNetoGeo
http://sigsemgrilhetas.wordpress.com
http://gisunchained.wordpress.com
___
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 custom python function with zero or more args

2018-03-09 Thread Frank Broniewski
Hi Benjamin,

I don't have a recipe for no argument, but you can pass an empty string as a 
workaround:

@qgsfunction(args="auto", group="Custom")
def myfunc(value, feature, parent):
if not value:
value = "Wert"
    return value

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

-Ursprüngliche Nachricht-
Von: Qgis-user <qgis-user-boun...@lists.osgeo.org> Im Auftrag von 
fuenfer-koenigstein.benjam...@swm.de
Gesendet: Freitag, 9. März 2018 09:19
An: Qgis-user@lists.osgeo.org
Betreff: [Qgis-user] QGIS custom python function with zero or more args

Hi all,

I would like to write a custom python function for QGIS 2.18 that takes zero or 
one argument. The reason is that in most cases I can use a default value in the 
function, in some cases I would like to enter the value as argument. For python 
I know that you can prefix args in functions to make them optional, e.g. def 
func(*arg). For QGIS functions this will not work because there always have to 
be the args feature and parent in last two positions. Has anyone experience 
with QGIS functions that take zero or more arguments? Thanks for any help!

Regards
Benjamin
___
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] Lineaments

2018-03-08 Thread Frank Broniewski
Hi,

I believe, both SAGA GIS and GRASS GIS have tools to calculate geological 
features from DTMs. You can use those two GIS from the toolbox, if they are 
installed on your PC (Osgeo4W that is on Windows and through your typical Linux 
package manager)

HTH
Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

Von: Qgis-user <qgis-user-boun...@lists.osgeo.org> Im Auftrag von jean Lukusa
Gesendet: Donnerstag, 8. März 2018 15:35
An: Qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Lineaments

Hello all.
I would like to know how can I generate automatic lineaments with QGIS 3 using 
SRTM ,landsat and Optical Aster.
This way can help me to detect faults and folds ?
___
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] Looking for Spatial Query plugin on QGIS 3.1.0-Master

2018-02-27 Thread Frank Broniewski
Moin Colm,

you’re looking for buffer and such functions? They’ve moved to the processing 
toolbox (CTRL+ALT+T): select by location is there as well …

HTH
Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

Von: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von Colm 
O'Neill
Gesendet: Dienstag, 27. Februar 2018 19:00
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Looking for Spatial Query plugin on QGIS 3.1.0-Master


Hello all,

New to qgis, really enjoying the learning curve. I'm looking for the functions 
that seem to be built in to the Spatial Query plugin, however I can't seem to 
find the plugin through the built in plugin manager or on plugins.qgis.org

To be clear, I'm looking for the plugin refereed to in this documentation 
https://docs.qgis.org/2.8/en/docs/user_manual/plugins/plugins_spatial_query.html
 or even at point 22 of 
http://www.qgistutorials.com/en/docs/performing_spatial_queries.html

Has it been renamed or integrated into the core?

Thanks!

All the best,

Colm O'Neill
--

Colm O'Neill | BE +32478479350 | NL +31685263286 | 
m...@colm.be<mailto:m...@colm.be>
colm.be | osp.kitchen
___
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] Data defined @symbol_color outlines

2018-02-22 Thread Frank Broniewski
Hi Ross,

I noticed something similar when using project colors and referencing them 
through the function `project_color(name)`. This works fine in the map but 
neither the layer manager nor the legend in the print composer reflect the true 
color. I only know this to be true for 2.18, didn't test it with 2.99 yet.

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

Von: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von 
McDonaldR
Gesendet: Mittwoch, 21. Februar 2018 16:32
An: qgis-user@lists.osgeo.org; qgis-develo...@lists.osgeo.org
Betreff: [Qgis-user] Data defined @symbol_color outlines

Hi List

This issue (https://issues.qgis.org/issues/15132) refers to using the 
@symbol_color function to make the outline of graduated/categorised features 
the same colour as the fill.  There is a fix by Nyall from over a year ago but 
I wonder if there has been a regression?

I am using both the latest 2.99 master and 2.18.16 64-bit versions on Windows 7 
and if I render a polygon layer using the categorised or graduated renderer and 
set the outline colour using @symbol_color then the legend doesn't reflect the 
style shown on the map. The features are rendered correctly (I like using 
"darker(@symbol_color,150)") on the map canvas and the print composer but the 
legend in the table of contents and on the composer layout show the default 
outline colour.

The only way I can get the legend to update is to set the outline/stroke colour 
to the fill colour for each category and then make it slightly darker - not too 
much of a hassle if there are a few but a hassle if there are more than that.

Can anyone else confirm this?  And has there been a regression or was the fix 
for something slightly different?

Thanks in advance

Ross

Ross McDonald | GIS Data Coordinator | Angus Council, People, IT | Angus House, 
Orchardbank Business Park, Sylvie Way, Forfar DD8 1AT | t: 01307 476419


This message is strictly confidential. If you have received this in error, 
please inform the sender and remove it from your system. If received in error 
you may not copy, print, forward or use it or any attachment in any way. This 
message is not capable of creating a legal contract or a binding representation 
and does not represent the views of Angus Council. Emails may be monitored for 
security and network management reasons. Messages containing inappropriate 
content may be intercepted. Angus Council does not accept any liability for any 
harm that may be caused to the recipient system or data on it by this message 
or any attachment.
___
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] Problems to create new columns through two tables

2018-02-20 Thread Frank Broniewski
Hey  Daniel,

did you have a look at virtual layers [1]? They allow you to reference as many 
layers and tables as you wish and perform some SQL on them to create a new 
layer. In addition, if you define a proper relation [2] between your layers you 
can use the aggregate_* [3] functions in the field calculator to get to your 
desired result.

HTH Frank

[1] 
https://docs.qgis.org/2.18/en/docs/user_manual/working_with_vector/virtual_layers.html
[2] 
https://docs.qgis.org/2.18/en/docs/user_manual/working_with_vector/attribute_table.html?highlight=relation#creating-one-or-many-to-many-relations
[3] 
https://docs.qgis.org/2.18/en/docs/user_manual/working_with_vector/expression.html?highlight=aggregates#aggregates-functions

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

Von: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von Daniel 
Alejandro Montecinos Rubilar
Gesendet: Dienstag, 20. Februar 2018 18:27
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Problems to create new columns through two tables

Hello

I want to create a new column in QGIS from a cross-information of two tables. 
The first table are communes of my country and the second are some electrical 
faults plotted as points. Then I want to create a new column in table 1, by 
means of the following logic:

NewColumn = Sum (column_value2_ of_table2)

I have been using MapInfo for a long time and recently I occupy QGIS with the 
intention of changing and I was getting convinced until I could not perform 
this operation, which in MapInfo was very easy with SQL queries.

I already appreciate your comments

Sincerely,

Daniel Montecinos Rubilar
Electrical Civil Engineer
___
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] Hachure construction

2014-04-23 Thread Frank Broniewski
Hey,

thank you for your answer. I will definitely try that out, Although I am
not yet convinced that automatic hachure generation is doable in QGIS.
I've seen more possibilites for doing this in a Autocad extension/
plugin (Quvadis).

Frank

Am 2014-04-21 02:58, schrieb maning sambale:
 Another approach would be from a DEM, generate slope and aspect.  Add
 the values to a point vector layer and follow Imhof's rules.
 
 I made a similar experiment many moons ago.  Check the last two photos
 in this post:
 http://epsg4253.wordpress.com/2012/05/14/alternatives-to-relief-shading/
 
 The arrows depicts the direction of the surface (aspect) while the
 line thickness depicts the steepness of the gradient (slope).
 
 On Fri, Apr 18, 2014 at 3:36 PM, Frank Broniewski b...@metrico.lu wrote:
 Hi,

 I'd like to construct manually some hachures in order to show the
 terrain form, like in ye olde maps
 (http://en.wikipedia.org/wiki/Hachure_map)

 I am working with contours that I have available. Using the snapping
 options I can already draw lines between two contour lines just fine,
 but a hachure line is usually drawn in the direction of the steepest
 slope. So it would be useful to have a length indicator, just like with
 the measurement tool, when digitizing lines. Because the shortest
 distance between two points would represent the steepest slope and that
 is what I want to know.

 So how can I get the current line length while digitizing? Is there some
 plugin? I am also not afraid of using Python to achieve this, but I've
 never done any QGIS modding so far ...

 Many thanks,

 Frank


 --
 Frank BRONIEWSKI

 METRICO s.à r.l.
 géomètres
 technologies d'information géographique
 rue des Romains 36
 L-5433 NIEDERDONVEN

 tél.: +352 26 74 94 - 28
 fax.: +352 26 74 94 99
 http://www.metrico.lu
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 
 


-- 
Frank BRONIEWSKI

METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN

tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Hachure construction

2014-04-18 Thread Frank Broniewski
Hi,

I'd like to construct manually some hachures in order to show the
terrain form, like in ye olde maps
(http://en.wikipedia.org/wiki/Hachure_map)

I am working with contours that I have available. Using the snapping
options I can already draw lines between two contour lines just fine,
but a hachure line is usually drawn in the direction of the steepest
slope. So it would be useful to have a length indicator, just like with
the measurement tool, when digitizing lines. Because the shortest
distance between two points would represent the steepest slope and that
is what I want to know.

So how can I get the current line length while digitizing? Is there some
plugin? I am also not afraid of using Python to achieve this, but I've
never done any QGIS modding so far ...

Many thanks,

Frank


-- 
Frank BRONIEWSKI

METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN

tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] PostGIS views

2014-03-06 Thread Frank Broniewski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

I've a problem adding a PostGIS view to my QGIS project. I have a
osm2pgsql database and a view which selects all the buildings from the
planet_osm_polygon table.

The first thing I notice is that there are two entries for the
buildings view, one with a Polygon spatial type, and one where I have
to select the spatial type. OK, the same is true for the
planet_osm_polygon table, so I think this is OK.

Now I mark the Polygon-building view and click on the Add button and I
get an error with the db credentials and the below message:
... is an invalid layer and cannot be loaded. Please check the message
log for details. So here's the output from that - not that there is
more insight to be gained ;-) :
dbname='lux' host=XYZ port=5432 user='XYZ' password='YZX' key='osm_id'
srid=3857 type=POLYGON table=public.buildings (way) sql= is an
invalid layer - not loaded

Adding a view from the planet_osm_point works though. And also if I
add the planet_osm_polygon table with a corresponding filter set. Any
ideas what could be wrong with the view?

Software versions are:
QGIS 2.2
PostGIS 2.1
PostgreSQL 9.3
Ubuntu 12.04 (Ubuntugis-unstable PPA)

View def:
CREATE OR REPLACE VIEW buildings AS
 SELECT planet_osm_polygon.osm_id,
planet_osm_polygon.name,
planet_osm_polygon.way
   FROM planet_osm_polygon
  WHERE planet_osm_polygon.tags ? 'building'::text;
- -- 
Frank BRONIEWSKI

METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN

tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTGHEKAAoJEHopqW0d1cQVKhgH/3+cOlsHRMKkSZjITDLHCO9z
cpHh6+EYXSJOgJ7T5koZmWwCmDGlY4dXDBsDffViP+Wm6zsXkBiyr73i9xdImfoX
/PyxrcuQrFC+/qaf9m0RdHH4NCW/oFRhnFjeQqcuVznnOb6tO/z9vmLhvS3s91sK
7d+NIDt/J4MV/3UTRdK5DHjuaEyimYiYi799HLTNTxuCXaee9XJqmEj3XgoneY1O
LZ/iEXQBNuR/Ilz1erXN4dSp2M8Wbhyv/pSCUTFVOufsmDU6wmyQ87ZMUu6lFiDQ
YzEAiQ2sU3Xyjiyh5fLNuS+SuVqucBhabKahBOwQPVLDJyha3A9/UI5n1YTLTVY=
=y0p7
-END PGP SIGNATURE-
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] PostGIS views

2014-03-06 Thread Frank Broniewski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

D'oh, I hate it when that happens. I didn't see the PostGIS error tab
in the message log. And there QGIS complains about osm_id being not
unique. I altered my view like seen below to create a unique ID:

CREATE OR REPLACE VIEW buildings AS
 SELECT row_number() OVER () AS id,
planet_osm_polygon.name,
planet_osm_polygon.way
   FROM planet_osm_polygon
  WHERE planet_osm_polygon.tags ? 'building'::text;

Frank

Am 2014-03-06 13:59, schrieb Frank Broniewski:
 Hi all,
 
 I've a problem adding a PostGIS view to my QGIS project. I have a 
 osm2pgsql database and a view which selects all the buildings from
 the planet_osm_polygon table.
 
 The first thing I notice is that there are two entries for the 
 buildings view, one with a Polygon spatial type, and one where I
 have to select the spatial type. OK, the same is true for the 
 planet_osm_polygon table, so I think this is OK.
 
 Now I mark the Polygon-building view and click on the Add button
 and I get an error with the db credentials and the below message: 
 ... is an invalid layer and cannot be loaded. Please check the
 message log for details. So here's the output from that - not that
 there is more insight to be gained ;-) : dbname='lux' host=XYZ
 port=5432 user='XYZ' password='YZX' key='osm_id' srid=3857
 type=POLYGON table=public.buildings (way) sql= is an invalid
 layer - not loaded
 
 Adding a view from the planet_osm_point works though. And also if
 I add the planet_osm_polygon table with a corresponding filter set.
 Any ideas what could be wrong with the view?
 
 Software versions are: QGIS 2.2 PostGIS 2.1 PostgreSQL 9.3 Ubuntu
 12.04 (Ubuntugis-unstable PPA)
 
 View def: CREATE OR REPLACE VIEW buildings AS SELECT
 planet_osm_polygon.osm_id, planet_osm_polygon.name, 
 planet_osm_polygon.way FROM planet_osm_polygon WHERE
 planet_osm_polygon.tags ? 'building'::text; 
 ___ Qgis-user mailing
 list Qgis-user@lists.osgeo.org 
 http://lists.osgeo.org/mailman/listinfo/qgis-user
 

- -- 
Frank BRONIEWSKI

METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN

tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTGHXzAAoJEHopqW0d1cQVzHMH/3rQbSUhdUkduVqr8Ku3b9pu
4CwCpdl7k3lBPB9g5DpP9/RbfMnx+VaJ8AoI3Pww4l0qPgmSqYWG/gWMAlzR/zze
JcirSvkJzc48Cipjqb2D4VqYb0WaHEEFZZrDy4ZHbrHdnTx/wdptViqrYsYF/FnN
Er/dkY5LvKVim8hOaXxeEVzhJBwWO4KGmyKwYDisomzEr2jXv+LV0dMAPBfE/QR6
FjwcunPJKN8GJ5U2NSwn09+lZSU8ngmqM4Gv0DrHOc0rMRQ0yw1KtsLTMqkiPioa
rjeOzXwm5M6ScDPIarUH6DW3h7ALrTT1e7aw5f2TRc2RtembwUzs2puMqTyMZYc=
=pXSf
-END PGP SIGNATURE-
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS crash on Vista when removing a GRASS Layer

2010-02-02 Thread Frank Broniewski

Hello List,

I have a problem with Quantum GIS. Whenever I try to remove a GRASS  
GIS layer from the layer menu QGIS crashes. I use the OSGEO4W LTS  
version (Kore). This does not happen under Windows XP. I tried already  
the compatibility options without success. Any ideas what might be  
causing this?


Here's the crash info from Vista:
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: qgis.exe
  Application Version:  0.0.0.0
  Application Timestamp:4a6d671b
  Fault Module Name:ntdll.dll
  Fault Module Version: 6.0.6002.18005
  Fault Module Timestamp:   49e03821
  Exception Code:   c005
  Exception Offset: 00067580
  OS Version:   6.0.6002.2.2.0.256.6
  Locale ID:1033
  Additional Information 1: 9d93
  Additional Information 2: 1d1c0ea15163d469c01cc4a2d368dcf2
  Additional Information 3: 1bb5
  Additional Information 4: b31a5754082d3e6a7373418c3400cf43


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user