Re: [Qgis-user] qgis python error

2024-03-25 Thread Etienne Trimaille via QGIS-User
> I assume that is the latest stable version? 3.22.4

No, the last number (.4 in your case), is the number of bugfix versions. No
new features are added in these bugfix versions.
The stable release on 3.22 is 3.22.16
https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule
And 3.22 and 3.28 are already not maintained.


Le jeu. 21 mars 2024 à 19:36, Don Harter  a écrit :

> OK Thank you.
>
> I am using a stable version from :
>
> deb https://ppa.launchpadcontent.net/ubuntugis/ppa/ubuntu/ jammy main
>
> I assume that is the latest stable version?
>
> For linux software in general I try to stick with stable versions.
> Oftentimes people make changes and submit them without being fully tested.
> Then I spend more time filling out bug reports instead of working on my
> applications.
>
> I upgraded the plugin and the error message did not appear.  I will see if
> that holds on later runs of qgis.
> On 3/21/24 1:47 PM, Etienne Trimaille wrote:
>
> Hi,
>
> You have installed the plugin "Value tool", you can remove it.
> You should report this issue to the plugin author, there is a bug tracker
> : https://github.com/jorgealmerio/valuetool
>
> You are using QGIS 3.22.4, you should try to upgrade as well, it's old.
>
> Le jeu. 21 mars 2024 à 17:49, Don Harter via QGIS-User <
> qgis-user@lists.osgeo.org> a écrit :
>
>> I am getting a python error now.  Does anyone know why I am getting this
>> now when earlier I wasn't?
>>
>> An error has occurred while executing Python code:
>> ValueError: Unknown format code 'f' for object of type 'str'
>>
>> Traceback (most recent call last):
>>   File 
>> "/home/drh/.local/share/QGIS/QGIS3/profiles/default/python/plugins/valuetool/valuewidget.py",
>>  line 478, in printValue
>> self.labelStatus.setText(self.tr('Coordinate:') + 
>> strFmt.format(position.x(), position.y(),bandvalue))
>> ValueError: Unknown format code 'f' for object of type 'str'
>>
>> Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] QGIS
>> version: 3.22.4-Białowieża Białowieża, exported
>> ___
>> 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 python error

2024-03-21 Thread Etienne Trimaille via QGIS-User
Hi,

You have installed the plugin "Value tool", you can remove it.
You should report this issue to the plugin author, there is a bug tracker :
https://github.com/jorgealmerio/valuetool

You are using QGIS 3.22.4, you should try to upgrade as well, it's old.

Le jeu. 21 mars 2024 à 17:49, Don Harter via QGIS-User <
qgis-user@lists.osgeo.org> a écrit :

> I am getting a python error now.  Does anyone know why I am getting this
> now when earlier I wasn't?
>
> An error has occurred while executing Python code:
> ValueError: Unknown format code 'f' for object of type 'str'
>
> Traceback (most recent call last):
>   File 
> "/home/drh/.local/share/QGIS/QGIS3/profiles/default/python/plugins/valuetool/valuewidget.py",
>  line 478, in printValue
> self.labelStatus.setText(self.tr('Coordinate:') + 
> strFmt.format(position.x(), position.y(),bandvalue))
> ValueError: Unknown format code 'f' for object of type 'str'
>
> Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] QGIS
> version: 3.22.4-Białowieża Białowieża, exported
>
> ___
> 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 Server - GetLegendGraphics request confusion

2023-10-17 Thread Etienne Trimaille via QGIS-User
Hi,
The documentation was updated a few months ago to follow the OGC
specifications.
https://docs.qgis.org/3.28/en/docs/server_manual/services/wms.html#getlegendgraphics
versus
https://docs.qgis.org/testing/en/docs/server_manual/services/wms.html#getlegendgraphic


Le mar. 17 oct. 2023 à 09:27, Alessandro Pasotti via QGIS-User <
qgis-user@lists.osgeo.org> a écrit :

> Hi,
>
> QGIS server actually accepts both requests:
>
> else if ( QSTR_COMPARE( req, "GetLegendGraphic" ) || QSTR_COMPARE( req,
> "GetLegendGraphics" ) )
>
>
> On Mon, Oct 16, 2023 at 6:20 PM Jakob Miksch via QGIS-User <
> qgis-user@lists.osgeo.org> wrote:
>
>> Hi everyone!
>>
>>
>>
>> I have a QGIS Server running. Requesting the legend of a layer works fine
>> as explained in the docs: 3.2. Web Map Service (WMS) — QGIS
>> Documentation documentation
>> 
>>
>> However, I noticed that in QGIS Server the request must be called
>> “GetLegendGraphics” with a trailing “s”, whereas GeoServer (GetLegendGraphic
>> — GeoServer 2.25.x User Manual
>> ),
>> MapServer (WMS Server — MapServer 8.0.1 documentation
>> ),
>> deegree and OpenLayers (OpenLayers v8.1.0 API - Class: ImageWMS
>> )
>> expect the request to be called “GetLegendGraphic” WITHOUT the trailing
>> “s”.
>>
>>
>>
>> Is there a reason why QGIS Server provides legends differently compared
>> to other established geospatial software?
>>
>> Best regards,
>>
>> Jakob
>>
>>
>>
>>
>> Jakob Miksch
>> Consultant
>>
>> +49 170 9036956
>> siticom.online
>>
>>
>>
>> siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal •
>> Deutschland
>> Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
>> Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
>> Umsatzsteuer-ID Nr.: DE 197 925 589
>>
>>
>> ___
>> 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
>>
>
>
> --
> Alessandro Pasotti
> QCooperative:  www.qcooperative.net
> ItOpen:   www.itopen.it
> ___
> 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 server : problem with qgis server logs

2023-05-03 Thread Etienne Trimaille via QGIS-User
Hi,

It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated, you
can see it in the documentation
https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
QGIS_SERVER_LOG_STDERR will send logs to stderr.



Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
qgis-user@lists.osgeo.org> a écrit :

> Laurent,
> Please, try to create the file 'qgislog.log' manually first
> If doesn't works I don't know why
>
> Il mer 3 mag 2023, 18:18 celati Laurent  ha
> scritto:
>
>> Hello,
>> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
>> /var/log/qgis/qgislog.log
>> Then i set chown www-data /var/log/qgis
>> and sudo chmod 775 /var/log/qgis
>>
>> Then a2ensite XXX.XXX.fr
>> Then i have reload apache systemctl reload apache2
>>
>> But still no qgislog file has been created.
>>
>> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
>> écrit :
>>
>>> in additions
>>> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
>>> sudo chmod 775 /var/log/qgis/qgislog.log
>>>
>>> Saluti
>>>
>>> Antonio
>>>
>>>
>>> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
>>> antovisc...@gmail.com> ha scritto:
>>>
 hi Laurent,
 I set
 FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
 also,
 and works fine for me

 Saluti

 Antonio


 Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
 qgis-user@lists.osgeo.org> ha scritto:

> Good afternoon,
> I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap
> log deals with a problem regarding my qgis server logs.
> In the /etc/apache2/sites-available i have created a file XXX.XXX.conf
> with ths part of content  :
>
>   # QGIS log
>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>
> And i have create the directories that will store the QGIS Server logs
>
> mkdir -p /var/log/qgis/
> chown www-data:www-data /var/log/qgis
>
> But, there are never no log file created within this folder. Do you
> know why ? Do i have to restart qgis server ?
> I know how to restart apache (systemctl restart apache2).
> But how to restart qgis server ?
>
> Thanks a lot for your guidances.
>
>
>
>
> ___
> 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] Determine version of QGIS Server

2022-08-08 Thread Etienne Trimaille via Qgis-user
Le jeu. 4 août 2022 à 11:34, Inka Tauber via Qgis-user <
qgis-user@lists.osgeo.org> a écrit :

> Has there some configuration to be done to put QGIS Server info into
> http-header?
>

In the ticket, it was using Nginx.
But anyway, you don't need that anymore, indeed the "qgis_mapserv.fcgi
--version" is way better now ;-)

Regards


>
>
> Regards,
>
> Inka
>
>
>
>
>
> *Von:* Stefan Giese (WhereGroup) [mailto:stefan.gi...@wheregroup.com]
> *Gesendet:* Donnerstag, 4. August 2022 09:37
> *An:* qgis-user@lists.osgeo.org; (LUNG GUE, 120-1) Tauber, I. <
> inka.tau...@lung.mv-regierung.de>
> *Betreff:* Re: [Qgis-user] Determine version of QGIS Server
>
>
>
> see
> https://github.com/3liz/lizmap-web-client/issues/1346#issuecomment-547895968
>
> Am 04.08.2022 um 09:32 schrieb Inka Tauber via Qgis-user:
>
> Hello,
>
>
>
> how can the version of QGIS Server (qgis_mapserv.fcgi) be determined?
>
>
>
> Thanks,
>
> Inka
>
>
>
>
>
>
>
>
> Allgemeine Datenschutzinformation:
> Der telefonische, schriftliche oder elektronische Kontakt mit dem
> Ministerium für Klimaschutz, Landwirtschaft, ländliche Räume und Umwelt
> Mecklenburg-Vorpommern ist mit der Speicherung und Verarbeitung der von
> Ihnen ggf. mitgeteilten persönlichen Daten verbunden. Rechtsgrundlage
> hierfür ist Art. 6 Absatz 1 Buchstabe e der Datenschutzgrundverordnung
> (DSGVO) der Europäischen Union in Verbindung mit § 4 Abs. 1
> Landesdatenschutzgesetz (DSG M-V).
> Weitere Informationen erhalten Sie hier:
> https://www.regierung-mv.de/Datenschutz
>
> ___
>
> 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
>
> --
>
> Mit freundlichen Grüßen
>
> Stefan Giese
>
> Projektleiter/Consultant
>
> -
>
> Aufwind durch Wissen!
>
> Jetzt neu: Web-Seminare und Online-Schulungen
>
> bei der www.foss-academy.com
>
> -
>
> WhereGroup GmbH
>
> Schwimmbadstr. 2
>
> 79100 Freiburg
>
> Germany
>
>
>
> Tel.: +49 (0)761 / 519 102 - 61
>
> Fax: +49 (0)761 / 519 102 - 11
>
>
>
> stefan.gi...@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
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Change properties of multiple layer at once

2022-04-04 Thread Etienne Trimaille via Qgis-user
You could use the LayerBoard plugin for that. It's available in the plugin
manager. Possible to change different kinds of properties at once for many
layers.
But AFAIK, this plugin needs some help ;-)

Le ven. 1 avr. 2022 à 12:48, L.W. via Qgis-user 
a écrit :

> as far as I unterstood right, if You use one style, you are able to set in
> expression editor something like
>
> if layer = "layer_id_1", '#99ff',
>
> if layer = "layer_id_2", '#9900ff00,
>
> The code above show the way the right syntax is in help panel.
>
> This works for nearly every option in the style dock, save this style.
>
> Then go to Layer-dock and click with right mouse on the layer you edited
> right now, point to "copy style > style".
>
> If your layers are organized in a group (I recommend for this step), than
> you can say "paste style" to this group and the style is on every layer ...
> it's magic :-)
>
>
> Am 01.04.2022 um 12:04 schrieb Roland Spielhofer via Qgis-user:
>
> Hi,
> thanks for the tip!
> The layers are all of the same type (content is the same, they represent
> different days).
> I wanted to preserve the different fill colors and just change the opacity
> and pen stroke.
> Therefore copy stlye does not work.
>
> Anyway, I adjusted the layers manually meanwhile - was just curious if
> there is an elegant way to do this and save time next time.
>
> Regards,
> Roland
>
>
> *Gesendet:* Freitag, 01. April 2022 um 10:37 Uhr
> *Von:* "L.W. via Qgis-user" 
> 
> *An:* "Raymond Nijssen"  ,
> qgis-user@lists.osgeo.org
> *Betreff:* Re: [Qgis-user] Change properties of multiple layer at once
> May you change the style itself and set the same style to all layers.
>
> You can change i.e. color of lines by "type of line" / attribute values
> so you can use one style for multiple layers.
>
>
> Am 01.04.2022 um 10:13 schrieb Raymond Nijssen via Qgis-user:
> > Don't know how to do that using the GUI, but for the opacity you can
> > use these 2 lines of python in the QGIS python console. It will set
> > all your selected layers to 50% opacity.
> >
> >
> > for layer in iface.layerTreeView().selectedLayers():
> > layer.setOpacity(.5)
> >
> >
> > I think the stroke style is harder to change because all these layers
> > can have different symbologies.
> >
> > Hope it helps!
> > Raymond
> >
> >
> > On 01-04-2022 09:47, Roland Spielhofer via Qgis-user wrote:
> >> Hi,
> >> I have a set of similar layers where I would like to change certain
> >> properties for all layers in the same way.
> >> * change opacity to 50%
> >> * change stroke style to "no pen"
> >> When I select multiple layers and open properties -> symbology, I
> >> just change the styling of the first layer, not for all.
> >> Is there a way to do this?
> >> Regards,
> >> Roland
> >>
> >> ___
> >> Qgis-user mailing list
> >> Qgis-user@lists.osgeo.org
> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing listqgis-u...@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] How to make diagonals

