Re: [Qgis-user] about dem tool

2015-09-11 Thread Lene Fischer
Dear Mr. Choudhari

When we work with DTM we have the following tasks:
Create:

·Hillshade with factor 2  -Just to be able to “See” the area.



·Use Fill Sinks (Wang& Lui) on DTM

·Create a bluespot in Rastercalculator FilledDEM – DTM. Style and set 
transparency to 0



·Use Channelnetwork & Drainage Basin to create Watershed basins and 
Streams (– The factor is set to 5 – if you want a more dense stream network use 
a smaller factor.)
Style/Graduate the streams by the attribute ‘Order’. Style Categorize the 
Watershed Basins



Hope these few lines can help ☺

Regards


Lene Fischer
Associate Professor

Department of Geosciences and Natural Resource Management
University of Copenhagen


MOB +45 40115084
l...@ign.ku.dk


[cid:image001.gif@01D03029.2F3EC6A0]




Fra: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] På vegne af Choudhari P P
Sendt: 11. september 2015 08:40
Til: qgis-user@lists.osgeo.org; uj...@spatialthoughts.com
Emne: [Qgis-user] about dem tool

dear sir,
 when i am installing dem tool it showing the message like this is 
broken plugin again i reinstalled the same plugin but again same message is 
coming. please guide me. another one is please suggest any tutorial site for 
how to do watershed modeling using q gis.






With Regards,

Mr. P P Choudhari
Assistant Professor
Department of Geography
University of Mumbai, Mumbai
Mobile No - 09975374561

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

[Qgis-user] display menu "settings" after customization went wrong

2015-09-11 Thread Peter Schürch
Dear List
I used "settings" > "customization" to remove the menu "settings" from the GUI.
I wrongly assumed that this would only affect the current project file but now 
I realised that this affects the qgis-installation on my machine as a whole... 
stupid.
Is there a way to "reset" the customization or an alternative way to call the 
customaztion dialogue undo my settings??
Thanks for your help!

Best regards
Peter Schürch
--
Meier und Partner AG
Freiestrasse 26
8570 Weinfelden
www.meierpartner.ch
T +41 71 626 5115

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

[Qgis-user] view only current feature in atlas maps

2015-09-11 Thread Enrico Ferreguti
Hi list,

when I need to isolate the current atlas feature in map views I currently
enable the rule based feature style and I set the rule to "$atlasfeatureid
= $id" following this tutorial:
http://nathanw.net/2013/12/02/waiting-for-qgis-2-2-highlighting-current-atlas-feature/
I'm wondering if there is an easier method, accessible for the common gis
user, to do this avoiding expressions and complex styling methods, and if
it's possible to control this behaviour directly from "controlled by altas"
slot in map item properties tab as from the attached sample image.

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

[Qgis-user] Making oblique maps in Qgis: is it possible?

2015-09-11 Thread Jens Verwaerde | Natuurpunt CVN
I'd like to make an oblique (bird's eye) view of some of my maps.
Theoretically this is possible by exporting a map to an image manipulation
program and then using a tilting function, but ... that's an extra step and
... everything on the map is then "obliqued" including labels etc.

But I don't want everything to become oblique; text labels, arrows etc.
should stay "normal" and floating in the air above the map, so only the map
should be oblique.

Also is it possible to have diagrams that "point from the sky" to the
location on the oblique map instead of also becoming oblique?



Jens Verwaerde
lesgever natuurbeheer en natuurfotografie

t: 015 29 72 29 | gsm: 0491 15 03 57


Website: http://cvn.natuurpunt.be
Facebook: www.facebook.com/NatuurpuntCVN
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS-client searchbar

2015-09-11 Thread geo
Hello, 
Can somebody help me with building an searchpanel in Qgisclient?I can
find many questions on the web about this, but no answers.Is there a
step-by-step guide?
Thanks so much for helping!
Vicky VerscheijdenStad Tongerenwww.gis3700.be
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Making oblique maps in Qgis: is it possible?

2015-09-11 Thread Sandro Santilli
On Fri, Sep 11, 2015 at 11:00:24AM +0200, Jens Verwaerde | Natuurpunt CVN wrote:
> I'd like to make an oblique (bird's eye) view of some of my maps.
> Theoretically this is possible by exporting a map to an image manipulation
> program and then using a tilting function, but ... that's an extra step and
> ... everything on the map is then "obliqued" including labels etc.
> 
> But I don't want everything to become oblique; text labels, arrows etc.
> should stay "normal" and floating in the air above the map, so only the map
> should be oblique.

Map rotation is supported since version 2.8, does it do what you need ?

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


Re: [Qgis-user] How to get a searchbar working

2015-09-11 Thread Andreas Neumann

Hi,

The question is: which search method do you want to implement?

There is:

1. a wsgi search script that requires a separate search table or view in 
your Postgis database
2. a built-in search method of QGIS server that doesn't require extra 
search tables, but is limited to layers present in the QGIS project

3. Search through Geonames or other external provider
4. the same as 1), but with PHP insteady of Python WSGI

I can only help you with option 1), since I introduced this search 
method. This should also be documented in chapter 6 of the README 
(https://github.com/qgis/QGIS-Web-Client/blob/master/README). In section 
6.2.3 you can find the table setup of the search method.


Option 1) is also used in our Web-GIS: http://gis.uster.ch/ - if you 
want to test it.


