Re: [Qgis-user] Updating multiple parent/child records simultaneously

2020-03-16 Thread Matthias Kuhn

Hi Alexandre, Ross,

Denis recently wrote a plugin that also handles batch management of 
relations. https://github.com/opengisch/qgis-relation-batchinsert


He is not reading the qgis user list but would be happy to share his 
thoughts if you get in touch with him.


Best regards

Matthias

On 3/17/20 2:19 AM, Alexandre Neto wrote:

Hi,

I have been looking for the same myself. I think I would be able to 
create a "replicate relations" plugin but I am missing a step... this one:


https://gis.stackexchange.com/questions/353309/open-feature-form-in-multi-edit-mode-using-pyqgis

The idea would be to, for each selected feature, create an row in the 
related table, then open them all with the multi editing form.


Alexandre Neto

On Wed, Oct 2, 2019 at 11:35 AM McDonaldR > wrote:


Hi list,

I’ve got a project set up in QGIS 3.4.x with a parent polygon
layer and a child attribute layer.  Each site polygon represents a
piece of land and can have multiple tasks associated with it
(grass cutting, weeding, pruning, etc.).  Sites can be made up of
multiple polygons.

With relations set up in the project it is easy to select a
polygon feature and update attributes.  It is easy to add or edit
associated tasks.  See screenshots below.  With multiple site
polygons selected I can use the “modify selected attributes
simultaneously” to update information.

I need to find a way to be able to select site polygons and add
the same associated task to each one.  For example, select all
site polygons that need grass cutting task associated with them,
assign the task and maintain the parent child relationship.  It
would be great if there was a way to do this through the form.

One solution I have been toying with is using a SQL query to
select the site polygons and insert into the associated tasks
table a new record associated with each polygon.  The query works
but I need a way to tie it into the form. Anyone got any
pointers?  Some python to call the SQL and get the selected
feature IDs from QGIS?

Thanks

Ross

Screenshot 1: https://nextcloud.mixedbredie.net/s/D7DFjs2PrcnEf7t

Screenshot 2: https://nextcloud.mixedbredie.net/s/EBzeTopsBcZBSJc

*Ross McDonald | *Geo-evangelist | Angus Council, Digital
Enablement and IT | Angus House, Orchardbank Business Park, Sylvie
Way, Forfar DD8 1AT*| t: 01307 49 22 39*

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

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


___
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] Updating multiple parent/child records simultaneously

2020-03-16 Thread Alexandre Neto
Hi,

I have been looking for the same myself. I think I would be able to create
a "replicate relations" plugin but I am missing a step... this one:

https://gis.stackexchange.com/questions/353309/open-feature-form-in-multi-edit-mode-using-pyqgis

The idea would be to, for each selected feature, create an row in the
related table, then open them all with the multi editing form.

Alexandre Neto

On Wed, Oct 2, 2019 at 11:35 AM McDonaldR  wrote:

> Hi list,
>
>
>
> I’ve got a project set up in QGIS 3.4.x with a parent polygon layer and a
> child attribute layer.  Each site polygon represents a piece of land and
> can have multiple tasks associated with it (grass cutting, weeding,
> pruning, etc.).  Sites can be made up of multiple polygons.
>
>
>
> With relations set up in the project it is easy to select a polygon
> feature and update attributes.  It is easy to add or edit associated
> tasks.  See screenshots below.  With multiple site polygons selected I can
> use the “modify selected attributes simultaneously” to update information.
>
>
>
> I need to find a way to be able to select site polygons and add the same
> associated task to each one.  For example, select all site polygons that
> need grass cutting task associated with them, assign the task and maintain
> the parent child relationship.  It would be great if there was a way to do
> this through the form.
>
>
>
> One solution I have been toying with is using a SQL query to select the
> site polygons and insert into the associated tasks table a new record
> associated with each polygon.  The query works but I need a way to tie it
> into the form.  Anyone got any pointers?  Some python to call the SQL and
> get the selected feature IDs from QGIS?
>
>
>
> Thanks
>
>
>
> Ross
>
>
>
> Screenshot 1: https://nextcloud.mixedbredie.net/s/D7DFjs2PrcnEf7t
>
>
>
> Screenshot 2: https://nextcloud.mixedbredie.net/s/EBzeTopsBcZBSJc
>
>
>
>
>
>
>
>
>
>
>
> *Ross McDonald | *Geo-evangelist | Angus Council, Digital Enablement and
> IT | Angus House, Orchardbank Business Park, Sylvie Way, Forfar DD8 1AT*
> | t: 01307 49 22 39*
>
>
>
>
> This message is strictly confidential. If you have received this in error,
> please inform the sender and remove it from your system. If received in
> error you may not copy, print, forward or use it or any attachment in any
> way. This message is not capable of creating a legal contract or a binding
> representation and does not represent the views of Angus Council. Emails
> may be monitored for security and network management reasons. Messages
> containing inappropriate content may be intercepted. Angus Council does not
> accept any liability for any harm that may be caused to the recipient
> system or data on it by this message or any attachment.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] qgis wfs provider loads all features when showing attribute table