2022-02-03 Thread Etienne Trimaille
Maybe "oriented_bbox" to get first a proper rectangle ?
https://docs.qgis.org/testing/en/docs/user_manual/expressions/functions_list.html#oriented-bbox

But then, you might have some tiny leftover. It depends if you care or not.

Otherwise, you need to use the angle at each points.

I thought there is the longest line possible within a polygon, but I can't
find it. I did it manually a few years ago.

Le jeu. 3 févr. 2022 à 23:29, Dario C  a écrit :

> Hi,
> I have several rectangles (almost squared) and I'd like to represent
> their diagonals.
>
> I started to do with geometry generator with:
> make_line(point_n($geometry,1),point_n($geometry,4))
> and
> make_line(point_n($geometry,2),point_n($geometry,5))
>
> Unfortunately, even if they look rectangular, actually they have more then
> 4 points and, moreover, points do not always have the same order.
>
> here below an example:
> [image: image.png]
>
> Is there any expression in order to pick the two longest segments
> connecting all the points of the geometry?
>
>
> 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
>
___
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: Export Metadata from postgis tables to shp?

2021-12-02 Thread Etienne Trimaille
Hi,

>From the PgMetadata plugin, you can export a single metadata sheet to PDF,
HTML or DCAT. You can also export your full catalog (the last button in the
dock, then you can "save as" your new layer).
It's possible to improve the PgMetadata plugin by saving the layer metadata
when the user is clicking "save as" on a layer which is stored in
postgresql.
PgMetadata is a "small" PG schema, so it's easy to extract information we
need.

How to retrieve data from PgMetadata in another application :
https://docs.3liz.org/qgis-pgmetadata-plugin/user-guide/advanced/

The database schema :
https://docs.3liz.org/qgis-pgmetadata-plugin/database/relationships.html

Le mer. 1 déc. 2021 à 21:28, celati Laurent  a
écrit :

> Thanks a lot for your really usefull reply.
> I just make a try and it works well.
> Now, i have to make a test/check with metadata produced with the plugin
> pgmetadata.
>
>
> Le mer. 1 déc. 2021 à 16:52, DelazJ  a écrit :
>
>> Hi Laurent,
>>
>> Starting from 3.20, you may want to test
>> https://qgis.org/en/site/forusers/visualchangelog320/index.html#feature-persist-layer-metadata-in-vector-file-exports
>> if I understand your need.
>>
>> Regards,
>> Harrissou
>>
>> Le mer. 1 déc. 2021 à 16:16, celati Laurent  a
>> écrit :
>>
>>> Good afternoon,
>>>
>>> With qgis, the description of a data seems to be available for filling
>>> and consultation via the 'information' and 'metadata' tabs in "LAYER
>>> PROPERTIES". There seem to be bridges between postgis and qgis. For
>>> example, when I fill the "Comment" field of a table with pgadmin, the
>>> content of the description is visible with qgis in the "Information" menu
>>> in the Comment line and in the Abstract line. The description is also
>>> visible in the "Metadata" menu in the Summary section / Identification tab.
>>>
>>> For some postgis tables, I have also described the data thanks to the
>>> usefull Pgmetadata plugin.
>>>
>>> My need would be to be able to export these different data descriptions
>>> during exports from these postgis tables toward files in shp format for
>>> example. That these descriptions be kept during the export. Is it possible?
>>> If yes, which tools / resources would exist?
>>>
>>> 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
>
___
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.20 Crash

2021-10-06 Thread Etienne Trimaille
Hi Raymond and others,

Le mer. 6 oct. 2021 à 16:33, Raymond Nijssen  a
écrit :

>
> But profiles don't get broken by the users, they get broken by (bugs in)
> the software.
>

A plugin is very often the culprit, which is installed by the user :)
(plugin or custom python expressions, custom Python script, processing
script)
When I have some crashes, I just disable new plugins that I have recently
downloaded and check. It's sometimes enough.
So enable your previous plugins step by step.
Plugin source code is stored in the profile itself, but the profile is not
really "corrupted". There are just some Python code inside. By removing it,
it's alright.
___
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] loadNamedStyle

2021-09-14 Thread Etienne Trimaille
Quick answer,

You might want to have a look to
https://qgis.org/api/classQgsProcessingUtils.html#aa1c2360e52d2ed8100faf02a35125b17
I'm not sure about writing a processing script with this syntax, I'm still
using the class way. But you might want to set your style in a post
processor QgsProcessingLayerPostProcessorInterface?

Or why not using the builtin processing script to load a style ? Just
pre-fill values and call this algorithm ?
___
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] PyGQIS output a layer? v3.16

2021-08-25 Thread Etienne Trimaille
A QgsProcessingOutputVectorLayer will understand you are returning a
QgsVectorLayer.

Maybe I'm wrong, but it works well :
https://github.com/3liz/QuickOSM/blob/master/QuickOSM/quick_osm_processing/advanced/open_osm_file.py#L130..L158

Le mer. 25 août 2021 à 11:59, Richard Duivenvoorde  a
écrit :

> On 8/25/21 8:43 AM, Etienne Trimaille wrote:
> > You can output a QgsVectorLayer :
> https://qgis.org/api/classQgsProcessingOutputVectorLayer.html <
> https://qgis.org/api/classQgsProcessingOutputVectorLayer.html>
> > The sink is not required and you would avoid a loop to insert all
> features.
> >
> > I think you should also return sink ID or layer ID, not the object
> itself.
>
> Hi Etienne,
>
> But the code of Andrew would receive features from a ArcGis feature
> server.
> How would you instruct QgsProcessingOutputVectorLayer to use that provider?
> QgsProcessing::SourceType shows (to me) only general types?
>
> Or is there some way to use it as a wrapper around a real layer?
>
> Regards,
>
> Richard Duivenvoorde
>
___
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] processAlgorithm vs processFeature?

2021-08-25 Thread Etienne Trimaille
Indeed, if you can, you should use a QgsProcessingFeatureBasedAlgorithm
algorithm. It will make some shortcuts for you and the code is shorter
because you will only have a single feature to process.

Have a look to existing source code :
https://github.com/qgis/QGIS/search?q=QgsProcessingFeatureBasedAlgorithm

Le mar. 24 août 2021 à 04:55, Ujaval Gandhi  a
écrit :

> If your algorithm works on each feature independently, processFeature() is
> preferred. If you need to work with layers, you need to use
> processAlgorithm(). I demonstrate this with an example at
> https://spatialthoughts.com/2019/04/05/geodesic-buffers-in-qgis/
>
> On Mon, 23 Aug 2021 at 10:25 PM, C Hamilton 
> wrote:
>
>> I discovered that it looks like there is another way to deal with
>> processing algorithms. Rather than use processAlgorithm it looks like I can
>> use prepareAlgorithm & processFeature. I have always used processAlgorithm
>> and then iterated through the features.
>>
>> Is processFeature just as quick as using processAlgorithm (iterating
>> through the features)? Is one method preferred over the other? I think for
>> some algorithms using processFeature would make the code look cleaner. Are
>> there any gotchas in using the processFeature method?
>>
>> Thanks,
>>
>> Calvin
>> ___
>> 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
>>
> --
> [image: Logo] 
> Ujaval Gandhi
> Spatial Thoughts
> mobile: +91-8095684687
> email: uja...@spatialthoughts.com
> [image: LinkedIn icon]   [image:
> Twitter icon] 
>
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
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] PyGQIS output a layer? v3.16

2021-08-25 Thread Etienne Trimaille
You can output a QgsVectorLayer :
https://qgis.org/api/classQgsProcessingOutputVectorLayer.html
The sink is not required and you would avoid a loop to insert all features.

I think you should also return sink ID or layer ID, not the object itself.

Le mar. 24 août 2021 à 14:01, Richard Duivenvoorde  a
écrit :

> On 8/24/21 12:57 PM, Andrew Hughes wrote:
> > Hi All,
> >
> > I am trying to create a python script that takes a URL as input and
> creates/outputs an ArcGIS Feature Service Vector Layer (used for further
> processing downstream). However,  I believe I am doing something wrong with
> how I am trying to return the layer.
> >
> > The script in question can be found here:
> >
> >
> https://github.com/ahhughes/pyqgisorama/blob/main/CreateArcGISFeatureLayer.py#L132
> <
> https://github.com/ahhughes/pyqgisorama/blob/main/CreateArcGISFeatureLayer.py#L132
> >
>
> Hi Andrew,
>
> I'm not so experienced either in writing algorithms, but if I am right,
> you are not supposed to return a layer, but you need to return a 'sink' as
> it is possible that it will be used as input for another algorithm.
> So I used:
> self.parameterAsSink
>
> Note there is also:
> self.parameterAsFileOutput
>
> Did some googling with 'pyqgis layer sink output' and came up with this
> (and the rest of your GIST):
>
>
> def processAlgorithm(self, parameters, context, feedback):
> """
> Here is where the processing itself takes place.
> """
>
> url = parameters[self.INPUT].strip()
>
> #out = self.parameterAsFileOutput(parameters, self.OUTPUT, context)
>
> lyr = QgsVectorLayer("crs='EPSG:3857' url='"+url+"'", "RT",
> "arcgisfeatureserver")
>
> feedback.pushInfo("Layer has been created: "+str(lyr))
> feedback.pushInfo("Is the layer valid?: "+str(lyr.isValid()))
>
> (sink, dest_id) = self.parameterAsSink(
> parameters,
> self.OUTPUT,
> context,
> lyr.fields(),
> lyr.wkbType(),
> lyr.sourceCrs()
> )
>
> for f in lyr.getFeatures():
> sink.addFeature(f)
>
> return {self.OUTPUT: sink}
>
>
> Which at least for me loads some lines :-)
>
> I hope that others can maybe more context about the differences between
> parameterAsSink and parameterAsFileOutput.
> If not, this would be maybe more a question for the dev list?
>
> Regards,
>
> Richard Duivenvoorde
>
> ___
> 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 3.10.2 A Coruña

2021-08-25 Thread Etienne Trimaille
You should first upgrade your version, 3.10.2 is very old and 3.10.X is not
maintained anymore. Maybe this bug has already been fixed ?

Le mer. 25 août 2021 à 08:29, Miquel Pujol Garcia
 a écrit :

> *Hi Qgisers *
>
> My version of QGIS 3.10.2 A Coruña doesn't save the opacity of elements.
> If they are
> 100% opacity, any problem. But if they are 70%, 50%, the opacity goes to
> 0% directly after
> saving the properties.
>
> Does someone know why happen this?
>
> Thanks forward !!!
> Regards from Barcelona !!!
> *--*
> *Miquel Pujol Garcia*
> ___
> 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] R: QGIS Server, Lizmap / OpenLayer, QGIS2Web

2021-07-13 Thread Etienne Trimaille
> LizMap (and others like QGIS Cloud, G3W-Suite, etc.) is the easy way as
you don't have to care about hosting and web viewers. But you should
have a look at the demos first to be sure that it fits for your needs,
also it's quite flexible in configuration.

Sorry, I'm just joining late.

Lizmap is a opensource solution that you can install on your own server.
So you need to care about hosting, upgrades etc.
The source code is on GitHub : https://github.com/3liz/lizmap-web-client/

Same for QGIS Cloud which is running QGIS Web Client, also available on
Github.
https://github.com/qgis/qwc2

Same for G3W-Suite : https://github.com/g3w-suite

But indeed, each of these products have also a paid hosting plan provided
by a private company if you don't want to care about hosting.


Le mer. 30 juin 2021 à 17:12, Gerald Kogler  a écrit :

