Re: [Qgis-user] QGIS 3 Standalone Python Script

2018-08-05 Thread Chris B
Thanks for the tip - nothing odd stands out... 

['/Applications/QGIS3.app/Contents/Resources/python/plugins', 
 '/Applications/QGIS3.app/Contents/Resources/python/', 
 '/Users/cbarnes/scripts', 
 '/Users/cbarnes/scripts', 
 '/Applications/QGIS3.app/Contents/Resources/python', 
 '/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', 
 '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6', 

'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', 
 '/Users/cbarnes/Library/Python/3.6/lib/python/site-packages', 

'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages']

Is there one that is obvious is missing?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 3 Standalone Python Script

2018-08-05 Thread Santiago Higuera

From python console, inside QGIS, you can see the active path with:

import sys
print(sys.path)


El 05/08/18 a las 21:47, Chris B escribió:

Since I am having the same error as DT, I tried your suggestion but it still
returns the same error.  Is there anything in this bash profile that would
cause problems?

export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Applications/QGIS3.app/Contents/MacOS/lib/:/Applications/QGIS3.app/Contents/Frameworks/
export
PYTHONPATH=$PYTHONPATH:/Applications/QGIS3.app/Contents/MacOS/../Resources/python
  
export PATH=~$PYTHONPATH:$PATH

export PATH=~/Library/Frameworks/GDAL.framework/Versions/2.2/Programs:$PATH
export PATH=~/Applications/QGIS3.app/Contents/Resources/python:$PATH

export PATH=~/.local/bin:$PATH

source ~/.bashrc

# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH




--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


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

Re: [Qgis-user] QGIS 3 Standalone Python Script

2018-08-05 Thread Chris B
Since I am having the same error as DT, I tried your suggestion but it still
returns the same error.  Is there anything in this bash profile that would
cause problems?

export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Applications/QGIS3.app/Contents/MacOS/lib/:/Applications/QGIS3.app/Contents/Frameworks/
export
PYTHONPATH=$PYTHONPATH:/Applications/QGIS3.app/Contents/MacOS/../Resources/python
 
export PATH=~$PYTHONPATH:$PATH
export PATH=~/Library/Frameworks/GDAL.framework/Versions/2.2/Programs:$PATH
export PATH=~/Applications/QGIS3.app/Contents/Resources/python:$PATH

export PATH=~/.local/bin:$PATH

source ~/.bashrc

# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH




--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Support for DWG?

2018-08-05 Thread Boaz Bar Ilan
hi
thanks
I didn't succeed importing
 I followed the instructions
it seems that the created geopackage file is not correct
is there accurate instruction ?
thanks
boaz


2018-08-02 15:53 GMT+03:00 Andreas Neumann :

> Hi Micha,
>
> This is already implemeted quite a long time ago. You have to use Menu
> "Project" --> "Import/Export" --> "Import Layers from DWG/DXF".
>
> What it does: it imports the DWG/DXF into a geopackage and tries to keep
> styling and labeling as good as possible. DXF blocks are converted to SVGs.
> It should work fine in general, but of course there can be issues.
>
> The major thing I am still missing is an easy way to georeference vectors
> in QGIS, since many DWG/DXFs use a local coordinate system.
>
> Could you please report back if it works fine for you?
>
> Greetings,
> Andreas
>
> On 2018-08-02 14:43, Micha Silver wrote:
>
> Over the years the question of reading DWG format files has come up [1].
> And there was even a crowd funding campaign some years ago [2] . Andreas'
> initial design requirements document [3] is still sitting on google docs.
> Does anyone have some update on this?
>
> Thanks,
> Micha
>
> [1] https://lists.osgeo.org/pipermail/qgis-user/2016-October/038043.html
> [2] https://blog.qgis.org/2015/12/08/crowd-funding-project-for-
> reading-cad-documents-in-qgis/
> [3] https://docs.google.com/document/d/1NJv1lwd5TnWdV-
> fTuW7g5ts1O8r3vb46xYeAIQ_BwGw/edit
>
> --
> Micha Silver
> Ben Gurion Univ.
> Sde Boker, Remote Sensing Lab
> +972-523-665918
>
>
> ___
> 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 Standalone Python Script

2018-08-05 Thread William Kyngesburye
Did you install PyQt5 separately from QGIS?  It's included in the QGIS app, but 
if you append QGIS to the python path python will not see the QGIS PyQt5.

Try an insert instead:

sys.path.insert(0,'/Applications/QGIS3.app/Contents/Resources/python/')
sys.path.insert(0,'/Applications/QGIS3.app/Contents/Resources/python/plugins')