So if you opt for option 1) I can certainly assist you and improve the 
written documentation in the README, if things are unclear.


Andreas


On 10.09.2015 16:59, g...@gis3700.be wrote:


Hello ,

Thanks so much for all the information on the web concerning 
 Qgis-server/-clientJ


After a try-out on windows, I decided to install a virtual machine to 
set-up Qgis-server and -client on Debian Linux/ VWware


It is working nicely!... except the search-panels.

I’m not sure where I make the mistake… but there must be something I 
do wrong…


The “request” is working

But when I try to fill out the data in *globaloptions.js, *it doesn’t 
work.


(intern)

http://192.168.38.250/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&LAYERS=Zoek&QUERY_LAYERS=Zoek&FEATURE_COUNT=25631&INFO_FORMAT=text/xml&srs=epsg:4326&FILTER=Zoek:%22PERCEELNR%22=%22211d%22&bbox=618305,599732,6.58963e+06,6.57191e+06&map=/var/www/html/QGIS-Web-Client/projects/data.qgs


Please can you help me?

What do you use to let the searchpanel left or address bar right work?

/getSearchGeom.wsgi/

/search_geom.php/

/search.php/

/GlobalOptions.js/

/Or GeoNamesSearchCombo.js/

How do i use it?

What is the best way to build an easy address-searchbar?

Is there a way of working for dummies???



Thank you!

Vicky





___
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] Re : [Qgis-developer] view only current feature in atlas maps

2015-09-11 Thread Junior
Hi,
i don't know if there is a work around but a big +1 for your UI proposal.

Envoyé depuis mon HTC

- Reply message -
De : "Enrico Ferreguti" 
Pour : "qgis-developer" , 
"qgis-user@lists.osgeo.org" 
Objet : [Qgis-developer] view only current feature in atlas maps
Date : ven., sept. 11, 2015 10:49

Hi list,

when I need to isolate the current atlas feature in map views I currently 
enable the rule based feature style and I set the rule to "$atlasfeatureid = 
$id" following this tutorial: 
http://nathanw.net/2013/12/02/waiting-for-qgis-2-2-highlighting-current-atlas-feature/
I'm wondering if there is an easier method, accessible for the common gis user, 
to do this avoiding expressions and complex styling methods, and if it's 
possible to control this behaviour directly from "controlled by altas" slot in 
map item properties tab as from the attached sample image.

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

[Qgis-user] Wrap-around error for global views

2015-09-11 Thread Lester Anderson
Hello,

Is there a fix for the wrap-around error for coastline data which is
-180/180, but instead you need a Pacific centred view? As expected,
shifting the longitude 180 degrees gives all the connecting lines across
the view.

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

Re: [Qgis-user] [SPAM] display menu "settings" after customization went wrong

2015-09-11 Thread Piotr Kania
Hi! If You want restore default settings just simply delete in editor 
registry (regedit.exe in win7x64) that:

[HKEY_CURRENT_USER\Software\QGIS]

If i want to save my Qgis settings (shortcuts and all the rest) - I 
export that things to text file with ".reg" extension - You can try in 
that way "take" your settings to another windows after installing Qgis 
(it works for both installer's versions - Osgeo4w and traditional).


W dniu 2015-09-11 o 09:35, Peter Schürch pisze:


Dear List

I used „settings“ > „customization“ to remove the menu „settings“ from 
the GUI.


I wrongly assumed that this would only affect the current project file 
but now I realised that this affects the qgis-installation on my 
machine as a whole… stupid.


Is there a way to “reset” the customization or an alternative way to 
call the customaztion dialogue undo my settings??


Thanks for your help!

Best regards

Peter Schürch

--
Meier und Partner AG
Freiestrasse 26 
8570 Weinfelden 
www.meierpartner.ch 
T +41 71 626 5115 



___
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] image export ?

2015-09-11 Thread image93
Good afternoon, 

In input, i have a raster *tif file (resolution : 50 cms / compress mode
JPEG with compress quality 75/100). 

I would like to do an georeferenced export representing the raster file and
several vector files that i added the in map canvas 
  
Idealy,in output, i would like create a file with the same input parameters
(tif format, 50 cms resolution, compress mode jpef 75/100) . 

Is it possible to do that with qgis?   

Thanks.  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/image-export-tp5223779.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Making oblique maps in Qgis: is it possible?

2015-09-11 Thread Raymond Nijssen

Hi Jens,

Could you post an example of what you are looking for?

Actually, I don't think QGIS can do such maps but maybe it is possible 
using some user defined map projection.


Also have a look at the Globe plugin:
https://www.youtube.com/watch?v=ZDDe-sVogNU

Regards,
Raymond




On 11-09-15 11:00, Jens Verwaerde | Natuurpunt CVN wrote:

I'd like to make an oblique (bird's eye) view of some of my maps.
Theoretically this is possible by exporting a map to an image manipulation
program and then using a tilting function, but ... that's an extra step and
... everything on the map is then "obliqued" including labels etc.

But I don't want everything to become oblique; text labels, arrows etc.
should stay "normal" and floating in the air above the map, so only the map
should be oblique.

Also is it possible to have diagrams that "point from the sky" to the
location on the oblique map instead of also becoming oblique?



Jens Verwaerde
lesgever natuurbeheer en natuurfotografie