> On 30/6/21 16:42, Riccardo D'Alvito wrote:
> > Thank you for your reply, it really helped me to understand some of the
> > steps but on the other hand, it triggered more questions.
> >
> >  1. So QGIS2Web doesn't need QGIS Server for online map publishing? Just
> > take the files that are generated by exporting the project (into
> > QGIS), upload them to any server and they are visible?
>
> You are right, just take the generated files and upload them. The server
> only has to serve them, everything else happens client side in the browser.
>
> >  2. Does QGIS Server contain already the QGIS software libraries or does
> > it use map viewers such as OpenLayers? For the visualization of a
> > map using QGIS Server, then, one needs a map viewer like OpenLayers
> > or Leaflet in which to insert the various scripts?
>
> QGIS Server offers OGC services like WMS and WFS to serve your tiles
> through HTTP but it doesn't include a map viewer, you have to code your
> own one.
>
> >  3. Is LizMap then an easier way to not go through map viewer like
> > OpenLayers?
>
> LizMap (and others like QGIS Cloud, G3W-Suite, etc.) is the easy way as
> you don't have to care about hosting and web viewers. But you should
> have a look at the demos first to be sure that it fits for your needs,
> also it's quite flexible in configuration.
>
> So probably, if you need a really personalized viewer with custom
> functionality, you'll have to code your own map viewer. If you need
> standard functionality you should be fine with LizMap. And if qgis2web
> offers enough functionality, just go with it.
>
>
> >
> >
> > Thank you very much for your patience.
> >
> > Riccardo
> >
> > 
> > *Da:* Qgis-user  per conto di Gerald
> > Kogler 
> > *Inviato:* mercoledì 30 giugno 2021 16:02
> > *A:* qgis-user@lists.osgeo.org 
> > *Oggetto:* Re: [Qgis-user] QGIS Server, Lizmap / OpenLayer, QGIS2Web
> >
> > Hi,
> >
> > qgis2web exports a static version of your QGIS project to web using
> > OpenLayers or Leaflet as webmap technologies. It gives you some options
> > on export, furthermore you could take the exported code and customize it
> > furthermore. It produces pure HTML+JS+CSS so you could host it on any
> > server.
> >
> > One limitation is that all your data is exported as GeoJSON, so it's
> > only suitable for limited amount of data as loading of big files could
> > be quite slow on web.
> >
> > QGIS Server needs a more powerful server infrastructure as you have to
> > install QGIS Server package with all it's dependencies. It has the big
> > advantage that it serves QGIS projects with all it's symbology exactly
> > as they are shown on desktop. But you have to code your own web viewer,
> > for example using OpenLayers.
> >
> > LizMap uses QGIS Server but offers you the hosting so you don't have to
> > care about server setup and maintenance and the web map viewer based on
> > OpenLayers.
> >
> > Hope that helps
> > Gerald
> >
> >
> >
> > On 30/6/21 15:10, Riccardo D'Alvito wrote:
> >> Morning.
> >>
> >> I would like to get information on the differences that there are
> >> between QGIS Server and LizMap and between OpenLayers and QGIS2Web. I
> >> can't quite figure out where the operation of one ends and the operation
> >> of the other begins.
> >> I know I'm getting a little confused so I need some keys to enlighten
> me.
> >>
> >> Thank you.
> >>
> >> ___
> >> 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-psc] New community voting members

2021-01-25 Thread Etienne Trimaille
Good morning,

Thank you to all community voting members and PSC.
Very grateful and great pleasure to be there !

Regards,

Le mar. 26 janv. 2021 à 12:16, Peter Petrik <
peter.pet...@lutraconsulting.co.uk> a écrit :

> Dear Community Members and PSC,
>
> I am honored to be a voting member and will try my best to continue to
> help the QGIS Project.
>
> Cheers,
> Peter
>
>
> On Mon, Jan 25, 2021 at 8:14 PM Marco Bernasocchi  wrote:
>
>> Dear Community,
>>
>> it is with great pleasure that I would like to officially congratulate
>> our new community voting members for their election.
>>
>> David signer
>> Enrico Ferreguti
>> Etienne Trimaille
>> Pedro Venâncio
>> Peter Petrik
>> Richard Duivenvoorde
>>
>> I would also like to extend them a heartfelt thank you for all the work
>> they have put into QGIS over the years.
>> I'd also like to extend my gratitude to all voters and everybody who gave
>> feedback on how to make the voting process even better.
>>
>> I will add all new members to the community voting list and you'll be
>> able starting voting immediately.
>>
>> It is a great pleasure having you all on board!
>>
>> Cheers Marco
>>
>> --
>> Marco Bernasocchi
>>
>> QGIS.org Chair
>> OPENGIS.ch CEO
>> http://berna.io
>> ___
>> Qgis-psc mailing list
>> qgis-...@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/qgis-psc
>>
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
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] How to use QgsProcessingLayerPostProcessorInterface?

2021-01-20 Thread Etienne Trimaille
Can you try that?

class Renamer(QgsProcessingLayerPostProcessorInterface):instance =
Nonedef postProcessLayer(self, layer, context, feedback):
layer.setName('DiffLayer')@staticmethoddef create() ->
'Renamer':Renamer.instance = Renamer()return
Renamer.instance


In your processAlgorithm method() :


context.layerToLoadOnCompletionDetails(
data[layer].id()).setPostProcessor(
Renamer.create())


Le jeu. 21 janv. 2021 à 03:14,  a écrit :

> I thought QgsProcessingLayerPostProcessorInterface might be a solution to
> my earlier question about renaming the output layer of Processing script.
> I derive a class and overload postProcessLayer:
>
> class Renamer (QgsProcessingLayerPostProcessorInterface):
> def postProcessLayer(self, layer, context, feedback):
> layer.setName('DiffLayer')
> print('Renaming layer in post-processor')
>
> Near the end of my processAlgorithm implementation I add:
>
> details = context.LayerDetails(dest_id,context.project())
> details.setPostProcessor(Renamer())
>
> where dest_id is the value returned by parameterAsSink
>
> The postProcessLayer method does not appear to run (no output is produced
> by the print statement) and the layer is added, but the name is unchanged.
> I'm not sure if I'm setting up the post process wrong, or not fetching the
> right LayerDetails object.
>
> Any pointer to how this should be used or an example of its use would be
> appreciated.
>
> Thanks
> David
>
> PS - I also tried the postProcessAlgorithm of the QgsProcessingAlgorithm
> class, but the layer hasn't been added yet when the method is called. I
> wonder if I'll have the same problem with the layer post processor?
> PPS I tried postProcess, but it doesn't appear to get called as far as I
> can tell. Not sure why.
>
> def postProcess(self, context, feedback):
> print('Number of layers = ' +
> str(len(QgsProject.instance().mapLayers(
> print("PostProcess completed")
> feedback.pushInfo(1)  # This line should generate an error since
> pushInfo expects a string, but no error is thrown
> return {self.OUTPUT: self.dest_id}
>
> ___
> 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] A few hours in the Training Manual

2020-12-28 Thread Etienne Trimaille
Thanks for your feedback.
The documentation team is doing their best to maintain this manual up to
date. But it's not easy.

You should create separate ticket in the github repository :
https://github.com/qgis/QGIS-Documentation
It will not be lost like emails.

Feel free to edit manually on github if you find some typo for instance.

For the "routes.shp", if you need to create a new layer (not adding an
existing file), you are indeed correct, but ALWAYS use the "..." button,
because it's a filepath, not filename. It will solve your problem.
Choose a directory where you have write permission.

Le mar. 29 déc. 2020 à 08:17, GARY PALMER  a écrit :

> Here is a log of a few mostly happy hours spent in the training manual
> located at https://docs.qgis.org/3.16/en/docs/training_manual/index.html.
> Comments would be welcome. Gary. OS 10.15.7 (Catalina) on iMac Pro. QGIS
> 3.16.0-Hannover.
>
> 4.1.2 *Click on the Add New Map button*. There is no such button on the
> “Swellendam” window.
>
> 5.1.2 1. *Click on the Select Features button in the Attributes Toolbar.
> 2. Click on the feature that was just created and the remaining buttons
> will become enabled.* The remaining buttons do not become enabled.
>
> 5.1.5. *If the roads layer is not in your map, then add it from the
> GeoPackage file **training-data.gpkg** included in the **exercise_data**
> folder of the training data you downloaded.* At this point, I remember
> adding a portion of a GeoPackage file, but I don’t remember how. I am
> unsuccessful in using the menu Layer -> Create layer and Open Data Source.
> When I try to open the GeoPackage file I see a message that the file is
> read only. I try Menu Layer —> Add Layer —> Add Vector Layer —> … file
> dialog —> roads. This works. I feel a hint would be useful to avoid some
> flailing around. Just a note that we are adding an existing layer from the
> GeoPackage rather than creating a new layer would be helpful. Now I see the
> layer training_data_roads in the Layers box. It is checked and selected, it
> is the top layer, but no roads appear on the map. Now I will have to search
> back to where a vector layer was first imported from the GeoPackage. A
> numerical reference (2.2.3) and link would be useful here. I delete the
> “training_data_roads” layer and try again. I use the Open Data Source
> Manager and click on the GeoPackage tab.  I add the roads, which appear on
> the map. Success, but painful and time-consuming success.
>
> I still need the routes.shp file, so I try Menu —> Create Layer —> New
> ShapeFile layer. I select Geometry Type line and add the new field “name”
> in the dialog box. Error message: Layer creation failed: Failed to create
> file routes.shp: Read-only file system. Without the shapefile, the vectors
> for the path and track can not be added.
> ___
> 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] Deploy maps/data to clients - web map solutions or other?

2020-11-10 Thread Etienne Trimaille
There are a few web GIS clients for QGIS.
Some are designed to be "static" like :
- QGIS2Web
- Mappia Publisher
- ...
They generate a HTML output.

And some are a complete web gis client with a server app to install
(usually with QGIS-Server):
- Lizmap: https://demo.lizmap.com/lizmap/
- GisQuick http://gisquick.org/
- QGIS Web Client https://github.com/qgis/QGIS-Web-Client
- G3W-Suite https://github.com/g3w-suite
- and others



Le lun. 9 nov. 2020 à 21:13, Tony Shepherd (FarmMaps NZ) 
a écrit :

> Hi All
>
>
>
> I’m after some advice/discussion around how others are sharing data/maps
> with clients.
>
>
>
> I mainly work in the agricultural/forestry area.  So I create maps, some
> clients have very large farms, so many maps cover the farm with all sorts
> of data from water schemes, health and safety hazards info, fenceline,
> contours, aerial photos etc etc.
>
>
>
> How are others deploying this data to clients other than traditional
> PDF/paper maps?
>
>
>
> It would be easy to install GQIS and do some training etc, but it’s a bit
> daunting for a non GIS user to use QGIS for simple zoom, info tool, measure
> line etc.  If it’s not easy then non-tech people just won’t use it.
>
>
>
> I see there are a few Web GIS exporting add-ins for QGIS available.  Does
> anybody have any particular success stories in sharing data with clients
> using any of these solutions or perhaps other similar solutions available
> elsewhere?
>
>
>
> As I see it the ability to turn on and off layers and labels, measure an
> area or distance, zoom in and out, view aerial photography, print WYSIWIG
> would be a minimum.
>
>
>
> Something open source is preferable so it’s as little a cost to the client
> as possible but an easy way to deliver and use and add value to the data
> that they have paid for.
>
>
>
> Cheers
>
> Tony
>
>
>
> *Tony Shepherd*  *|*  GeoSpatial / Mapping Manager
>
> Ph 027 435 6193  *|*  E t...@farmmaps.nz
>
> FarmMaps NZ, 3 Kerwood Place, Gore 9740
>
>
>
> [image: FM_logo1_small (Custom)]
>
>
>
>
>
> 
> 
>
>
> ___
> 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] Saving project to geopackage

2020-10-29 Thread Etienne Trimaille
Le jeu. 29 oct. 2020 à 13:42, Jorge Gustavo Rocha  a
écrit :

> Hi António (hi Luigi),
>
> Before saving the project, you must create a connection (in the browser
> panel) to the geopackage.
>
It is not needed.
You can click on the 3 dots next to the connection list and choose any
existing GPKG.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] PyQGIS: wipe all xyz connections

2020-09-23 Thread Etienne Trimaille
You need to clarify if you want to remove all layers based on XYZ which are
loaded in the current project
Or if you want to remove all XYZ connections which are in the Browser Panel?

It's two different things.

Le mer. 23 sept. 2020 à 17:39, 1520 gis <
juliermeopensourcedevelo...@gmail.com> a écrit :

> Dear all,
>
> I am writing a PyQT5 QGIS Plugin to wipe out all xyz connections available
> in QGS projects.
>
> I wrote the code below, but I am not achieving my goal and I did not
> understand the structure of xyz connections.
>
> def removeAllConnectionsXYZ(self):
> s = QSettings()
> xyz = 'qgis/connections-xyz'
> groupsXYZ = s.childGroups()
>
> for group in groupsXYZ:
> s.beginGroup(xyz)
> s.remove("")
> s.endGroup()
> self.dlg.wipeAllConnectionsXyz.clicked.connect(
> self.removeAllConnectionsXYZ)
>
>
>
>
> # Any comment will be very appreciated.
>
> #Thank you for your time in advance
>
> #Julierme
> ___
> 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] open street map data in QGIS 3.12

2020-07-01 Thread Etienne Trimaille
Hi,

Le lun. 29 juin 2020 à 20:45, Andre Ulrich  a
écrit :

> In the QuickOSM-window I can choose the key "building" - fine. But when it
> comes to the value, I can't choose "supermarket" - it's not even listed
> (and I can't type it too).
>

Indeed, there is auto completion when you type, but you can also type
whatever you want, nothing is forced using these text areas.

And if needed, you can click the "Show query" button and update it to fit
your needs (to change some values for instance).

Etienne


>
>
>
>
> --
> Andre Ulrich
> Email: andre.ulrich63...@gmail.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 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] Display recent projects at startup