> On Aug 3, 2018, at 5:17 PM, DT  wrote:
> 
> OSX, version 10.13.6
> Python 3.6.6
> QGIS 3.2.1
> 
> QGIS itself is working fine with no errors, but I'm trying to write a 
> standalone python script that utilizes a QGIS3 tool and I keep running into 
> Qt errors.  This works fine:
> 
> import os
> import sys
> sys.path.append('/Applications/QGIS3.app/Contents/Resources/python/')
> sys.path.append('/Applications/QGIS3.app/Contents/Resources/python/plugins')
> from qgis.core import *
> 
> But as soon as I try to do:
> 
> app = QgsApplication([],True)
> 
> I get the following error:
> 
> >>> app = QgsApplication([],True)
> This application failed to start because it could not find or load the Qt 
> platform plugin "cocoa"
> in "".
> 
> Reinstalling the application may fix this problem.
> Abort trap: 6
> 
> Anybody have an idea where I'm going wrong?  My Google fu has only managed to 
> turn up setting paths for Windows and not OSX.  Thanks!
> 
> DT
> ___
> 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

-
William Kyngesburye 
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying, fighting, and 
all for things that the beasts of the jungle would not deign to possess - money 
to purchase the effeminate pleasures of weaklings.  And yet withal bound down 
by silly customs that make them slaves to their unhappy lot while firm in the 
belief that they be the lords of creation enjoying the only real pleasures of 
existence

- the wisdom of Tarzan


___
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] Popup content aligned to the right

2018-08-05 Thread Yossi Rokni
Hi,

I created a web map with a point layer.

The content of the layers' attributes is in Hebrew.

The content is displayed in the popup.

It is aligned to left.



Is there an option to display the popup content aligned to the right? How?



I use QGIS version 2.18.20

I created the web map using qgis2web plugin with OpenLayers



Thanks

Yossi
___
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] Fwd: QGIS web map - add author name

2018-08-05 Thread Yossi Rokni
Found it.
I created a new template in C:\Users\username\.qgis2\qgis2web\templates
folder with the required author name.
Before I export (in version 2.18) the map, I select this template, and then
I export.
t works, even after updating the map with QGIS Desktop.

‫בתאריך יום ה׳, 2 באוג׳ 2018 ב-14:17 מאת ‪Philip Barlow‬‏ <‪
phil...@pembrokeshirecoast.org.uk‬‏>:‬