t: 015 29 72 29 | gsm: 0491 15 03 57


Website: http://cvn.natuurpunt.be
Facebook: www.facebook.com/NatuurpuntCVN



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



--
Terglobo
Ampèrestraat 110
5223 CT 's-Hertogenbosch
06-25314983
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Making oblique maps in Qgis: is it possible?

2015-09-11 Thread Enrique
You can try to build a 3d view with Qgis2threejs plugin. It's very nice!

- If you don't have a base DEM, you can select "Flat plane" option, to
start testing
- you are able to export labels to display in the 3D space
- test some interesting output options...

The html file can be opened with a browser with Webgl capabilities (not
very aged PCs).

Enrique.


2015-09-11 11:00 GMT+02:00 Jens Verwaerde | Natuurpunt CVN <
jens.verwae...@cvn.natuurpunt.be>:

> I'd like to make an oblique (bird's eye) view of some of my maps.
> Theoretically this is possible by exporting a map to an image manipulation
> program and then using a tilting function, but ... that's an extra step and
> ... everything on the map is then "obliqued" including labels etc.
>
> But I don't want everything to become oblique; text labels, arrows etc.
> should stay "normal" and floating in the air above the map, so only the map
> should be oblique.
>
> Also is it possible to have diagrams that "point from the sky" to the
> location on the oblique map instead of also becoming oblique?
>
>
>
> Jens Verwaerde
> lesgever natuurbeheer en natuurfotografie
>
> t: 015 29 72 29 | gsm: 0491 15 03 57
>
>
> Website: http://cvn.natuurpunt.be
> Facebook: www.facebook.com/NatuurpuntCVN
>
>
>
> ___
> 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] Re : [Qgis-developer] view only current feature in atlas maps

2015-09-11 Thread kimaidou
Another proposal : in the gui for rule base rendering, we could add a new
column in the rules tables, name "Activate only for atlas", which will
allow the user to toggle each rule. If the checkbox is checked, the rule is
used only in atlas.
This way the user can tune more easily, in the context of QGIS vector layer
properties.
I do not like having checkbox in the composer, since the composer is not
always opened and visible.

Michaël

2015-09-11 12:16 GMT+02:00 Junior :

> Hi,
> i don't know if there is a work around but a big +1 for your UI proposal.
>
> Envoyé depuis mon HTC
>
> - Reply message -
> De : "Enrico Ferreguti" 
> Pour : "qgis-developer" , "
> qgis-user@lists.osgeo.org" 
> Objet : [Qgis-developer] view only current feature in atlas maps
> Date : ven., sept. 11, 2015 10:49
>
> Hi list,
>
> when I need to isolate the current atlas feature in map views I currently
> enable the rule based feature style and I set the rule to "$atlasfeatureid
> = $id" following this tutorial:
> http://nathanw.net/2013/12/02/waiting-for-qgis-2-2-highlighting-current-atlas-feature/
> I'm wondering if there is an easier method, accessible for the common gis
> user, to do this avoiding expressions and complex styling methods, and if
> it's possible to control this behaviour directly from "controlled by altas"
> slot in map item properties tab as from the attached sample image.
>
> Regards
> Enrico Ferreguti
>
> ___
> 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] Re : [SPAM] display menu "settings" after customization went wrong

2015-09-11 Thread Junior
Hi, an answer at 
http://gis.stackexchange.com/questions/59373/how-to-restore-original-settings-menu-in-qgis-customization

Envoyé depuis mon HTC

- Reply message -
De : "Piotr Kania" 
Pour : 
Objet : [Qgis-user] [SPAM] display menu "settings" after customization went 
wrong
Date : ven., sept. 11, 2015 13:04

Hi! If You want restore default settings just simply delete in
editor registry (regedit.exe in win7x64) that:

[HKEY_CURRENT_USER\Software\QGIS]



If i want to save my Qgis settings (shortcuts and all the rest) - I
export that things to text file with ".reg" extension - You can try
in that way "take" your settings to another windows after installing
Qgis (it works for both installer's versions - Osgeo4w and
traditional).



W dniu 2015-09-11 o 09:35, Peter Schürch pisze:






Dear List
I used „settings“ >
„customization“ to remove the menu „settings“ from the GUI.

I wrongly assumed that
this would only affect the current project file but now I
realised that this affects the qgis-installation on my
machine as a whole… stupid.
Is there a way to
“reset” the customization or an alternative way to call the
customaztion dialogue undo my settings??
Thanks for your help!
 
Best regards
Peter Schürch
--

Meier und Partner AG

Freiestrasse 26

8570 Weinfelden

www.meierpartner.ch 

T +41 71 626 5115
 







___
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] R: Re : [Qgis-developer] view only current feature inatlas maps

2015-09-11 Thread Enrico Ferreguti
I agree with Michaël. I do not mean to modify styles from composer. Checking 
the option in composer should not influence map styles. It should only control 
feature visibility on atlas map item. 

Enrico.


Da: kimaidou
Inviato: venerdì 11 settembre 2015 14:04
A: Junior
Cc: Enrico Ferreguti;qgis-developer;qgis-user@lists.osgeo.org
Oggetto: Re: [Qgis-user] Re : [Qgis-developer] view only current feature 
inatlas maps