2020-04-15 Thread Etienne Trimaille
Indeed, try to drag and drop :
https://gis.stackexchange.com/questions/342903/qgis-3-10-recent-projects-list-missing

Le mer. 15 avr. 2020 à 12:24, Olivier DÜRR  a
écrit :

> Hi Patrick,
> you have to search along the layers panel; this is because the news panel
> is in front of the project panel.
>
> *Olivier DÜRR*
> *Chargé d'études*
>
> *Système d'Information Géographique*
>
>
> *AGAPE |* agence d'urbanisme et de développement durable Lorraine Nord
> Visitez notre site Internet : www.agape-lorrainenord.eu
> Suivez-nous sur Facebook
>  et
> LinkedIn 
> Ligne directe : (+33) 03 55 26 00 14 | Tél : (+33) 03 55 26 00 10
> Espace Jean Monnet | Bâtiment Eurobase 2| F-54810 LONGLAVILLE
>
>
>
> [image: www.datagences.eu] 
>
>
>
> Le mer. 15 avr. 2020 à 04:38, Phil Wyatt  a écrit :
>
>> Hi Patrick - which version of QGIS? I think it’s the
>>
>> Settings, General, Options, Project files and "Open Project on launch"
>> set as "Welcome Page'
>>
>> Cheers - Phil
>>
>> -Original Message-
>> From: Qgis-user  On Behalf Of Patrick
>> Dunford
>> Sent: Wednesday, 15 April 2020 10:58 AM
>> To: qgis-user ML 
>> Subject: [Qgis-user] Display recent projects at startup
>>
>> Good day
>>
>> On one of my computers Qgis will display a graphical list of recently
>> opened projects when no project is currently open. On another computer it
>> won't display this list.
>>
>> How is it possible to get the software to display this list. I have
>> looked through menus and settings but haven't been able to discover how to
>> change this.
>>
>> 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
>>
>> ___
>> 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] QGIS Server and webmapping information

2020-04-10 Thread Etienne Trimaille
Thanks, I'll check it out. I haven't checked too much the WFS3 yet.

Le ven. 10 avr. 2020 à 15:14, Alessandro Pasotti  a
écrit :

> On Fri, Apr 10, 2020 at 3:05 PM Etienne Trimaille
>  wrote:
> >
> > Hi,
> >
> > qgis2web will generate a static website that you can easily move on a
> server somewhere, without the need to install QGIS Server.
> > The website will be generated from the plugin itself.
> >
> > If you install QGIS Server only, you will have only some OGC streams
> such as WMS, WFS etc. It's just to publish "data" on the internet. But you
> won't have the web viewer in an internet browser.
> > Then you need to code the web application using Leaflet or OpenLayers.
>
> That's not entirely correct anymore because WFS3 provides a very
> simple browsable website, see
>
> https://docs.qgis.org/3.10/en/docs/user_manual/working_with_ogc/server/services.html#wfs3-ogc-api-features
>
> You could easily override the default HTML templates to show your WMS
> layers too, no need to rebuild or compile anything.
>
> Cheers
>
>
>
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS Server and webmapping information

2020-04-10 Thread Etienne Trimaille
Hi,

qgis2web will generate a static website that you can easily move on a
server somewhere, without the need to install QGIS Server.
The website will be generated from the plugin itself.

If you install QGIS Server only, you will have only some OGC streams such
as WMS, WFS etc. It's just to publish "data" on the internet. But you won't
have the web viewer in an internet browser.
Then you need to code the web application using Leaflet or OpenLayers.

If you use QGIS Web Client, Lizmap or similar, the web application is
already there and will offer some widgets and some tools. It will try to
mimic the QGIS Desktop application with the layer tree, the print layouts,
dataviz etc.

I tried to make this schema :
https://docs.lizmap.com/next/en/introduction.html I hope it can help you.

There are a few QGIS web applications : QGIS Web Client, Lizmap, GisQuick,
Mappia

Le ven. 10 avr. 2020 à 14:04, Franko Naimarevic 
a écrit :

> Hello,
>
> I'm a final-year architecture student, and as part of my thesis, I'm
> researching on how to publish a map made in QGIS on the internet, in
> hopes of doing so later myself.
> I've heard that the qgis2web plugin was a great option, but I've also
> found that it was possible to do with QGIS Server. However, I haven't
> managed to find a lot of "theoretical" explanations about it, plus, I'm
> really not that familiar with this webmapping/GIS "world". So, I was
> hoping someone could clarify things for me, as completely as possible.
>
> I understand the main step is to install it on a server, obviously. But
> what are the other things that have to be done in order to publish an
> interactive QGIS map on the internet?
>
> For example, I'm wondering at what point are the widgets (for
> navigation, search bar, ...) defined to appear on the webpage?
>
> Also, QGIS Server and QGIS Web Client seem to work together ; what is
> their role in that relationship? Is it a necessity?
>
>
> Thanks in advance for your help,
>
> Franko
>
>
>
>
> ___
> 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] PyQGIS in Jupyter

2020-01-09 Thread Etienne Trimaille
Can you raise your question on the Github issue tracker? Thanks
It seems it's indeed generating the image from the QgsVectorLayer and then
asking matplotlib to display the image :(
As I said, it was a kind of proof of concept, my colleague did that part, I
hope he will answer you on github.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] PyQGIS in Jupyter

2020-01-09 Thread Etienne Trimaille
Hi,

One of my colleague in my company started a quick proof of concept using
Jupyter with QGIS.
I haven't tried it yet. It's available on github:
https://github.com/3liz/qgis-nbextension

I think it might be good for a PyQGIS training.

Feel free to provide feedbacks.

Le mer. 8 janv. 2020 à 16:42, Rizky Maulana Nugraha 
a écrit :

> Wow, I’m not aware of any usage like this. But it seems using Jupyter to
> use PyQGIS is an interesting approach!
> I can see many possibility in this.
> For example, it would be wonderful if we can ‘preview’ layers in Jupyter
> if we open a QGIS Project when we are currently doing analysis, but maybe
> that requires deep integration.
> But your approach here can possibly packaged in QGIS so the command
> executable to call Jupyter might be available when you install QGIS.
> Howeve, I don’t think including Jupyter itself in the package is a good
> idea.
>
> Thanks for sharing!
>
> Regards,
> --
> Rizky Maulana Nugraha
> Software Developer
> Kartoza
> lana.pc...@gmail.com
>
>
>
>
> On 8 Jan 2020, at 21.54, John Zastrow  wrote:
>
> Hi,
>
> Is something like this ceremony the current best approach for doing
> geodata data processing and  visualization in Jupyter Notebooks leveraging
> the capabilities QGIS? If not, what else do you recommend for both Windows
> and Linux?
> https://lerryws.xyz/posts/PyQGIS-in-Jupyter-Notebook
>
> I find Jupyter to be the most approachable place to explore Python code
> concepts - and then return to them later when I've forgotten what/why I
> did. I find the Python environment in QGIS itself to be less enjoyable.
>
> My goal would be to leave the work in Jupyter 50% of the time (reporting
> from there, or just use the products back in QGIS) but then the remaining
> time bring the code back to QGIS to run it there.
>
> Thanks!
> JZ
>
>
> ___
> 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] QGIS Server / GetPrint not rendering all the layers (XYZ Tiles for example)

2019-12-12 Thread Etienne Trimaille
Hi Arnaud,

It looks like a cache write issue.

QGIS_OPTIONS_PATH must be a directory, not a file path.
https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/config.html#qgis-options-path

I would add QGIS_OPTIONS_PATH too. And check that the profile is writable
for QGIS Server (www-data?). After the GetPrint request, I think you should
see the cache folder created.

This my config :

QGIS_CUSTOM_CONFIG_PATH=/home/etienne/dev/qgis/server_home/profile
QGIS_OPTIONS_PATH=/home/etienne/dev/qgis/server_home
QGIS_PLUGINPATH=/home/etienne/dev/qgis/server_plugin

Can you check that?



Le ven. 13 déc. 2019 à 07:25, Arnaud Vandecasteele  a
écrit :

> 
> Distribution Ubuntu
> QGIS Server on server -> Version: 3.4.11+dfsg-2~bionic1
> QGIS Server on computer -> Version: 3.4.13+dfsg-3~bionic2
> 
>
> I have QGIS Server installed on my computer and on my server. The same
> project is used on both. This project is very simple and contains a SHP
> layer and a XYZ OpenStreetMap layer. When printing the map (GetPrint) on my
> computer all layers are correctly displayed.
> The same operation on the server displays only the SHP layer and not the
> XYZ layer.
>
> When the GetPrint request is made on the server, the following lines are
> added to the log file:
> ERROR: Opening of authentication db FAILED
> QSqlQuery::prepare: database not open
> WARNING: Auth db query exec() FAILED
>
> However, I have the impression that my configuration file is correctly
> configured:
>
> FcgidInitialEnv DISPLAY":99"
> FcgidInitialEnv QGIS_SERVER_LOG_LEVEL "0"
> FcgidInitialEnv QGIS_SERVER_LOG_STDERR "1"
> FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH "/home/qgis/qgisserverdb"
> FcgidInitialEnv QGIS_AUTH_PASSWORD_FILE
> "/home/qgis/qgisserverdb/qgis-auth.db"
> FcgidInitialEnv QGIS_PREFIX_PATH /usr
> FcgidInitialEnv QGIS_OPTIONS_PATH
> /data/owncloud-data/arnaud/files/GEOLAB/Transfert/webmapping-lizmap/QGIS3.ini
> 
> SetHandler fcgid-script
> FcgidWrapper /usr/lib/cgi-bin/qgis_mapserv.fcgi virtual
> Options +ExecCGI -MultiViews +FollowSymLinks
> Require all granted
> 
>
> ErrorLog ${APACHE_LOG_DIR}/map-error.log
> LogLevel warn
> CustomLog ${APACHE_LOG_DIR}/map-access.log combined
>
> And the permissions look good:
> ls -l /home/qgis/
> drwxr-xr-x 2 www-data www-data www-data 4096 Oct 25 08:46 cache
> drwxr-xr-xx 2 www-data www-data www-data 4096 Jun 20 07:32 qgisserverdb
>
> Do you have any idea what might cause this problem?
>
> Thank you in advance,
>
> Arnaud
> ___
> 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] Save a 3D animation?

2019-11-10 Thread Etienne Trimaille
It's possible, it was a QGIS 3.8 feature:
http://changelog.qgis.org/en/qgis/version/3.8/#export-all-frames-from-qgis-3d-animations-as-image

Le dim. 10 nov. 2019 à 16:38, Madry, Scott  a écrit :

> Hello all. I am experimenting with the new 3D View function, and want to
> save an animation that I have created to put it into a PowerPoint and
> website, but I do not see any option to save the animation. I am running
> 3.4.13 on a Mac High Sierra, 10.13.6. If this is not now possible, it seems
> to be an important next addition? The GRASS NViz has several additional
> useful functions that might be also considered for further development.
>
> Thank you all for the excellent efforts that you make on the behalf of all
> the QGIS users,
>
> Scott Madry
>
> Scott Madry, Ph.D.
> Research Associate Professor of Archaeology
> The University of North Carolina at Chapel Hill
>
> Tel 1-919-448-4493
> Email:mad...@email.unc.edu 
> https://scottmadry.web.unc.edu
> Skype:   scott madry
> ___
> 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] Table manager

2019-06-25 Thread Etienne Trimaille
Indeed Table Manager was already deprecated for some functions in QGIS 2
IIRC.

But it depends what you wanted to do with TableManager. If you simply
wanted to rename fields, you can go in the vector layer properties,
"fields" tab and rename columns there. No need to use the "refactor fields"
algorithms, which will regenerate a new layer.

Le sam. 22 juin 2019 à 22:36, carlos h  a écrit :

> Thank you!
>
> AC
>
> El sáb., 22 jun. 2019 a las 14:11, Bernd Vogelgesang (<
> bernd.vogelges...@gmx.de>) escribió:
>
>> Hello!! the plugin table manager did not locate it in QGIS 3.4, has it
>> been removed?
>>
>> Thank you
>>
>> CA
>>
>> Afaik, the Table Manager is dead since 3.0, and people are encouraged to
>> use the "Refactor fields" function in the Processing Toolbox.
>>
>> Cheers,
>>
>> Bernd
>>
>>
>>
>> ___
>> Qgis-user mailing listqgis-u...@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] unlocking toggle editing

2019-04-24 Thread Etienne Trimaille
It depends how you store geometries inside the CSV I guess. Geometries as
WKT in CSV are displayed and can be edited.


Le mer. 24 avr. 2019 à 10:27, Raymond Nijssen  a
écrit :