> Hi Yossi,
>
>
>
> No problem.
>
>
>
> Qgis2web used to have the option to use templates, where you would be able
> to add these kinds of things to the template so you wouldn’t have to
> manually add them each time. I don’t see that in the QGIS 3.x version. I’m
> sure Tom will be able to help there.
>
>
>
> Phil
>
>
>
> *From:* Yossi Rokni [mailto:yossi.ro...@gmail.com]
> *Sent:* 02 August 2018 11:33
> *To:* Philip Barlow
> *Cc:* qgis-user@lists.osgeo.org
> *Subject:* Re: [Qgis-user] Fwd: QGIS web map - add author name
>
>
>
> Thanks Phil,
>
> This really helped and solved the problem.
>
>
>
> However I have some issues:
>
>
>
> I worked according to your instructions and updated the index.html file -
> It solved the problem.
>
> But when I publish again the web map, I get a new index.html file without
> this manual update.
>
>
>
> I looked to the link you sent me in github. They discuss there doing this
> kind of manual update in the template. So I went to the templates files
> in C:\Users\username\.qgis2\qgis2web\templates folder and made this manual
> update in the template files.
>
> This solves the problem when I re-publish the map.
>
> But it doesn't solve the problem when I make an update in the map and save
> it in QGIS Desktop.
>
>
>
> I guess a solution for this requires an enhancement in QGIS Desktop.
>
> Per your advice I opened a new enhancement request on github.
>
>
>
> Thanks again
>
> Yossi
>
>
>
>
>
> ‫בתאריך יום ה׳, 2 באוג׳ 2018 ב-11:19 מאת ‪Philip Barlow‏ <‪
> phil...@pembrokeshirecoast.org.uk‏>:
>
> Hi Yossi,
>
>
>
> You could just add something like this to the index.html output at the
> bottom between  and the ?
>
>
>
> 
>
> 
>
> Your title
>
>
>
> 
>
>
>
> The z-index is important, make sure you add it to the div id for the map
> or else your title will be underneath your map and you won’t see it.
>
>
>
> Like this:
>
> *
>
>
>
> You’ll find some more info here:
>
> https://github.com/tomchadwin/qgis2web/issues/415
>
>
>
> You could put in an enhancement request on github?
>
>
>
> Hope this helps.
>
>
>
> Phil
>
>
>
>
>
> *From**:* Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] *On Behalf
> Of* Yossi Rokni
> *Sent**:* 02 August 2018 06:57
> *To**:* qgis-user@lists.osgeo.org
> *Subject**:* [Qgis-user] Fwd: QGIS web map - add author name
>
>
>
> I created my first web map in QGIS, using the good instructions in this
> web page:
>
> https://www.qgistutorials.com/en/docs/web_mapping_with_qgis2web.html
>
>
>
> I want to add a fixed text
>
> (such as author's name)
>
> at the bottom of the map.
>
> Is it possible to do it by updating the file qgis2web.js or any other way?
>
>
>
> I am not familiar with java script - it would be great if you could
> provide me
>
> an example of
>
> the relevant java script command that I need to add into qgis2web.js.
>
>
>
> Some more details:
>
> I use QGIS version 2.18 (I tried using QGIS 3.0, but I couldn't create a
> web map in this version).
>
> I created the web map using qgis2web plugin.
>
>
>
> Thanks
>
> Yossi
>
>
>
>
>
>
> Mae'r Awdurdod yn hapus i gyfathrebu yn Gymraeg neu yn Saesneg
>
> The Authority is happy to communicate in Welsh or English
>
> ***
>
> Website www.pembrokeshirecoast.org.uk
>
> Follow us on Twitter 
>
> Join us on Facebook
> 
>
> Watch us on Youtube
> 
>
> Look at us on Flickr 
>
>
>
>
>
> This email and any attached files should only be read by those persons to
> whom
> they are addressed and be used by them only for their intended purpose.
> If you are not the intended recipient please destroy all copies and
> inform the
> sender by return email.
>
> Please note that the contents of this email may be subject to public
> disclosure
> under the Freedom of Information Act 2000 and therefore the
> confidentiality of
> this message and any reply cannot be guaranteed.
>
>
>
> Click here  to
> view PCNPA Privacy Notice – Keeping your Information Safe
>
>
> For further information on the PCNPA please visit our website at
> www.pembrokeshirecoast.org.uk
>
>
> Please consider the environment before printing this email.
>
> Dim ond y personau hynny yr anfonwyd yr e-bost hwn atynt ac unrhyw
> ffeiliau sydd
> ynghlwm ddylid eu darllen, a dim ond hwy ddylid eu defnyddio at y diben y 

Re: [QGIS-it-user] QGIS >=3 traduzione geoprocessing: creategrid

2018-08-05 Thread Totò
Scusa riguarda sempre la traduzione:

nel geo-algoritmo Trasla:

trasla rispetto x,y,z e m;

la m è stata tradotta come metri, suggerisco: da valore in metri → misura m

 



-
https://pigrecoinfinito.wordpress.com/
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS >=3 traduzione geoprocessing: creategrid

2018-08-05 Thread Stefano Campus
Ok, fatto.
Non ho il PC sotto mano e quindi non avevo verificato.

s.

Il Dom 5 Ago 2018 10:34 Totò  ha scritto:

> skampus wrote
> > Fatto!
> > Grazie mille.
>
> Scusami,
> sotto a tipo raster è presente estensioni raster → Estensioni reticolo
>
> saluti
>
>
>
> -
> https://pigrecoinfinito.wordpress.com/
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS >=3 traduzione geoprocessing: creategrid

2018-08-05 Thread Totò
skampus wrote
> Fatto!
> Grazie mille.

Scusami,
sotto a tipo raster è presente estensioni raster → Estensioni reticolo

saluti



-
https://pigrecoinfinito.wordpress.com/
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS >=3 traduzione geoprocessing: creategrid

2018-08-05 Thread Stefano Campus
Fatto!
Grazie mille.

s.

Il Dom 5 Ago 2018 10:26 Totò  ha scritto:

> skampus wrote
> > corretto, grazie per la segnalazione.
> >
> > s.
>
> Ciao Stefano,
> ti è sfuggito di tradurre Tipo raster → Tipo reticolo allemo screenshot [0]
>
> grazie
>
> [0]  
>
>
>
> -
> https://pigrecoinfinito.wordpress.com/
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS >=3 traduzione geoprocessing: creategrid

2018-08-05 Thread Totò
skampus wrote
> corretto, grazie per la segnalazione.
> 
> s.

Ciao Stefano, 
ti è sfuggito di tradurre Tipo raster → Tipo reticolo allemo screenshot [0]

grazie

[0]   



-
https://pigrecoinfinito.wordpress.com/
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user