Another proposal : in the gui for rule base rendering, we could add a new 
column in the rules tables, name "Activate only for atlas", which will allow 
the user to toggle each rule. If the checkbox is checked, the rule is used only 
in atlas.
This way the user can tune more easily, in the context of QGIS vector layer 
properties. 
I do not like having checkbox in the composer, since the composer is not always 
opened and visible.
Michaël

2015-09-11 12:16 GMT+02:00 Junior :
Hi,
i don't know if there is a work around but a big +1 for your UI proposal.

Envoyé depuis mon HTC

- Reply message -
De : "Enrico Ferreguti" 
Pour : "qgis-developer" , 
"qgis-user@lists.osgeo.org" 
Objet : [Qgis-developer] view only current feature in atlas maps
Date : ven., sept. 11, 2015 10:49

Hi list,
when I need to isolate the current atlas feature in map views I currently 
enable the rule based feature style and I set the rule to "$atlasfeatureid = 
$id" following this tutorial: 
http://nathanw.net/2013/12/02/waiting-for-qgis-2-2-highlighting-current-atlas-feature/
I'm wondering if there is an easier method, accessible for the common gis user, 
to do this avoiding expressions and complex styling methods, and if it's 
possible to control this behaviour directly from "controlled by altas" slot in 
map item properties tab as from the attached sample image.
Regards
Enrico Ferreguti

___
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] Problems saving layer style as SLD for use in Geoserver 2.5

2015-09-11 Thread Chris Buckmaster
Hi

I am trying to style my layers in Geoserver with the SLD files I am creating 
through QGIS but am encountering some errors, for example when using diagonal 
lines for a polygon layer:-

* Parsing failed for Filter: java.lang.RuntimeException: Unable to find 
function Literal
* line 23: cvc-complex-type.2.4.a: Invalid content was found starting 
with element 'ogc:Filter'. One of '{"http://www.opengis.net/ogc":expression}' 
is expected.
* line 24: cvc-complex-type.2.4.a: Invalid content was found starting 
with element 'ogc:Literal'. One of '{"http://www.opengis.net/ogc":spatialOps, 
"http://www.opengis.net/ogc":comparisonOps, 
"http://www.opengis.net/ogc":logicOps, "http://www.opengis.net/ogc":_Id}' is 
expected.

I have read that there are some issues when trying to use SLD generated files 
from QGIS in Geoserver as they are not set in the correct standard? Is that 
right? Are there any plugins that might export the styles out for use in 
Geoserver? I don't really want to have to write all my styles from scratch :(

My SLD is below:-


http://www.opengis.net/sld"; 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.1.0" 
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xsi:schemaLocation="http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd"; 
xmlns:se="http://www.opengis.net/se";>
  
air_quality_management_areas

  air_quality_management_areas
  

  Single symbol
  

  

  
horline

  #5c98e6
  0.25

  
  5
  
http://www.opengis.net/ogc";>
  45

  

  

  
  

  

  
horline

  #5c98e6
  0.25

  
  5
  
http://www.opengis.net/ogc";>
  135

  
  
0
0
  

  

  
  

  #5c98e6
  0.5
  bevel
  square

  

  

  



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

[Qgis-user] Saved layer styles in PostGIS not displaying in QGIS 2.10.1

2015-09-11 Thread Chris Buckmaster
Hi

I have saved default styles for all of my layers stored in PostGIS using the 
'save in database' option for the layer style. After installing 2.10.1 I have 
noticed that when bringing them into a new project the default styles are not 
being displayed.

Do I need to resave the styles again in 2.10.1 or is this a known issue?

Thanks


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

Re: [Qgis-user] Saved layer styles in PostGIS not displaying in QGIS 2.10.1

2015-09-11 Thread Paolo Cavallini
Il 11/09/2015 16:19, Chris Buckmaster ha scritto:

> I have saved default styles for all of my layers stored in PostGIS using
> the ‘save in database’ option for the layer style. After installing
> 2.10.1 I have noticed that when bringing them into a new project the
> default styles are not being displayed.
> 
>  
> 
> Do I need to resave the styles again in 2.10.1 or is this a known issue?

did you thick the option to use it as default?

-- 
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


Re: [Qgis-user] Re : [SPAM] display menu "settings" after customization went wrong

2015-09-11 Thread Peter Schürch
Junior, thanks for the hint! Forgot about gis.stackexchange… sorry to bother 
you guys.
Peter

Von: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von Junior
Gesendet: Freitag, 11. September 2015 14:22
An: Piotr Kania; qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Re : [SPAM] display menu "settings" after customization 
went wrong

Hi, an answer at 
http://gis.stackexchange.com/questions/59373/how-to-restore-original-settings-menu-in-qgis-customization

Envoyé depuis mon HTC

- Reply message -
De : "Piotr Kania" mailto:p.ka...@op.pl>>
Pour : mailto:qgis-user@lists.osgeo.org>>
Objet : [Qgis-user] [SPAM] display menu "settings" after customization went 
wrong
Date : ven., sept. 11, 2015 13:04

Hi! If You want restore default settings just simply delete in editor registry 
(regedit.exe in win7x64) that:
[HKEY_CURRENT_USER\Software\QGIS]