> Ah, tnx. But then I get a table only, not a layer with geometries. Or do
> I miss something else?
>
>
>
> On 24-04-19 10:23, Etienne Trimaille wrote:
> > Sorry, I open the CSV from the browser. Not using the "text delimiter",
> > then you can edit/add features to the CSV.
> >
> > Le mer. 24 avr. 2019 à 10:17, Richard Duivenvoorde  > <mailto:rdmaili...@duif.net>> a écrit :
> >
> > On 2019-04-24 10:03, Etienne Trimaille wrote:
> >  > Le mer. 24 avr. 2019 à 09:49, Raymond Nijssen
> > mailto:r.nijs...@terglobo.nl>>
> >  > a écrit :
> >  >
> >  >> Cause QGIS cannot edit a csv attribute table.
> >  >
> >  > FYI, you can edit a CSV attribute table ;-)
> >
> >
> > Are you sure?
> > If I open attached mini csv, I can load it in QGIS, but cannot edit
> > anything (not the attributes of current records), the little pencil
> to
> > edit cannot be activated with me (current master here).
> > Am I missing some info?
> >
> > Regards,
> >
> > Richard Duivenvoorde
> >
>
> ___
> 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] unlocking toggle editing

2019-04-24 Thread Etienne Trimaille
Sorry, I open the CSV from the browser. Not using the "text delimiter",
then you can edit/add features to the CSV.

Le mer. 24 avr. 2019 à 10:17, Richard Duivenvoorde  a
écrit :

> On 2019-04-24 10:03, Etienne Trimaille wrote:
> > Le mer. 24 avr. 2019 à 09:49, Raymond Nijssen 
> > a écrit :
> >
> >> Cause QGIS cannot edit a csv attribute table.
> >
> > FYI, you can edit a CSV attribute table ;-)
>
>
> Are you sure?
> If I open attached mini csv, I can load it in QGIS, but cannot edit
> anything (not the attributes of current records), the little pencil to
> edit cannot be activated with me (current master here).
> Am I missing some info?
>
> Regards,
>
> Richard Duivenvoorde
___
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] unlocking toggle editing

2019-04-24 Thread Etienne Trimaille
Le mer. 24 avr. 2019 à 09:49, Raymond Nijssen  a
écrit :

> Cause QGIS cannot edit a csv attribute table.
>

FYI, you can edit a CSV attribute table ;-)
___
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] QGIS3: where is the Table Manager?

2019-04-05 Thread Etienne Trimaille
You need to use the native "refactor fields" algorithm in the processing
toolbox.

Le ven. 5 avr. 2019 à 11:49, Elstermann, Mike 
a écrit :

> Hello everyone,
>
> in QGIS 2.x there was the Plugin Table Manager, e.g. for rearranging table
> columns. I can't find this plugin under QGIS3.x anymore (experimental and
> obsolete plugins are switched on). Or is anything else doing this?
>
> Best regards
> mikeE., the #geoObserver.
> ___
> 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] how to add a network folder to qgis3 browser panel

2019-02-25 Thread Etienne Trimaille
See ticket: https://issues.qgis.org/issues/16742

On Linux, I made a symlink from the network drive to one folder in my home
directory. It's perfect.
I wonder if you can do the same on Windows with a shortcut?

Le lun. 25 févr. 2019 à 17:16, Richard Duivenvoorde  a
écrit :

> On 25/02/2019 09.18, Groene Bij wrote:
> > Hi,
> >
> > Using qgis 3.4.5 on Win10, how do I add a network drive or network
> > folder to the browser-panel? It doesn’t show my network folders by
> > default and I can’t find any option to add specific folders.
> >
> > I keep most of my data on a NAS but there is no way to connect to these
> > folders from the browser-panel.
>
> What if you first assign a Drive letter/character? to it?
> Does it show up then?
>
> Regards,
>
> Richard Duivenvoorde
> ___
> 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] Temporary osm Layer

2019-02-21 Thread Etienne Trimaille
Do you use the "save as" function when you right click on a layer?
Please use the "browse" (or the 3 dots) to setup your path.



Le jeu. 21 févr. 2019 à 14:21, Hartge, Christof  a
écrit :

> So here ist my question.
>
>
> I downloaded some boundaries (adminitraive) of my Home-Town with QuickOSM.
>
>
> this worked finely and I got a temporary layers of points, lines and
> polygons.
>
>
> Then I wanted to make the layer permanenent.
>
>
> But I always got the message: (OGR-Fehler:
> sqlite3_open(boundary_administrative_Bad Wildungen.sqlite) failed: unable
> to open database file).
>
>
> So how do I convert the temporary OSM layer correctly?
>
>
> Greetings, Christof.
>
>
>
>
>
>
> *--- *
>
> *Pfarramt Alt-Wildungen *Pfarrer Christof Hartge
>
> Schäfergasse 1, 34537 Bad Wildungen
> pfarramt.altwildun...@ekkw.de
> Telefon 05621 3934
>
>
> ___
> 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] How to get a point's coordinate for GPS?

2019-01-25 Thread Etienne Trimaille
I will just add 2 tips to Raymond's answer.

* In the field calculator, you can create a "virtual" field, so the content
is updated everytime you move a point, or you create a new one.
* With these expressions, you will get decimal values. Since QGIS 3.4, you
can have DMS or DM values (convenient for GPS)
to_dms(x(transform( $geometry, 'EPSG:2444', 'EPSG:4326'))),'x', 3)

Le ven. 25 janv. 2019 à 07:25, Maria Shinoto  a écrit :

> Thanks Raymond,
> great to have an answer already this evening. I will check it out tomorrow
> and give feedback,
> Maria
>
> > Am 2019-01-25 um 20:16 schrieb Raymond Nijssen :
> >
> > In qgis3 it should work like this:
> >
> > On 25-01-19 11:49, Maria Shinoto wrote:
> >> Hi,
> >> I have been watching YouTube and reading tutorials the whole afternoon,
> but I do not get this simple task done:
> >> I have a map with several layers in EPSG:2444. Now I create another
> vector layer with points, which represents points that I have to go myself
> and check for several features. I will go there with my Garmin Etrex 10 GPS.
> >> So, I would like to
> >> - add the coordinates of the certain points into the attribute table to
> print out the table later.
> >> - create a file with the coordinates in order to import it into the GPS
> device and walk along all points.
> >> My question:
> >> 1. How do I get readable (GPS) coordinates into the attribute table
> (automatically, with field calculator or so)?
> >
> > You can use the field calculator on your attribute table with the
> following expressions:
> >
> > lon
> > x(transform( $geometry, 'EPSG:2444', 'EPSG:4326'))
> >
> > lat
> > y(transform( $geometry, 'EPSG:2444', 'EPSG:4326'))
> >
> >
> >> 2. Can I export a GPX file or so from these coordinates to import into
> a Garmin device (if so, how?)
> >
> > Right click your layer and export in GPX format. You might need to
> uncheck your lat and lon field to prevent getting an error.
> >
> > Good luck!
> >
> >> It seems so basic, but I do not succeed.
> >> Best,
> >> Maria
> >> ___
> >> Qgis-user mailing list
> >> Qgis-user@lists.osgeo.org
> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] writing vector data for QGIS input from a python script using osgeo ogr

2019-01-21 Thread Etienne Trimaille
QGIS is using OGR in the background to read vector data. So every format
supported by OGR is fine for QGIS. You can write geojson, geopackage,
sqlite, shapefile, it's fine for OGR API(write) and QGIS Desktop (read).
But are you sure you want to use the OGR API to write your file? IMHO, QGIS
API is easier.

Le lun. 21 janv. 2019 à 23:49, Nicolas Cadieux 
a écrit :

> QGIS can read wkt. This could help.
> https://en.m.wikipedia.org/wiki/Well-known_text
> Nicolas
>
> Le 21 janv. 2019 à 20:26, Lee Eddington  a
> écrit :
>
> I’d like to write vector line data in lat/lon coordinates to a file that
> QGIS can read and display.  I have the osgeo ogr module, but can’t see to
> find the right documentation on how to use it for this simple task.
>
> Thanks,
> Lee
>
> ___
> 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] [QGIS-Developer] Advanced digitising coordinate entry for a single point

2019-01-16 Thread Etienne Trimaille
With the vertex tool enabled, right click on a vertex and then you can
enter X and Y.


Le mer. 16 janv. 2019 à 14:25, Tim Sutton  a écrit :

> Hi
>
> In QGIS 3.x we have the nice integration with the advanced digitising
> panel for lines and polygons. Do we have any capability to capture a point
> by entering coordinates? In 2.x we had the numerical vertex editor plugin
> but that isn’t available in 3.x yet.
>
> Regards
>
> Tim
>
>
> —
>
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Ex Project chair:* QGIS.org
>
> Visit http://kartoza.com to find out about open source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux
> *IRC:* timlinux on #qgis at freenode.net
>
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
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] QuickOSM not downloading data

2018-10-12 Thread Etienne Trimaille
Issue created: https://issues.qgis.org/issues/20098

Le ven. 12 oct. 2018 à 10:34, matteo  a écrit :

> Hi Etienne,
>
> thanks for the clarifications.
>
> Please let me know if I can help to fix this issue, QuickOSM is a must :)
>
> Cheers
>
> Matteo
>
___
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] QuickOSM not downloading data

2018-10-12 Thread Etienne Trimaille
As a temporary workaround, after you executed your query, go in your
temporary folder (/tmp on linux) and open manually the latest OSM file
provided.

Le ven. 12 oct. 2018 à 07:52, Etienne Trimaille 
a écrit :

> Hi Matteo,
>
> I noticed the issue too.
>
> With QGIS 3.2, no problem, QuickOSM is working well.
> With QGIS 3.3, not working since 1 week. But QuickOSM is not failling in
> its processing, no python error. The plugin raises a warning if no OSM
> object are found, but this is not the case, no warnings. So it means that
> the plugin could download and parse some features. But at the end of the
> process, layers are empty. The same plugin version is working on 3.2 and on
> master a few weeks ago.
>
> Le ven. 12 oct. 2018 à 03:38, matteo  a écrit :
>
>> Hi all,
>>
>> I'm noticing that the awesome QuickOSM plugin is not downloading data
>> anymore.
>>
>> I just have a XYZ OSM tile loaded (CRS 3857) and the latest QuickOSM
>> release for QGIS 3.3 (same thing happens with QGIS 3.2).
>>
>> I tried different queries (natural -> peak, in an area where a lot of
>> peaks are shown on OSM map, etc).
>>
>> Some other user is experiencing the same problem?
>>
>> Thanks and cheers
>>
>> Matteo
>> ___
>> 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] QuickOSM not downloading data

2018-10-12 Thread Etienne Trimaille
Hi Matteo,

I noticed the issue too.

With QGIS 3.2, no problem, QuickOSM is working well.
With QGIS 3.3, not working since 1 week. But QuickOSM is not failling in
its processing, no python error. The plugin raises a warning if no OSM
object are found, but this is not the case, no warnings. So it means that
the plugin could download and parse some features. But at the end of the
process, layers are empty. The same plugin version is working on 3.2 and on
master a few weeks ago.

Le ven. 12 oct. 2018 à 03:38, matteo  a écrit :

> Hi all,
>
> I'm noticing that the awesome QuickOSM plugin is not downloading data
> anymore.
>
> I just have a XYZ OSM tile loaded (CRS 3857) and the latest QuickOSM
> release for QGIS 3.3 (same thing happens with QGIS 3.2).
>
> I tried different queries (natural -> peak, in an area where a lot of
> peaks are shown on OSM map, etc).
>
> Some other user is experiencing the same problem?
>
> Thanks and cheers
>
> Matteo
> ___
> 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] Changes to the QuickMapServices plugin

2018-09-18 Thread Etienne Trimaille
In QuickMapServices settings, go to the last tab and click "Get
Contributors pack". You will get much more layers available.

Le mar. 18 sept. 2018 à 18:39, leo jhaveri  a
écrit :

> Hi,
>
> I have recently reinstalled QGIS 2.18.23 on my new laptop and also
> installed the layer plugin QuickMapServices which seems to have changed a
> bit. Now there are much fewer options for map types including advanced ones
> like water body maps. Does anyone know where what has gone missing and
> where I might be able to find these layers. Possibly in another plugin? I
> already have OpenLayers which I don't really prefer.
>
> Thanks,
> Leo
> ___
> 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] Plugin ArrayPlus in conflit with QGIS 3.3

2018-09-17 Thread Etienne Trimaille
Hi,

I think you shouldn't mark it as deprecated until all functions are in QGIS
core.
Indeed, https://github.com/qgis/QGIS/pull/7645 won't be merged until 3.6,
the feature freeze is ON since friday for 3.4.

If I were you, I would still release the plugin with 3.0 minimum verison
and add something like "if Qgis.QGIS_VERSION_INT
 <
30300: register foo()" according to the current QGIS version.

About array_lambda, there is now array_foreach in QGIS core using an
expression.

Le lun. 17 sept. 2018 à 04:15, Jean-Baptiste Desbas  a
écrit :

