Re: [Qgis-user] PDOK plugin doesn't work

2019-02-05 Thread Richard Duivenvoorde
On 2/5/19 1:12 PM, Gerard Dijkstra wrote:
> Hello,
> 
> I have some problems installating the PDOK plugin:
> 
> */No module named PyQt.QtCore/*

Hi Gerard,

Please let me/us know which version QGIS you are using, and which
Operating System, because without these modules you would not have any
Python I would think.

Regards,

Richard Duivenvoorde (author of the plugin)

ps feel free to email in dutch if you want
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

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

2019-02-05 Thread Nyall Dawson
On Wed, 6 Feb 2019 at 00:37, Wouter Impens  wrote:
>
> Hi,
>
> Hope anyone can help me with this:
>
> I'm trying to iterate over the fields of a vector layer (using the index) and 
> fill in the values by an expression
>
>  my_features = a_layer.getFeatures()
> for a_feat in my_features:
> mijn_index = a_feat.fieldNameIndex('perc_nr')
> value = an_expr

What's "an_expr" here? Is it a QgsExpression object?

Nyall

>  a_feat.setAttribute(mijn_index, value)
>
> a_layer.commitChanges()
>
> I don't get an error but nothing is filled in. I evaluated the expression and 
> it's true. It also works in the field calculator.
>
> Anyone an idea?
>
>
> Kind regards
> Wouter
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Creating proportional symbols

2019-02-05 Thread Aj Hollenbach
Hi There,

I am attempting to represent water utilities (points) using graduated
symbols (by size), and would like the symbols to be proportional to the
number of customers. I thought that this could be done be done under the
symbology dialogue box by selecting "graduated" and then "size" for the
method while also using the "data-defined size legend" option under the
"advanced" sub-menu. However, whenever I click on the "advanced" button and
then select "data-defined size legend", I receive an error message that
"data-defined size is not enabled". Is this a bug, or am I doing something
incorrectly?

Thanks Much,
Allen
___
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-psc] User question of the month

2019-02-05 Thread Anita Graser
Dear users,

The answers to the user question of January have now been published:
http://blog.qgis.org/2019/02/05/user-question-of-the-month-feb19-answers-from-jan/


Based on these results, during yesterday's PSC meeting, we've been
discussing potential strategies to better inform users about all the
different options for contributing to QGIS. So thanks to everyone who
provided feedback!

We also have a new question for February: Which plugins should be listed as
"featured" on the official plugin repository?
https://ee.kobotoolbox.org/x/#bpH2ouJG

The form is available in a variety of languages thanks to Carlos Rivas for
providing the platform and all the volunteers who helped with translations.

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

[Qgis-user] pyQGIS - set attributes by expression

2019-02-05 Thread Wouter Impens
Hi,

Hope anyone can help me with this:

I'm trying to iterate over the fields of a vector layer (using the index)
and fill in the values by an expression

 my_features = a_layer.getFeatures()
for a_feat in my_features:
mijn_index = a_feat.fieldNameIndex('perc_nr')
value = an_expr
 a_feat.setAttribute(mijn_index, value)

a_layer.commitChanges()

I don't get an error but nothing is filled in. I evaluated the expression
and it's true. It also works in the field calculator.

Anyone an idea?


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

Re: [Qgis-user] Navigation in a map with Lon-Lat Coordinates

2019-02-05 Thread C Hamilton
Wolfgang,

I first recommend that you use a more recent version of QGIS. 2.8.8 is
quite old. The Lat Lon Tools
plugin
handles DMS coordinates. You can zoom to the DMS coordinate or snapshot
coordinates in DMS notation. It is very flexible and handles many different
coordinate systems. Later versions also support digitizing points in DMS
coordinates.

Calvin

On Mon, Feb 4, 2019 at 9:28 AM Wolfgang Reichart  wrote:

> Dear all QGIS Power User,
> I`m a rookie here myself Using QGIS since a few hours.
> After installing the 2.8.8 version with the GridSplitter Plugin, and two
> wms dop40 server now I`m looking to find an Airport with the following
> Coordinates:
>
> 50° 46′ 8″ N, 7° 9′ 48″ O
>
>
> Is there a configuration possible in the GIS Tool to find unknown Places (
> terra incognita) just in a moment without searching hours and hours like an
> eagle?
>
> Thanks to You, who will help me for the first steps.
>
> Looking to Your gentle answer
>
> Yours
>
> Wolfgang
> ___
> 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] PDOK plugin doesn't work

2019-02-05 Thread Gerard Dijkstra
Hello,

I have some problems installating the PDOK plugin:

No module named PyQt.QtCore

What to do?

Gerard
___
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] WFS-T

2019-02-05 Thread Jonathan Moules

Hi Berhnard,

Well, on the issue of why QGIS is using WFS 1.0.0 despite asking for 1.1 
- from the docs it appears QGIS Server only supports WFS 1.0.0, so they 
"negotiate" down to that version.


I'm afraid I can't help on your other question; hopefully someone else can.

Cheers,

Jonathan


On 2019-02-05 07:54, Bernhard Ströbl wrote:

Hi Jonathan,

thank you for looking into this. Basically I want to run a WFS-T 
Server (QGIS-Server), with any client, but to test the server I used 
QGIS desktop.
In QGIS desktop I specified the version to be 1.1, no idea why the 
transaction request is sent with version 1.0.0


extract from GetCapabilities:
WFS1.1.0 


...

...

  projekt_pt
  projekt_pt
  EPSG:25832
  EPSG:3857
  
    Query
    Insert
  

So for me the question is: Does the client (QGIS desktop) generally 
work with a QGIS WFS-T Server? If yes why is it not working with my 
QGIS WFS-T Server?


Bernhard

Am 04.02.2019 um 18:36 schrieb Jonathan Moules:

Hi,

Well, taking the error at face value, it seems to be complaining that 
you have:

/REQUEST=Transaction/

in the URL. Which is odd because that's exactly what it should be 
(looking at the 1.0.0 spec).


But at the bottom of your error, it says:

10:15:17 WARNING [9148]: Service WFS 1.0.0 not found, returning default

So I'd suggest that QGIS Server doesn't support transactions for WFS 
1.0.0 (Transactions support is Optional). Except the QGIS docs say 
they do support Transaction: 
https://docs.qgis.org/2.8/en/docs/user_manual/working_with_ogc/ogc_server_support.html 
- and WFS 1.0.0 seems to be the only version supported by QGIS so... 
are the errors misleading? (I can't seem to readily find that page 
for QGIS 3.4).


The GetCapabilities of the server will tell you if it supports 
Transaction.


Maybe someone who knows QGIS Server (I'm just basing this reply off 
the spec and your error) can comment.


Cheers,

Jonathan


On 2019-02-01 09:57, Bernhard Ströbl wrote:

Hi all,

I try to make an INSERT to QGIS-Server using WFS-T. But every insert 
fails with the server returning "Please check the value of the 
REQUEST parameter"


This is the QGIS-server log output (anonymised):

10:15:17 INFO Server[9148]:  New request 
***

10:15:17 INFO Server[9148]: SERVER_NAME***
10:15:17 INFO Server[9148]: REQUEST_URI/wms/pmt?SERVICE=WFS
10:15:17 INFO Server[9148]: REMOTE_ADDR10.***.***.**
10:15:17 INFO Server[9148]: CONTENT_TYPEtext/xml
10:15:17 INFO Server[9148]: HTTP_USER_AGENTMozilla/5.0 
QGIS/3.4.3-Madeira

10:15:17 INFO Server[9148]: MAP:/var/www/wms/karten/pmt.qgs
10:15:17 INFO Server[9148]: REQUEST:Transaction
10:15:17 INFO Server[9148]: REQUEST_BODY:xmlns="http://www.opengis.net/wfs"; version="1.0.0" service="WFS" 
xsi:schemaLocation="http://www.qgis.org/gml 
https://pmt-map.jena.de:443/wms/pmt?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION=1.0.0&TYPENAME=projekt_pt"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>xmlns="http://www.opengis.net/wfs";>xmlns="http://www.qgis.org/gml";>xmlns="http://www.qgis.org/gml";>srsName="EPSG:25832">cs=",">681077.95823665894567966,5643649.1879350347151
10:15:17 INFO Server[9148]: SCHEMALOCATION:http://www.qgis.org/gml 
https://pmt-map.jena.de:443/wms/pmt?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION=1.0.0&TYPENAME=projekt_pt 


10:15:17 INFO Server[9148]: SERVICE:WFS
10:15:17 INFO Server[9148]: VERSION:1.0.0
10:15:17 WARNING [9148]: Service WFS 1.0.0 not found, returning default
10:15:17 INFO Server[9148]: Request finished in 1 ms

the apache error log says:
QNetworkDiskCache::prepare() unable to open temporary file

any help appreciated

System: QGIS-Server 3.4.4 on Ubuntu/Apache, WFS-Client QGIS Desktop 
3.4.3


Bernhard


__ Information from ESET Mail Security, version of virus 
signature database 18802 (20190201) __


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


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




__ Information from ESET Mail Security, version of virus 
signature database 18819 (20190204) __


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

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




__ Information from ESET Mail Security, version of virus 
signature database 18822 (20190205) __


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






__

[Qgis-user] spatialite with update trigger seems to result in 'unselectable' geometry

2019-02-05 Thread Janneke van Dijk

Dear list,

Could anybody maybe help me understand what I'm doing wrong (or even 
tell me that what I want to do can't be done)?


This is what I'm trying to do. I have a spatialite layer with columns 
north and east which contain coordinates in decimal degrees. I would 
like to be able to change the coordinates in the attribute table and 
have the trigger take care of updating the geometry based on the new 
coordinates. The following update statement, using the DB manager:


UPDATE watersources SET geom = Transform(MakePoint(east, north, 4326), 
32638) WHERE id=1678;


works as expected: after saving the edits, the point will appear in the 
new location based on the changed coordinates, and I can select the 
point in the map and I can use the identify button to open the form at 
that point. If (by way of a test) I use the same statement inside a 
trigger (and I realise this is not ultimately how I would want to define 
the trigger, but I'm trying to understand the different effects of the 
same update statement):


CREATE TRIGGER update_geom AFTER UPDATE ON watersources BEGIN

UPDATE watersources SET geom = Transform(MakePoint(east, north, 4326), 
32638) WHERE id=1678;


END

I can change the coordinates, save the changes and stop editing, the 
point will indeed appear in the new location, but I can't select it in 
the map, or use the identify feature to open the form. I can locate it 
in the attribute table and select it and use 'zoom to selected' after 
which the map will center on the selected point (but not zoom in). After 
running the update statement 'stand alone' again, all works as expected 
again.


Does anyone have an idea why this could happen? Has anyone tried doing 
something similar in spatialite and gotten it to work? Any tips on how I 
could troubleshoot this? I have a test file with only 4 points that I 
could share if that helps. Using QGIS 3.4.4. on Windows 10.


Any help/thoughts will be appreciated!

Thanks,

Janneke



___
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