If i want to save my Qgis settings (shortcuts and all the rest) - I export that 
things to text file with ".reg" extension - You can try in that way "take" your 
settings to another windows after installing Qgis (it works for both 
installer's versions - Osgeo4w and traditional).

W dniu 2015-09-11 o 09:35, Peter Schürch pisze:

Dear List
I used „settings“ > „customization“ to remove the menu „settings“ from the GUI.
I wrongly assumed that this would only affect the current project file but now 
I realised that this affects the qgis-installation on my machine as a whole… 
stupid.
Is there a way to “reset” the customization or an alternative way to call the 
customaztion dialogue undo my settings??
Thanks for your help!

Best regards
Peter Schürch
--
Meier und Partner AG
Freiestrasse 26
8570 Weinfelden
www.meierpartner.ch
T +41 71 626 5115





___

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] Edit vertex using DMS coordinates Plugin?

2015-09-11 Thread Tudorache, Marian
Hi,

I am sorry to interfere in this thread but I think my findings will help you.
I also want to report a possible bug.

I have worked to a plugin which display the coordinate in DMS when the user 
execute a mouse left click on the map.
When the geometries are displayed on the projection, the conversion on the fly 
to DMS does not work properly.
To have properly displayed the coordinate in DMS or Decimal degree you need to 
re-project your data to a coordinate reference system (WGS84 or GRS80, or 
other).

For example:
If data is displayed in projection reference system (stereographic in my case) 
and data is stored in world coordinates system (X and Y).
X = -1081940.67048 and Y = 2561405.89514 will be displayed as 140040’13.726 W. 
There is not such latitude2561405053’42.489 N

This is the projection: +proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=1 +x_0=0 
+y_0=0 +a=6381816.160744 +b=6381816.160744 +units=m +no_defs


The conversion is done by the function toDegreesMinutesSeconds from QsgPoint 
class.
It looks the function is not able to do to re-projection back to the spheroid. 
I think this is a bug.

The function toDegreesMinutesSeconds works properly if it is applied to Decimal 
degree coordinate.

What to be done!
First you need to reproject your data by using QgsCoordinateTransform .
Ex.
crs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core. 
QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized coordinate 
reference system
prs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core. 
QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized projected 
reference system
transformation = = qgis.core. QgsCoordinateTransform(crs, prs)

#transformation object is used to re-project your coordinates.
For example:
point = qgis.core.QgsPoint(X, Y) # X and Y are in world coordinate system meters
#apply transformation to reproject your point
reprojectedPoint = transformation.transform(point, 
QgsCoordinateTransform.ForwardTransform)
print reprojectedPoint #you will get the point in decimal degrees.
pointDMS = reprojectedPoint. toDegreesMinutesSeconds(3, True, True) #your will 
get the point in degrees minutes seconds with respect to crs

if you want to input DMS data then you have to do the same steps but in reverse:

1.   Convert DMS to decimal degrees;

2.   Apply QgsCoordinateTransform to decimal degrees so you get X and Y.

You can build a plugin based on this class. Check out the function drawLine 
where I input a lat and long in DMS format and write the line geometry in x/y 
format. If you have write your geometry in lat and long decimal degrees you do 
not have to apply QgsCoordinateTransform.

#spam_activate_map_background
import qgis
from PyQt4 import QtGui, QtCore