> Hello,
>
> I am maintener of ArrayPlus plugin (
> https://plugins.qgis.org/plugins/arrayplus/)
> Since QGIS 3.3 includes "hstore_to_map" and "json_to_map" functions, the
> ArrayPlus plugin is in conflit with QGIS 3.3.  (
> https://framagit.org/jbdesbas/arrayPlus/issues/2 )
> Tough, I'm not sur that others functions (array_avg, array_min, etc..)
> will be in the QGIS core (https://github.com/qgis/QGIS/pull/7645).
>
> So what is the proper thing to do ?
> Release a new version of the plugin without "hstore_to_map"/"json_to_map"
> and with minimum QGIS version 3.3 ?
> Mark the plugin as deprecated ?
>
> 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
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS server and pg_service.conf

2018-09-06 Thread Etienne Trimaille
Either use PGSERVICEFILE or put it /etc/postgresql-common/pg_service.conf.
It's working well for me with QGIS 2.18.23.

Le jeu. 6 sept. 2018 à 07:55, Jürgen E. Fischer  a écrit :

> Hi Thomas,
>
> On Thu, 06. Sep 2018 at 13:44:40 +0200, Thomas Schüttenberg wrote:
> > Yes, I did that. The environment variable PGSYSCONFDIR is set also on the
> > server machine, it points to the same connection file and it works: QGIS
> on
> > the server pc can load layers with this service parameter.
>
> PGSERVICEFILE?
>
>
> Jürgen
>
> --
> Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
> Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
> Software Engineer   D-26506 Norden
> http://www.norbit.de
> QGIS release manager (PSC)  GermanyIRC: jef on FreeNode
> ___
> 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] "Official" QGIS Web Client?

2018-09-03 Thread Etienne Trimaille
Le lun. 3 sept. 2018 à 04:37, Andreas Neumann  a
écrit :

> In your case, I would evaluate QWC2 and Lizmap.
>

And also GISQuick : http://gisquick.org/


Greetings,
>
> Andreas
>
>
> On 2018-09-03 04:33, Christopher Gray wrote:
>
> I've found 3 QGIS related web clients:
>
> QGIS Web Client (QWC1)
> QGIS Web Client 2 (QWC2)
> Enhanced QGIS Web Client (EQWC)
>
> The QGIS website still references QWC1, while the QWC1 page says it is no
> longer maintained and suggests QWC2. The QWC2 page lists itself as a "demo
> application" which seems to suggest it is in-progress, but perhaps I am
> misinterpreting this. The EQWC page looks like a functioning option but
> suggests it is based on QWC1 which I understand was considered outdated...
>
> EQWC seems to perform nicely (based on their demo maps), and has user and
> guest authentication which seems very important for map access.
>
> Anyhow, which of these is considered the current "QGIS Web Client" / most
> appropriate to use at this time?
>
> [In my specific situation, this will be my first web-client setup. I'm
> preparing to setup a publicly available map for my town and a private map
> for my family farm in the town (That will require authentication to
> access).]
>
> Thank you, Chris
>
> ___
> 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] QGIS version 3.2.1 Released February 2018...

2018-08-06 Thread Etienne Trimaille
The documentation is released for each LTR versions. So there is only the
2.18 for now officially. But you can follow the "testing" one
https://www.qgis.org/en/docs/index.html#testing which is targeting 3.4.

Le mar. 31 juil. 2018 à 13:21, jameparm  a écrit :

> Hello;
> I am totally brand new to QGIS. The version(above) I downloaded
> this week and for the life of me, I can not find any Documentation on this
> version #. The Documentation for earlier releases does not apply to version
> 3.2.1  With that being said, when will the Documentation for QGIS 3.2.1 be
> available..? I have searched the Internet, Youtube, Qgis.org, Github,
> Reddit and several other sources and turned up nothing that applies to
> 3.2.1 I've read Users Manual yesterday and today I started to read to
> Training manual yet neither apply to 3.2.1  I am interested in getting
> started with QGIS, the basics and then learning from there but there are no
> more resources for me to turn to, please help...!
> James
>
>
> Sent with ProtonMail  Secure Email.
>
> ___
> 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] Road network download

2018-05-04 Thread Etienne Trimaille
For instance, you can use the field calculator to clean some values in the
'oneway' column.
You can also display an arrow on the line if the field oneway=yes

2018-05-04 15:22 GMT-04:00 Xristos Xristoou <saxr...@gmail.com>:

> Thank you!  How to do that ? Pre processing?
>
>
> Στις Παρ, 4 Μαΐ 2018 - 22:19 ο χρήστης Etienne Trimaille <
> etienne.trimai...@gmail.com> έγραψε:
>
>> Values are written in the link I put about -1, 1, yes. Often, with OSM
>> data, you need some pre-processing to clean all these values. It's based on
>> the direction of the line.
>>
>> Maybe shapefiles from geofabrik are cleaner?
>>
>> 2018-05-04 13:24 GMT-04:00 Xristos Xristoou <saxr...@gmail.com>:
>>
>>> I have oneway field with value -1,1,yes and no .but that values is in
>>> lines and i cant understand connections for oneways
>>>
>>>
>>> Στις Παρ, 4 Μαΐ 2018 - 20:19 ο χρήστης Etienne Trimaille <
>>> etienne.trimai...@gmail.com> έγραψε:
>>>
>>>> Sorry, I fail to understand. With OSM data in QGIS, you have the
>>>> 'oneway' column in the attribute table. If the field is empty, it means
>>>> either OSM doesn't have data for that road or by default it's not oneway.
>>>>
>>>> https://wiki.openstreetmap.org/wiki/Key:oneway oneway=no is the
>>>> default so OSM contributors let this field empty. (only to avoid a
>>>> confusion in some areas).
>>>>
>>>> 2018-05-04 13:10 GMT-04:00 Xristos Xristoou <saxr...@gmail.com>:
>>>>
>>>>> Hello
>>>>>
>>>>>
>>>>> I need to download road network to used for travel problems.
>>>>>
>>>>> In that road i need to have details for oneways connections.
>>>>>
>>>>>
>>>>> I try to use OSM download QGIS plugin to take the roads but that data
>>>>> dont have direction details for oneway road connections.
>>>>>
>>>>>
>>>>>
>>>>> Any idea ?
>>>>>
>>>>> Thank you
>>>>>
>>>>> ___
>>>>> 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] Road network download

2018-05-04 Thread Etienne Trimaille
Values are written in the link I put about -1, 1, yes. Often, with OSM
data, you need some pre-processing to clean all these values. It's based on
the direction of the line.

Maybe shapefiles from geofabrik are cleaner?

2018-05-04 13:24 GMT-04:00 Xristos Xristoou <saxr...@gmail.com>:

> I have oneway field with value -1,1,yes and no .but that values is in
> lines and i cant understand connections for oneways
>
>
> Στις Παρ, 4 Μαΐ 2018 - 20:19 ο χρήστης Etienne Trimaille <
> etienne.trimai...@gmail.com> έγραψε:
>
>> Sorry, I fail to understand. With OSM data in QGIS, you have the 'oneway'
>> column in the attribute table. If the field is empty, it means either OSM
>> doesn't have data for that road or by default it's not oneway.
>>
>> https://wiki.openstreetmap.org/wiki/Key:oneway oneway=no is the default
>> so OSM contributors let this field empty. (only to avoid a confusion in
>> some areas).
>>
>> 2018-05-04 13:10 GMT-04:00 Xristos Xristoou <saxr...@gmail.com>:
>>
>>> Hello
>>>
>>>
>>> I need to download road network to used for travel problems.
>>>
>>> In that road i need to have details for oneways connections.
>>>
>>>
>>> I try to use OSM download QGIS plugin to take the roads but that data
>>> dont have direction details for oneway road connections.
>>>
>>>
>>>
>>> Any idea ?
>>>
>>> Thank you
>>>
>>> ___
>>> 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] Road network download

2018-05-04 Thread Etienne Trimaille
Sorry, I fail to understand. With OSM data in QGIS, you have the 'oneway'
column in the attribute table. If the field is empty, it means either OSM
doesn't have data for that road or by default it's not oneway.

https://wiki.openstreetmap.org/wiki/Key:oneway oneway=no is the default so
OSM contributors let this field empty. (only to avoid a confusion in some
areas).

2018-05-04 13:10 GMT-04:00 Xristos Xristoou :

> Hello
>
>
> I need to download road network to used for travel problems.
>
> In that road i need to have details for oneways connections.
>
>
> I try to use OSM download QGIS plugin to take the roads but that data dont
> have direction details for oneway road connections.
>
>
>
> Any idea ?
>
> Thank you
>
> ___
> 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 3 OS X/macOS

2018-03-15 Thread Etienne Trimaille
Thanks a lot William for this work! Very very appreciated!

BTW, I noticed you removed the QGIS 2 installer from the webpage:
http://www.kyngchaos.com/software/qgis
QGIS 2 is maintained until January 2019, can you put back at least the QGIS
2.18.15 so users can download it again? Thanks.
https://qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule

Regards,
Etienne

2018-03-15 2:06 GMT+01:00 David Fawcett :

> Thank you William! You provide a very valuable services for all of us who
> do GIS on a Mac.
>
> David.
>
> On Tue, Mar 13, 2018 at 9:21 PM, Madry, Scott 
> wrote:
>
>> Scott Madry
>>
>> and just FYI, I had to load matplotlib and scipy to get the Semi
>> Automatic Classification plugin to work.
>>
>> S
>> > On Mar 12, 2018, at 7:31 PM, Nyall Dawson 
>> wrote:
>> >
>> > On 13 March 2018 at 04:29, William Kyngesburye 
>> wrote:
>> >> Sorry for the long wait.  It's been a hectic year - personal life
>> changes (marriage), but I'm finally getting back into gear.
>> >>
>> >> My QGIS 3 package for OS X/macOS is ready.
>> >
>> > Champion! I'm sure you've made a lot of people very happy with this
>> > announcement.
>> >
>> > For those who know what you do, your work is very much valued! It's a
>> > shame that packaging is somewhat underappreciated and under-supported
>> > by the wider QGIS user community :(
>> >
>> > Nyall
>> >
>> >
>> >  Besides the big QGIS release, there are a couple other big changes
>> > in the packaging.
>> >>
>> >> - Minimum OS X 10.10 Yosemite
>> >>
>> >> - Requires Python 3.6 from python.org (note it must be this and not
>> homebrew or other distribution).
>> >>
>> >> - except for what I include in the GDAL Complete package, all extra
>> necessary python modules are available from pypi with pip.  These are
>> installed by the QGIS installer and need an internet connection at that
>> time.
>> >>
>> >> Make sure to install Python 3 first, otherwise the GDAL Complete
>> python components will not be installed (these are also required by QGIS).
>> >>
>> >> Currently the globe plugin is not included, but I'll get that out in
>> an update soon.  The new QGIS 3D features are included.
>> >>
>> >> GDAL format plugins will follow soon (ECW, MrSID, GRASS).
>> >>
>> >> -
>> >> William Kyngesburye 
>> >> http://www.kyngchaos.com/
>> >>
>> >> The equator is so long, it could encircle the earth completely once.
>> >>
>> >> ___
>> >> Qgis-user mailing list
>> >> Qgis-user@lists.osgeo.org
>> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> > ___
>> > Qgis-user mailing list
>> > Qgis-user@lists.osgeo.org
>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: 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] Where is georeferencer plugin in QGIS 3 ?

2018-03-05 Thread Etienne Trimaille
Bonjour,

As you said, the georeferencer is a plugin. You should find it in your
plugin manager and activate it.

Regards,
Etienne

2018-03-05 16:48 GMT+01:00 SIGéal :

> Hi,
>
> I can't find the georeferencer plugin anymore in QGIS 3 ?
> It must be somewhere as a bug was corrected on it recently :
> https://issues.qgis.org/issues/16417
>
> What am I missing ?
>
> Thanks for helping,
>
> --
> Christophe
>
>
> ___
> 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 3 : Python scripts

2018-03-05 Thread Etienne Trimaille
We should say somewhere that it's not a "script" with some simple commands
anymore (such as print()), but it's now following OOP (Object Oriented
Programming) and the user must define his class and methods following the
QGIS algorithm.

Can we provide a template in the editor? Is-there a working script
somewhere?

2018-03-05 9:13 GMT+01:00 Alexander Bruy :

> "Create new script" was moved to the toolbar inside Processing toolbox.
>
> As Processing API was changed, scripts should be adopted to new API.
>
> 2018-03-05 10:10 GMT+02:00 Jean-Baptiste Desbas :
>
>> Hello,
>>
>> Since QGIS 3, I can't run python scripts :
>> - In the toolbox, there is no "create new scripte" under the script block
>> in the toolbox
>> - In the script editeur, when i try to run a script i have an alert :
>> "Seems ther is no valid script in the file"
>>
>> The issue occurs in QGIS 3.0 and 3.1.0-9.
>> I am on Windows 10 - 64bits.
>>
>> Anyone with the same issue ?
>>
>> Regards,
>>
>>
>>
>>
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
>
> --
> Alexander Bruy
>
> ___
> 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] Raster pixel size metadata missing in 2.99/3.0?