2020-03-16 Thread Martin Landa
Hi,

I am providing an experimental WFS service using MapServer. When
loading the service in QGIS (3.4), only features overlapping map
extent are fetched, so far it's good. Unfortunately QGIS behaves
differently when I try to set up symbology for a WFS layer or just
open an attribute table. Than QGIS tries to load ALL features from WFS
service. This is not desired since WFS layer contains too many
features. Is it possible to change this behaviour in order to show
attributes for features already fetched (and displayed in QGIS).

Thanks, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
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] DEM data for the tutorials

2020-03-16 Thread krishna Ayyala
I am trying to learn the exercise as per the link below. Is there a way to
get the DEM specific to the area mentioned in Step 3? The reason for this
specific area is; I want to do the complete exercise and compare my results
with the results in step 10.

Regards.

https://www.pointsnorthgis.ca/blog/how-to-calculate-surfacecut-volume-qgis-advanced/
___
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] Attributes name in chinese instead of french

2020-03-16 Thread Nicolas Cadieux
Hi,

Google QGIS and character encoding.  You can set QGIS to override or change the 
character encode of some file formats like shapefiles.  It gets complicated, if 
not impossible if the files has been shared between multiple time between two 
computers with different settings and did not notice the change during use.  
For something like English to Chinese, it’s easily noticeable so probably 
easier to fix.  You probably just need to open the file and ask to change the 
character encoding once.  

Nicolas Cadieux

>> Le 16 mars 2020 à 06:53, ann_s...@yahoo.com a écrit :
> 
> Dear all,
>  
> I am using Qgis 3.4 and 3.10 (latest version),
> When I upload a shapefile into a new project (only CRS has been defined in 
> the project before the upload of the shapefile), and I open its attributes 
> table, all the names are in Chinese instead of in French.
> Have you encountered such issue? Do you have a workaround to get the correct 
> language?
>  
> Many thanks in advance,
> Here is a snapshot of what I get,
>  
> Regards
> Ann-Sophie
>  
> 
>  
> 
>   Garanti sans virus. www.avast.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] Attributes name in chinese instead of french

2020-03-16 Thread ann_so72
Dear all,



I am using Qgis 3.4 and 3.10 (latest version),

When I upload a shapefile into a new project (only CRS has been defined in
the project before the upload of the shapefile), and I open its attributes
table, all the names are in Chinese instead of in French.

Have you encountered such issue? Do you have a workaround to get the correct
language?



Many thanks in advance,

Here is a snapshot of what I get,



Regards

Ann-Sophie









--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] area

2020-03-16 Thread labrinos


Thank you Håvard.
That was very helpful.
It works.

Nikos


Παραθέτοντας από Håvard Tveite :


For "hover" (get on screen the area of a region when
the cursor is above it):

Open the region layer's properties, go to "Display",
insert [%  $area  %] in the HTML Map Tip text area,
and click "OK".  Move the cursor over a region, and
its area should be displayed by your cursor.

Håvard

On 15.03.2020 19:39, labri...@eled.auth.gr wrote:


Hi all,

How can I get on screen the area of a selected region?
Can I get on screen the area of a region when the cursor is above it?

thank you
Nikos






--
Δρ. Νίκος Λαμπρινός
Καθηγητής της Διδασκαλίας της Γεωγραφίας
Τμήμα Δημοτικής Εκπαίδευσης
Α.Π.Θ. 54124 Θεσσαλονίκη
Τηλ.: 2310 991201 / 991230
Email: labri...@eled.auth.gr
Web Page: http://users.auth.gr/labrinos/
  http://www.digital-earth.edu.gr/
  https://www.auth.gr/univUnits

-
Dr. Nikos Lambrinos
Professor of Geography Teaching
Director of the Sector of Science and New Technologies
President of the Hellenic digital earth Centre of Excellence
Faculty of Education
School of Primary Education
Dept. of Science and New Technologies
Aristotle University of Thessaloniki
GR-54124 Thessaloniki, Greece
Tel: +30 2310 991201
Email: labri...@eled.auth.gr
Web Page: http://users.auth.gr/labrinos/
  http://www.digital-earth.edu.gr/
  https://www.auth.gr/en/univUnits

___
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