class LineGeometryDMSInput:
def __init__(self):
self.__prs  = qgis.core.QgsCoordinateReferenceSystem(16, 
qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
self.__crs = qgis.core.QgsCoordinateReferenceSystem(10, 
qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
self.__transformation = qgis.core.QgsCoordinateTransform(self.__ prs  , 
self.__ crs)


def drawLine(self, lineStartDMS, lineEndDMS):
start_Point = lineStartDMS.split(',')
end_Point = lineEndDMS.split(',')

startLine = (self.fromDmsToDecimal(start_Point[0], 5), 
self.fromDmsToDecimal(start_Point[1], 5))
endLine = (self.fromDmsToDecimal(end_Point[0], 5), 
self.fromDmsToDecimal(end_Point[1], 5))

line_start = qgis.core.QgsPoint(startLine[1], startLine[0])
line_end = qgis.core.QgsPoint(endLine[1], endLine[0])

pointGeomStartTransformed = self.__ 
transformation.transform(line_start, 
qgis.core.QgsCoordinateTransform.ForwardTransform)
pointGeomEndTransformed = self.__ transformation.transform(line_end, 
qgis.core.QgsCoordinateTransform.ForwardTransform)

layer = qgis.utils.iface.activeLayer()
latestID = int(layer.featureCount())
layer.startEditing()
caps = layer.dataProvider().capabilities()

if caps & qgis.core.QgsVectorDataProvider.AddFeatures:
featureLine = qgis.core.QgsFeature(layer.pendingFields())
geom = 
qgis.core.QgsGeometry.fromPolyline([pointGeomStartTransformed, 
pointGeomEndTransformed])
#if your data is stored in geographical coordinate use this
#geom = qgis.core.QgsGeometry.fromPolyline([line_start, line_end])

featureLine.setGeometry(geom)
layer.dataProvider().addFeatures([featureLine])

layer.commitChanges()
layer.updateExtents()
layer.startEditing()
qgis.utils.iface.zoomToActiveLayer()


def fromDmsToDecimal(self, dmsString, precision):
degree = float(dmsString.strip()[:2])
decimal_minutes = float(dmsString.strip()[2:-9])
decimal_seconds = float(dmsString.strip()[5:-2])

decimal = round(degree + decimal_minutes/60 + decimal_seconds/3600, 
precision)

Re: [Qgis-user] Edit vertex using DMS coordinates Plugin?

2015-09-11 Thread Alexandre Neto
Making a plugin might be an idea. Or some improve the numericalvertexedit
and numerical digitize plugins.

I will have a look into all your code.

Meanwhile, what is the name of your plugin? It sound useful fot mem.

Thanks

A 19h34 Sex, 11 de Set de 2015, Tudorache, Marian <
marian.tudora...@navcanada.ca> escreveu:

> Hi,
>
>
>
> I am sorry to interfere in this thread but I think my findings will help
> you.
>
> I also want to report a possible bug.
>
>
>
> I have worked to a plugin which display the coordinate in DMS when the
> user execute a mouse left click on the map.
>
> When the geometries are displayed on the projection, the conversion on the
> fly to DMS does not work properly.
>
> To have properly displayed the coordinate in DMS or Decimal degree you
> need to re-project your data to a coordinate reference system (WGS84 or
> GRS80, or other).
>
>
>
> For example:
>
> If data is displayed in projection reference system (stereographic in my
> case) and data is stored in world coordinates system (X and Y).
>
> X = -1081940.67048 and Y = 2561405.89514 will be displayed as 140040’13.726
> W. *There is not such latitude2561405053’42.489 N*
>
> *This is the projection: *+proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=1
> +x_0=0 +y_0=0 +a=6381816.160744 +b=6381816.160744 +units=m +no_defs
>
>
>
>
>
> The conversion is done by the function toDegreesMinutesSeconds from
> QsgPoint class.
>
> It looks the function is not able to do to re-projection back to the
> spheroid. I think this is a bug.
>
>
>
> The function toDegreesMinutesSeconds works properly if it is applied to
> Decimal degree coordinate.
>
>
>
> What to be done!
>
> First you need to reproject your data by using QgsCoordinateTransform .
>
> Ex.
>
> crs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core.
> QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized
> coordinate reference system
>
> prs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core.
> QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized
> projected reference system
>
> transformation = = qgis.core. QgsCoordinateTransform(crs, prs)
>
>
>
> #transformation object is used to re-project your coordinates.
>
> For example:
>
> point = qgis.core.QgsPoint(X, Y) # X and Y are in world coordinate system
> meters
>
> #apply transformation to reproject your point
>
> reprojectedPoint = transformation.transform(point,
> QgsCoordinateTransform.ForwardTransform)
>
> print reprojectedPoint #you will get the point in decimal degrees.
>
> pointDMS = reprojectedPoint. toDegreesMinutesSeconds(3, True, True) #your
> will get the point in degrees minutes seconds with respect to crs
>
>
>
> if you want to input DMS data then you have to do the same steps but in
> reverse:
>
> 1.   Convert DMS to decimal degrees;
>
> 2.   Apply QgsCoordinateTransform to decimal degrees so you get X and
> Y.
>
>
>
> You can build a plugin based on this class. Check out the function
> drawLine where I input a lat and long in DMS format and write the line
> geometry in x/y format. If you have write your geometry in lat and long
> decimal degrees you do not have to apply QgsCoordinateTransform.
>
>
>
> #spam_activate_map_background
>
> import qgis
>
> from PyQt4 import QtGui, QtCore
>
>
>
>
>
> class LineGeometryDMSInput:
>
> def __init__(self):
>
> self.__prs  = qgis.core.QgsCoordinateReferenceSystem(16,
> qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
>
> self.__crs = qgis.core.QgsCoordinateReferenceSystem(10,
> qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
>
> self.__transformation = qgis.core.QgsCoordinateTransform(self.__
> prs  , self.__ crs)
>
>
>
>
>
> def drawLine(self, lineStartDMS, lineEndDMS):
>
> start_Point = lineStartDMS.split(',')
>
> end_Point = lineEndDMS.split(',')
>
>
>
> startLine = (self.fromDmsToDecimal(start_Point[0], 5),
> self.fromDmsToDecimal(start_Point[1], 5))
>
> endLine = (self.fromDmsToDecimal(end_Point[0], 5),
> self.fromDmsToDecimal(end_Point[1], 5))
>
>
>
> line_start = qgis.core.QgsPoint(startLine[1], startLine[0])
>
> line_end = qgis.core.QgsPoint(endLine[1], endLine[0])
>
>
>
> pointGeomStartTransformed = self.__
> transformation.transform(line_start,
> qgis.core.QgsCoordinateTransform.ForwardTransform)
>
> pointGeomEndTransformed = self.__
> transformation.transform(line_end,
> qgis.core.QgsCoordinateTransform.ForwardTransform)
>
>
>
> layer = qgis.utils.iface.activeLayer()
>
> latestID = int(layer.featureCount())
>
> layer.startEditing()
>
> caps = layer.dataProvider().capabilities()
>
>
>
> if caps & qgis.core.QgsVectorDataProvider.AddFeatures:
>
> featureLine = qgis.core.QgsFeature(layer.pendingFields())
>
> geom =
> qgis.core.QgsGeometry.fromPolyline([pointGeomStartTransformed,
> pointGeomEndTransformed])
>
> #if your data is stored in geographical coordinat

Re: [Qgis-user] Edit vertex using DMS coordinates Plugin?

2015-09-11 Thread Tudorache, Marian
Hi Alexandre,

It is actually not a plugin.
It is part of an application which launched aside of QGIS to help the users to 
draw airspaces.
Their requirements are to work on the projected coordinate system with the data 
stored in world coordinate system but when they add geometries they want to 
input points in DMS format.

I build a Widget GUI using QtDesigner (see the picture)

The user enters start point of the line as: DD MM SS.XXX H, DD MM SS.XXX L
Where:
DD - degrees
MM - minutes
SS - seconds
XXX - decimals for seconds
H - is the hemisphere N or S
L - is the W for West and E for East

Then the drawLine is called  and executes the drawing of the line.

If I have time I will make a plugin. You are welcome to do it if you have more 
time than me.

Thanks,
Marian


From: Alexandre Neto [mailto:senhor.n...@gmail.com]
Sent: September-11-15 3:58 PM
To: Tudorache, Marian; Pedro Venâncio
Cc: QGIS User
Subject: Re: [Qgis-user] Edit vertex using DMS coordinates Plugin?


Making a plugin might be an idea. Or some improve the numericalvertexedit and 
numerical digitize plugins.

I will have a look into all your code.

Meanwhile, what is the name of your plugin? It sound useful fot mem.

Thanks

A 19h34 Sex, 11 de Set de 2015, Tudorache, Marian 
mailto:marian.tudora...@navcanada.ca>> escreveu:
Hi,

I am sorry to interfere in this thread but I think my findings will help you.
I also want to report a possible bug.

I have worked to a plugin which display the coordinate in DMS when the user 
execute a mouse left click on the map.
When the geometries are displayed on the projection, the conversion on the fly 
to DMS does not work properly.
To have properly displayed the coordinate in DMS or Decimal degree you need to 
re-project your data to a coordinate reference system (WGS84 or GRS80, or 
other).

For example:
If data is displayed in projection reference system (stereographic in my case) 
and data is stored in world coordinates system (X and Y).
X = -1081940.67048 and Y = 2561405.89514 will be displayed as 140040’13.726 W. 
There is not such latitude2561405053’42.489 N

This is the projection: +proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=1 +x_0=0 
+y_0=0 +a=6381816.160744 +b=6381816.160744 +units=m +no_defs


The conversion is done by the function toDegreesMinutesSeconds from QsgPoint 
class.
It looks the function is not able to do to re-projection back to the spheroid. 
I think this is a bug.

The function toDegreesMinutesSeconds works properly if it is applied to Decimal 
degree coordinate.

What to be done!
First you need to reproject your data by using QgsCoordinateTransform .
Ex.
crs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core. 
QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized coordinate 
reference system
prs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core. 
QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized projected 
reference system
transformation = = qgis.core. QgsCoordinateTransform(crs, prs)

#transformation object is used to re-project your coordinates.
For example:
point = qgis.core.QgsPoint(X, Y) # X and Y are in world coordinate system meters
#apply transformation to reproject your point
reprojectedPoint = transformation.transform(point, 
QgsCoordinateTransform.ForwardTransform)
print reprojectedPoint #you will get the point in decimal degrees.
pointDMS = reprojectedPoint. toDegreesMinutesSeconds(3, True, True) #your will 
get the point in degrees minutes seconds with respect to crs

if you want to input DMS data then you have to do the same steps but in reverse:

1.   Convert DMS to decimal degrees;

2.   Apply QgsCoordinateTransform to decimal degrees so you get X and Y.

You can build a plugin based on this class. Check out the function drawLine 
where I input a lat and long in DMS format and write the line geometry in x/y 
format. If you have write your geometry in lat and long decimal degrees you do 
not have to apply QgsCoordinateTransform.

#spam_activate_map_background
import qgis
from PyQt4 import QtGui, QtCore


class LineGeometryDMSInput:
def __init__(self):
self.__prs  = qgis.core.QgsCoordinateReferenceSystem(16, 
qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
self.__crs = qgis.core.QgsCoordinateReferenceSystem(10, 
qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
self.__transformation = qgis.core.QgsCoordinateTransform(self.__ prs  , 
self.__ crs)


def drawLine(self, lineStartDMS, lineEndDMS):
start_Point = lineStartDMS.split(',')
end_Point = lineEndDMS.split(',')

startLine = (self.fromDmsToDecimal(start_Point[0], 5), 
self.fromDmsToDecimal(start_Point[1], 5))
endLine = (self.fromDmsToDecimal(end_Point[0], 5), 
self.fromDmsToDecimal(end_Point[1], 5))

line_start = qgis.core.QgsPoint(startLine[1], startLine[0])
line_end = qgis.core.QgsPoint(endLine[1], endLine[0])

pointGeomStartTransformed = self.__ 
transformation.transform(

Re: [Qgis-user] Edit vertex using DMS coordinates Plugin?

2015-09-11 Thread Tudorache, Marian
Hi again,

I think I sent the code with a small bug.

Replace this  line:
self.__transformation = qgis.core.QgsCoordinateTransform(self.__ prs  , 
self.__ crs)

with

self.__transformation = qgis.core.QgsCoordinateTransform(self.__ crs , self.__ 
prs  )

let me know if it works.

Thanks,
Marian

From: Tudorache, Marian
Sent: September-11-15 5:32 PM
To: 'Alexandre Neto'; Pedro Venâncio
Cc: QGIS User
Subject: RE: [Qgis-user] Edit vertex using DMS coordinates Plugin?

Hi Alexandre,

It is actually not a plugin.
It is part of an application which launched aside of QGIS to help the users to 
draw airspaces.
Their requirements are to work on the projected coordinate system with the data 
stored in world coordinate system but when they add geometries they want to 
input points in DMS format.

I build a Widget GUI using QtDesigner (see the picture)

The user enters start point of the line as: DD MM SS.XXX H, DD MM SS.XXX L
Where:
DD - degrees
MM - minutes
SS - seconds
XXX - decimals for seconds
H - is the hemisphere N or S
L - is the W for West and E for East

Then the drawLine is called  and executes the drawing of the line.

If I have time I will make a plugin. You are welcome to do it if you have more 
time than me.

Thanks,
Marian


From: Alexandre Neto [mailto:senhor.n...@gmail.com]
Sent: September-11-15 3:58 PM
To: Tudorache, Marian; Pedro Venâncio
Cc: QGIS User
Subject: Re: [Qgis-user] Edit vertex using DMS coordinates Plugin?


Making a plugin might be an idea. Or some improve the numericalvertexedit and 
numerical digitize plugins.

I will have a look into all your code.

Meanwhile, what is the name of your plugin? It sound useful fot mem.

Thanks

A 19h34 Sex, 11 de Set de 2015, Tudorache, Marian 
mailto:marian.tudora...@navcanada.ca>> escreveu:
Hi,

I am sorry to interfere in this thread but I think my findings will help you.
I also want to report a possible bug.

I have worked to a plugin which display the coordinate in DMS when the user 
execute a mouse left click on the map.
When the geometries are displayed on the projection, the conversion on the fly 
to DMS does not work properly.
To have properly displayed the coordinate in DMS or Decimal degree you need to 
re-project your data to a coordinate reference system (WGS84 or GRS80, or 
other).

For example:
If data is displayed in projection reference system (stereographic in my case) 
and data is stored in world coordinates system (X and Y).
X = -1081940.67048 and Y = 2561405.89514 will be displayed as 140040’13.726 W. 
There is not such latitude2561405053’42.489 N

This is the projection: +proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=1 +x_0=0 
+y_0=0 +a=6381816.160744 +b=6381816.160744 +units=m +no_defs


The conversion is done by the function toDegreesMinutesSeconds from QsgPoint 
class.
It looks the function is not able to do to re-projection back to the spheroid. 
I think this is a bug.

The function toDegreesMinutesSeconds works properly if it is applied to Decimal 
degree coordinate.

What to be done!
First you need to reproject your data by using QgsCoordinateTransform .
Ex.
crs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core. 
QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized coordinate 
reference system
prs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core. 
QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized projected 
reference system
transformation = = qgis.core. QgsCoordinateTransform(crs, prs)

#transformation object is used to re-project your coordinates.
For example:
point = qgis.core.QgsPoint(X, Y) # X and Y are in world coordinate system meters
#apply transformation to reproject your point
reprojectedPoint = transformation.transform(point, 
QgsCoordinateTransform.ForwardTransform)
print reprojectedPoint #you will get the point in decimal degrees.
pointDMS = reprojectedPoint. toDegreesMinutesSeconds(3, True, True) #your will 
get the point in degrees minutes seconds with respect to crs

if you want to input DMS data then you have to do the same steps but in reverse:

1.   Convert DMS to decimal degrees;

2.   Apply QgsCoordinateTransform to decimal degrees so you get X and Y.

You can build a plugin based on this class. Check out the function drawLine 
where I input a lat and long in DMS format and write the line geometry in x/y 
format. If you have write your geometry in lat and long decimal degrees you do 
not have to apply QgsCoordinateTransform.

#spam_activate_map_background
import qgis
from PyQt4 import QtGui, QtCore


class LineGeometryDMSInput:
def __init__(self):
self.__prs  = qgis.core.QgsCoordinateReferenceSystem(16, 
qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
self.__crs = qgis.core.QgsCoordinateReferenceSystem(10, 
qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
self.__transformation = qgis.core.QgsCoordinateTransform(self.__ prs  , 
self.__ crs)


def drawLine(self, lineStartDMS, lineEndDMS):
start_Point

[Qgis-user] Setting up a local user group: How to do it?

2015-09-11 Thread Bernd Vogelgesang

Hi,

I'm an enthusiastic user of QGIS, but sometimes I feel quite lonely with
this passion over here.
In my (small) company, we now have some people using it, but they just use
it and that's it.
So I get no feedback or new ideas from them. Boring.

I'm living in the metropolitan area of Nuremberg in Bavaria, so approx.
2.5 million people live around here, which should be quite a good basis to
find some people interested in founding a local/regional QGIS user group.

So far, I could not identify anyone from my region on this mailing list
nor anywhere else.

What would be the best strategy to find and attract people from my region
to start such a group (besides standing naked at the Nuremberg train
station at 5 pm, holding a banner with "I would like to start a local QGIS
user group") ?

Any ideas?

Cheers
Bernd

--
Bernd Vogelgesang
Siedlerstraße 2
91083 Baiersdorf/Igelsdorf
Tel: 09133-825374
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user