2017-11-06 Thread Etienne Trimaille
Thanks for pointing this. I'm aware of it.

I'm going to put it on my todo list.

Etienne

2017-11-07 8:15 GMT+01:00 George Roth :

> Hi All,
>
>
>
> Hopefully this is an appropriate place to ask this. I’m following 2.99/3.0
> development closely, making sure our project will be forwards-compatible.
>
>
>
> In 2.18 (and all previous 2.x versions that I remember) you could view a
> raster’s pixel size/resolution in Layer Properties > Metadata.
>
>
>
> In 2.99, this type of information has been moved to Layer Properties >
> Information, and includes all the usual items like extent, units, CRS… but
> no pixel size. Of course I can measure or calculate pixels manually, or run
> gdalinfo in a terminal, but that seems like unnecessary work for such a
> fundamental piece of information. I don’t expect our project’s end users to
> do something like that either.
>
>
>
> So… is the pixel size entry for rasters truly missing in 2.99, or is it
> hidden somewhere so obvious that I have no way of actually finding it?
>
>
>
> Thanks,
>
>
>
> George Roth
>
> Quantarctica Project Coordinator
>
> Norwegian Polar Institute
>
> http://quantarctica.npolar.no
>
> ___
> 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] Select QGSFeature with given ID

2017-10-20 Thread Etienne Trimaille
Have a look at this good blog post from Nyall with QgsFeatureRequest:
http://nyalldawson.net/2016/10/speeding-up-your-pyqgis-scripts/

2017-10-20 8:21 GMT+02:00 Pat Hin :

> Hello
>
> many thanks.
>
> the method ".setFilterExpression" has been the one i am looking for :)
>
> Many thanks :)
>
> Pat
>
> *Gesendet:* Donnerstag, 19. Oktober 2017 um 20:39 Uhr
> *Von:* "Richard Duivenvoorde" 
> *An:* "Pat Hin" , "Luigi Pirelli" 
> *Cc:* "qgis-userlists.osgeo.org" 
> *Betreff:* Re: [Qgis-user] Select QGSFeature with given ID
> On 19-10-17 18:27, Pat Hin wrote:
> > Thank you
> >
> > i have done it but struggeld. but wil have a second try
>
> Did you found
>
> http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/
>
> already?
>
> http://docs.qgis.org/testing/en/docs/pyqgis_developer_
> cookbook/vector.html#iterating-over-a-subset-of-features
>
> Regards,
>
> Richard Duivenvoorde
>
> ___
> 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] use selected features only - gone for good?

2017-10-13 Thread Etienne Trimaille
2017-10-13 17:50 GMT+02:00 Tobias Wendorff :

> Is there a way to get it back?
>

Wait for QGIS 3 ;-)


>
> Best regards,
> Tobias
>
>
> > 2017-10-13 16:51 GMT+02:00 Tobias Wendorff
> > :
> >
> >> Why had "use selected features only" to die?
> >> https://gis.stackexchange.com/questions/61753/selecting-
> >> features-within-polygon-from-another-layer-using-qgis
>
>
> ___
> 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] Error message: Processing toolbox

2017-10-01 Thread Etienne Trimaille
2.18.X doesn't bring new features, only bug fixes, so it's better to update
your QGIS 2.18. It won't break your projects. Your bug has been fixed a few
months ago. It was not related to your script.

2017-10-01 10:47 GMT+02:00 Pat Hin <ph...@gmx.de>:

> Hello
>
> i have updated to 2.18.13 and the issue is fixed.
> I have not lost any projects and my scripts are still running.
> Many Many thanks for your hint Etienne
>
> pat
>
> *Gesendet:* Sonntag, 01. Oktober 2017 um 08:41 Uhr
> *Von:* "Etienne Trimaille" <etienne.trimai...@gmail.com>
> *An:* "Pat Hin" <ph...@gmx.de>
> *Cc:* "qgis-userlists.osgeo.org" <qgis-user@lists.osgeo.org>
> *Betreff:* Re: [Qgis-user] Error message: Processing toolbox
> Hi,
>
> You should avoid cross-posting on many mailing lists. (qgis-user and
> qgis-dev)
>
> 2017-10-01 0:08 GMT+07:00 Pat Hin <ph...@gmx.de>:
>>
>> What can i do before fully reinstall what i would dont like due to lose
>> all my projects etc.
>>
>
> You should update your version of QGIS 2.18, this bug has already been
> fixed. You won't lose your projects.
>
> Etienne
>
>
>>
>>
>> thanks
>> pat
>>
>>
>>
>>
>>
>>
>> Konnte Erweiterung processing nicht laden aufgrund eines Fehlers beim
>> Aufruf der classFactory() Methode
>>
>> TypeError: coercing to Unicode: need string or buffer, NoneType found
>>
>> Traceback (most recent call last):
>>   File 
>> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>> line 333, in startPlugin
>> plugins[packageName] = package.classFactory(iface)
>>   File 
>> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
>>  line 38, in classFactory
>> return ProcessingPlugin(iface)
>>   File 
>> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/ProcessingPlugin.py",
>>  line 58, in __init__
>> Processing.initialize()
>>   File 
>> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
>>  line 148, in initialize
>> Processing.addProvider(c())
>>   File 
>> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
>>  line 103, in addProvider
>> % (provider.getDescription(), traceback.format_exc()))
>>   File 
>> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaAlgorithmProvider.py",
>>  line 123, in getDescription
>> version = SagaUtils.getSagaInstalledVersion()
>>   File 
>> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py",
>>  line 130, in getSagaInstalledVersion
>> commands = [os.path.join(sagaPath(), "saga_cmd -v")]
>>   File 
>> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py",
>>  line 75, in sagaPath
>> if not os.path.isdir(folder):
>>   File 
>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py",
>>  line 49, in isdir
>> st = os.stat(s)
>> TypeError: coercing to Unicode: need string or buffer, NoneType found
>>
>>
>> Python-Version: 2.7.10 (default, Feb  7 2017, 00:08:15) [GCC 4.2.1
>> Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
>> QGIS-Version: 2.18.2 Las Palmas, exported
>>
>> Python-Pfad:
>>
>>- /Applications/QGIS.app/Contents/MacOS/../Resources/
>>python/plugins/processing
>>- /Applications/QGIS.app/Contents/MacOS/../Resources/python
>>- /Users/hindenberger/.qgis2/python
>>- /Users/hindenberger/.qgis2/python/plugins
>>- /Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins
>>- /Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7
>>- /Library/Frameworks/GEOS.framework/Versions/3/Python/2.
>>7/site-packages
>>- /Library/Python/2.7/site-packages/numpy-override
>>- /Library/Python/2.7/site-packages/matplotlib-override
>>- /Library/Frameworks/GDAL.framework/Versions/2.1/Python/
>>2.7/site-packages
>>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>>lib/python27.zip
>>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>>lib/python2.7
>>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>>lib/python2.7/plat-darwin
>>- /System/L

Re: [Qgis-user] Error message: Processing toolbox

2017-10-01 Thread Etienne Trimaille
Hi,

You should avoid cross-posting on many mailing lists. (qgis-user and
qgis-dev)

2017-10-01 0:08 GMT+07:00 Pat Hin :

> What can i do before fully reinstall what i would dont like due to lose
> all my projects etc.
>

You should update your version of QGIS 2.18, this bug has already been
fixed. You won't lose your projects.

Etienne


> thanks
> pat
>
>
>
>
>
>
> Konnte Erweiterung processing nicht laden aufgrund eines Fehlers beim
> Aufruf der classFactory() Methode
>
> TypeError: coercing to Unicode: need string or buffer, NoneType found
>
> Traceback (most recent call last):
>   File 
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 333, in startPlugin
> plugins[packageName] = package.classFactory(iface)
>   File 
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
>  line 38, in classFactory
> return ProcessingPlugin(iface)
>   File 
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/ProcessingPlugin.py",
>  line 58, in __init__
> Processing.initialize()
>   File 
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
>  line 148, in initialize
> Processing.addProvider(c())
>   File 
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
>  line 103, in addProvider
> % (provider.getDescription(), traceback.format_exc()))
>   File 
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaAlgorithmProvider.py",
>  line 123, in getDescription
> version = SagaUtils.getSagaInstalledVersion()
>   File 
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py",
>  line 130, in getSagaInstalledVersion
> commands = [os.path.join(sagaPath(), "saga_cmd -v")]
>   File 
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py",
>  line 75, in sagaPath
> if not os.path.isdir(folder):
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py",
>  line 49, in isdir
> st = os.stat(s)
> TypeError: coercing to Unicode: need string or buffer, NoneType found
>
>
> Python-Version: 2.7.10 (default, Feb  7 2017, 00:08:15) [GCC 4.2.1
> Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
> QGIS-Version: 2.18.2 Las Palmas, exported
>
> Python-Pfad:
>
>- /Applications/QGIS.app/Contents/MacOS/../Resources/
>python/plugins/processing
>- /Applications/QGIS.app/Contents/MacOS/../Resources/python
>- /Users/hindenberger/.qgis2/python
>- /Users/hindenberger/.qgis2/python/plugins
>- /Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins
>- /Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7
>- /Library/Frameworks/GEOS.framework/Versions/3/Python/2.
>7/site-packages
>- /Library/Python/2.7/site-packages/numpy-override
>- /Library/Python/2.7/site-packages/matplotlib-override
>- /Library/Frameworks/GDAL.framework/Versions/2.1/Python/
>2.7/site-packages
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>lib/python27.zip
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>lib/python2.7
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>lib/python2.7/plat-darwin
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>lib/python2.7/plat-mac
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>lib/python2.7/plat-mac/lib-scriptpackages
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>lib/python2.7/lib-tk
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>lib/python2.7/lib-old
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>lib/python2.7/lib-dynload
>- /Library/Python/2.7/site-packages
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>Extras/lib/python
>- /System/Library/Frameworks/Python.framework/Versions/2.7/
>Extras/lib/python/PyObjC
>- /Users/hindenberger/.qgis2//python
>
>
>
> ___
> 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] Anybody knows how to download OSM Turn Restrictions?

2017-09-04 Thread Etienne Trimaille
Using QuickOSM, there are 2 specials Processing algorithms to deal with OSM
Relations which are not multipolygons, routes or boundaries. It's using XML
Sax parser because OGR can't read these relations. I agree, it's missing
some docs here.

2017-08-31 13:30 GMT+02:00 Andre Joost :

> Am 31.08.2017 um 07:14 schrieb Clifford Snow:
>
>> Overpass can grab turn restrictions. Read the wiki[1] for information on
>> how turn restrictions are tagged.
>>
>> For example, this query [1] grabs all turn restrictions in my county. Once
>> the query has run download a geojson for loading into QGIS
>>
>> [out:json][timeout:25];
>> // fetch area “skagit county” to search in
>> {{geocodeArea:skagit county}}->.searchArea;
>> // gather results
>> (
>>// query part for: “type=restriction and restriction=*”
>>
>>relation["type"="restriction"]["restriction"](area.searchArea);
>> );
>> // print results
>> out body;
>>
>>> ;
>>>
>> out skel qt;
>>
>>
> I tried QuickOSM with
>
>  relation["type"="restriction"]["restriction"]({{bbox}});> ;out;
>
> which returns the ways with their tags, but not the relation tags.
>
> The geojson result from Overpass turbo works better, but it is still a lot
> of coding necessary to get a road sign at the right pace and orientation
> from that. Maybe it is easier to use the raw XML format.
>
>
> Greetings,
> André Joost
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
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] Symbology export for Geopackage?

2017-02-06 Thread Etienne Trimaille
Hi,

I agree, It could very nice if in the save as dialog we can have a hint
about what is "Feature Symbology" and "Symbol layer symbology"and which one
we should use.

2017-02-05 21:53 GMT+01:00 Andreas Neumann :

> Hi Morten,
>
> This is about saving OGR feature styles (e.g. for DXF and KML export). It
> has nothing to do with QGIS styles.
>
> I agree though, that it is a bit confusing and one of those things that
> should be improved or removed in QGIS 3.
>
> Andreas
>
>
>
> On 05.02.2017 21:38, magerlin wrote:
>
>> OK - thanks.
>>
>> In what situation can the Symbology Export in the "save as" dialogue be
>> used?
>>
>> > t_2017-02-05_21.png>
>>
>>
>>
>> -
>> Regards Morten
>>
>> Currently using Qgis 2.18.3 (OSGeo4),
>> Windows 7, 64bit
>> --
>> View this message in context: http://osgeo-org.1560.x6.nabbl
>> e.com/Symbology-export-for-Geopackage-tp5306376p5306395.html
>> Sent from the QGIS - User mailing list archive at Nabble.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 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 resource sharing plugin crashes QGIS

2016-09-09 Thread Etienne Trimaille
It's a known issue with every plugins using QWebKit with Ubuntu qgis 2.16.
It seems that the latest QGIS Nightly build fixed this bug :
https://lists.osgeo.org/pipermail/qgis-developer/2016-September/044495.html

2016-09-09 12:27 GMT+02:00 Filipe Dias :

> Hi
> I just tried to install QGIS Resource Sharing plugin but QGIS crashed.
> When I tried to restart it crashed again with this error message. Is it a
> known issue? Should I report it?
>
> Manually deleting the plugin solves the issue.
>
> Thanks
>
> Cheers
>
> Warning: loading of qgis translation failed [/usr/share/qgis/i18n//qgis_
> en_US]
> Warning: loading of qt translation failed [/usr/share/qt4/translations/
> qt_en_US]
> Warning: QCss::Parser - Failed to load file  "/style.qss"
> Warning: QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack
> "mWidgetStack", which already has a layout
> Warning: QVariantMap DBusMenuExporterDBus::getProperties(int, const
> QStringList&) const: Condition failed: action
> Warning: QVariantMap DBusMenuExporterDBus::getProperties(int, const
> QStringList&) const: Condition failed: action
> Warning: void DBusMenuExporterPrivate::addAction(QAction*, int): Already
> tracking action "Search QMS" under id 225
> Warning: void DBusMenuExporterPrivate::addAction(QAction*, int): Already
> tracking action "" under id 361
> Warning: Object::connect: No such signal QWebPage::loadProgress(int)
> Warning: Object::connect: No such signal QWebPage::unsupportedContent(
> QNetworkReply*)
> Warning: Object::connect: No such signal QWebFrame::titleChanged(QString)
> Warning: Object::connect: No such signal QWebPage::loadProgress(int)
> Warning: Object::connect: No such signal QWebFrame::titleChanged(QString)
> Warning: Object::connect: No such signal QWebFrame::iconChanged()
> Warning: Object::connect: No such signal QWebFrame::urlChanged(QUrl)
> Warning: Object::connect: No such signal QWebPage::loadStarted()
> Warning: Object::connect: No such signal QWebPage::loadProgress(int)
> Warning: Object::connect: No such signal QWebPage::loadFinished(bool)
> Warning: Object::connect: No such signal QWebPage::statusBarMessage(
> QString)
> Warning: Object::connect: No such signal QWebPage::linkClicked(QUrl)
> Warning: Object::connect: No such signal QWebPage::selectionChanged()
> Warning: Object::connect: No such signal QWebPage::microFocusChanged()
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Warning: QMetaObject::invokeMethod: No such method
> QWebPage::repaintRequested(QRect)
> Segmentation fault (core dumped)
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] "live" openstreetmap data in qgis

2016-09-01 Thread Etienne Trimaille
Thanks Kimaidou. QuickOSM is also a nice idea, especially for a small area
like 1MB !
You can draw your model in QGIS Processing, look at the end of the video :
https://vimeo.com/108737868
I agree is not very convenient to have all these boxes in QuickOSM, one
called "quickquery" would be very appreciated.

Then as Michael said, you can do a macro or just add a custom button to
your model (in the latest processing version)

Don't hesitate to raise an issue or a PR to QuickOSM. A new version of
QuickOSM will be released if needed when you want.
BTW, Paolo, is it possible to get QuickOSM trusted ?

Regards,
Etienne

2016-09-01 13:29 GMT+02:00 Robin Paulson :

> On 2016-09-01 22:00, Paolo Cavallini wrote:
>
>> If your data is not that big, you could use QuickOsm processing scripts
>>> to automate this a bit ( and use a macro at project opening to launch
>>> the processing model you have build combining QuickOsm algs and others
>>> more generic algs to do the job.)
>>> If QuickOsm lacks some features, you should improve this plugin instead
>>> of creating a new one, IMHO.
>>>
>>
>> Agreed, the "live update" could be a very nice addition to QuickOSM
>> plugin IMHO.
>> All the best.
>>
>
> i agree with both of you in principle. it depends upon the state of the
> plugin i guess and the response of the maintainers to pull requests.
>
> can you go into detail or point me to info about "QuickOsm processing
> scripts"? i know of quickosm, but not the script side of it. i looked at
> that plugin before writing the first email; i must have missed some key
> functionality.
>
> cheers for the pointers,
>
> --
> robin
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] "live" openstreetmap data in qgis

2016-08-28 Thread Etienne Trimaille
You have to set up a database with the OSM diff to get an up to date OSM
database. Then you can add your PostGIS layers in QGIS.

You can have a look to this docker project :
https://github.com/kartoza/docker-osm
These OSM layers are updated every two minutes by default, and you can see
these layers in QGIS.

2016-08-28 16:56 GMT+02:00 Greg Troxel :

>
> Robin Paulson  writes:
>
> > at the moment there are various ways to add openstreetmap data to
> > qgis. as far as i can tell, they all rely upon downloading a
> > .osm/obf/pbf file in some semi-automated way and importing it. none of
> > the existing tools allow for any existing data to be deleted and
> > replaced with the new.
> >
> > what i would like to do is add a "live" layer to my qgis projects,
> > such that any data is periodically and transparently re-downloaded and
> > updated. for those of you who are familiar with JOSM, this would be
> > similar to the "continuos download" [sic] plugin for that software.
>
> Two thoughts (and note that I don't use qgis yet, but do map for OSM):
>
>   OSM resources can be somewhat easily overwhelmed, so some care in
>   understanding the load put on servers is in order, unless you are
>   talking about downloading from someplace outside of OSM that you're
>   paying for access, etc.
>
>   People sometimes import OSM into postgis, and then apply
>   daily/hourly/minutely diff files to keep their database up to date.
>   Doing this and having qgis operate from the live database seems like a
>   plausible way to do what you want.  A local database could also
>   support other uses such as tile generation.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Lizmap-Web-Client - New major version 3.0 released !

2016-06-10 Thread Etienne Trimaille
Yes, you should !
There is one section for that : http://plugins.qgis.org/plugins/server/

2016-06-08 17:58 GMT+02:00 kimaidou :

> Ok Alessandro,
> We will do that for our server plugins !
>
> https://github.com/3liz/qgis-wfsOutputExtension
> https://github.com/3liz/qgis-wps4server
>
> 2016-06-08 16:00 GMT+02:00 Alessandro Pasotti :
>
>> 2016-06-08 15:48 GMT+02:00 kimaidou :
>>
>>> Hi Alessandro,
>>>
>>> We have not done it because this plugin has no desktop interface, so it
>>> is not usefull to use it in QGIS Desktop. Do you think we should add it in
>>> QGIS official repository, even if it is only for QGIS Server ?
>>>
>>
>>
>> Yes, there is a server tag in the metadata and you could just add a
>> simple dialog in the desktop iface just to avoid errors in case someone
>> installs it in the desktop, like I did here:
>>
>>
>> https://github.com/elpaso/qgis-server-simple-browser/blob/master/__init__.py
>>
>> https://github.com/elpaso/qgis-server-simple-browser/blob/master/ServerSimpleBrowser.py#L121
>>
>> Thanks!
>>
>> --
>> Alessandro Pasotti
>> w3:   www.itopen.it
>>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Attribute table error in QGIS 2.15.0-Master

2016-05-10 Thread Etienne Trimaille
This should has been fixed now :
http://hub.qgis.org/issues/14766

2016-05-11 2:46 GMT+07:00 Gustavo Martínez Puljak :

> Hi,
>
> I am using QGIS 2.15.0-Master in a 64bit Linux system. When I open the
> atribute table for a layer (postgis or shape) all the columns repeat the
> data of the first column (including the name of the column). The number
> of columns is correct. The data is correctly shown in form view, but not
> in the tabular view.
>
> Thanks in advance.
>
>
> Gustavo
> --
> Gustavo Martínez
> Skype: gmpuljak
> Linkedin: http://ar.linkedin.com/in/gustavomartínezpuljak
>
> “Que la tierra se vaya haciendo camino ante tus pasos,
> que el viento sople siempre a tus espaldas,
> que el sol brille cálido sobre tu cara,
> que la lluvia caiga suavemente sobre tus campos y,
> hasta tanto volvamos a encontrarnos,
> que Dios te lleve en la palma de su mano.”
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] trouble getting data from OpenStreetMap

2016-04-28 Thread Etienne Trimaille
Good morning,

2016-04-29 6:47 GMT+07:00 Stephen Sacks :

>   I chose Manual and entered longitudes -77.0 and -70.0, and lat's 44.0
> and 41.0, which roughly encompasses New York and Massachusetts. After some
> back-and-forth of the progress bar, an .osm file of size 337 bytes appeared
> on my hard drive and  I got a message saying "Download has been successful."
>

I don't know why QGIS says "Download has been successful", but obviously
337 bytes is not enough.
Your bounding box is far too big to download for a request on the fly. You
should download your data using external services like
http://download.geofabrik.de/north-america.html

This tool in QGIS can download a neighborhood or a small town.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Export plugins list

2016-04-14 Thread Etienne Trimaille
I agree, but it's the only solution for now to do that.
The plugin manager will update them after.

Or you can write a tiny script for that : ls ~/.qgis2/python/plugins/ >
list_plugins.txt to save the list.
And then a bash loop with wget to fetch the zip.

2016-04-14 23:39 GMT+07:00 Paolo Cavallini <cavall...@faunalia.it>:

> Il 14/04/2016 11:39, Etienne Trimaille ha scritto:
> > You can copy/paste your `.qgis2/python/plugins`, it contains all your
> > plugins installed.
>
> sure thing, but it is not quite the same thing.
> It would be nice in fact to save the list, not the plugins, in order to
> replicate easily the installation, using always the latest versions.
> I see this as an interesting feature req, worth a ticket.
> All the best.
>
> --
> Paolo Cavallini - www.faunalia.eu
> QGIS & PostGIS courses: http://www.faunalia.eu/training.html
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] OSM download error

2015-04-22 Thread Etienne Trimaille
You can use the QuickOSM plugin. It deals with the overpass API. You can
specify which feature you want.
QuickOSM can also open an external OSM file if you want to get all the
columns available. From the menu Add vector layer, it's not possible.

If you don't mind about columns and specific feature, have a look to the
OSM downloader plugin.

2015-04-22 16:20 GMT+02:00 Simon Lange simonlang...@web.de:

 Using QGis 2.0.1. on Ubuntu.
 It has been discussed several times, yet, I cannot figure out how to
 download open street maps layer for the sake of using the features (roads,
 parks etc.). instead, after choosing one of the three options (loading from
 canvas, manual) the download does not succeed. Anyone who can help me
 out?

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

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

Re: [Qgis-user] Plugins are broken

2015-03-26 Thread Etienne Trimaille
Azizul, in another topic, you said that you are using QGIS 2.0.1.
First, you should upgrade to 2.8.1.

2015-03-26 15:29 GMT+02:00 Paolo Cavallini cavall...@faunalia.it:

 Il 26/03/2015 14:23, azizul haque ha scritto:
  Dear QGIS Users,
  As I sent a message to you all that Processing, QuickOSM and Buffer by
  percentage plugin are broken. I could not recovery it yet.

 Hi Azizul,
 what is the error message?
 All the best.

 --
 Paolo Cavallini - www.faunalia.eu
 QGIS  PostGIS courses: http://www.faunalia.eu/training.html
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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

[Qgis-user] QuickOSM, a QGIS plugin to query Overpass

2014-10-15 Thread Etienne Trimaille
Hi,

For those who do not already know, a QGIS plugin exists so as to run an
overpass query.

This plugin is QuickOSM which you can find in the QGIS's repository :
- using keys/values with autocompletion
- use an extent of the map canvas or an nominatim area
- use some actions so as to edit in JOSM or open external links like
wikipedia
- save your query
- change the default geographic extent of a saved query
- apply some symbology if possible
- use QuickOSM in complexe models of QGIS Processing : fetching some datas
then reprojecte them for instance
-open a osm file by specifying the OGR file 'osmconf'

There is a little video : https://vimeo.com/108737868

I've developped this project during my internship at 3Liz :
http://www.3liz.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Retrieve in python api the list of layers in a project

2014-06-25 Thread Etienne Trimaille
You can have a look to :
http://www.qgis.org/api/classQgsLegendInterface.html
with layers()


2014-06-25 16:44 GMT+02:00 Andrea Peri aperi2...@gmail.com:

 Hi,

 In API python there a method to retrieve the list of all the layers in
 the project ?

 I check in the API and find the
 qgis.core.QgsMapLayer
 but it is the single layer.

 Also I find the
 qgis.core.QgsLayerTree

 But it seem not only layers but also groups.
 There is a container for all and only layers ?

 Thx,


 --
 -
 Andrea Peri
 . . . . . . . . .
 qwerty àèìòù
 -
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user