Re: [Qgis-user] gdal_rasterize settings

2019-02-25 Thread john polo

Dear List,
It was pointed out to me that I was only giving half of the necessary 
values for the resolution. It was an obvious mistake.


John

On 2/25/2019 4:32 PM, john polo wrote:


Dear List,

I'm using gdal_rasterize in QGIS 3.4.4. The GDAL version is 2.4.0. I 
have a vector of the state of Oklahoma that I am trying to convert to 
a raster. I am using the Rasterize command from the Processing 
Toolbox. I want to set the Output Raster Size Units to use 
Georeferenced units (30m x 30m). The vector is projected to UTM 14. In 
the command window, I can not figure out how to set the 
Width/Horizontal resolution to "30.0,30.0". I've tried this command 
several times and each time, I can't set the resolution to anything 
but one value, 30. The GDAL/OGR console call at the bottom the 
Rasterize window says:


gdal_rasterize -l ACS2016 -a density -tr 30.0 0.0 -a_nodata 0.0 -te 
141482.98459323175 3728541.225561033 918798.5521893443 
4103736.2372529646 -ot Float32 -of GTiff 
D:\projects_and_data\GIS\r_msis\ACS2016.shp 
C:/Users/s/AppData/Local/Temp/processing_bd713baa4f114400804f771fe874c9c5/dda5be259b534b75a2e87994501110cd/OUTPUT.tif


The same error:

ERROR 1: Wrong value for -tr parameter.

I can't manually edit this in the window and I'm not sure how else to 
run this command with the right settings.


John



--
Enlightenment is ego's ultimate disappointment.
-Chogyam Trungpa

___
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] geojson file permission settings

2019-02-25 Thread Mike Flannigan


I use qgis2web on a Windows machine.  Am I naive to think
that others cannot obtain the underlying data for this map:
http://www.mflan.com/temp/wind/index.html

If that data can be obtained I would like to know the
procedure one would use to obtain it.

I'm thinking my map is not geojson, but I could
be wrong.


Mike


On 2/21/2019 2:00 PM, qgis-user-requ...@lists.osgeo.org wrote:

I am using qgis and qgis2web to produce webmaps. Each layer is stored as a
javascript file containing the geojson data. This contains the geometry and
the attributions.

  


When publicly publishing the webmap I want people to view the map. But I
also want to protect the map data (geometry and attributions) from being
copied. It's my time and effort to produce the map (geometry and
attributions) and I don't mind people viewing it, but I do mind if map data
is being copied.

  


When I set the file permissions to 640, the webmap will not show. If I set
it to 644, the geojson data file is easily found (the index.html shows you
where it is stored) and then copied.

Are there other ways to easily host and publicly show webmaps but keep the
actual data protected?


___
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] gdal_rasterize settings

2019-02-25 Thread john polo

Dear List,

I'm using gdal_rasterize in QGIS 3.4.4. The GDAL version is 2.4.0. I 
have a vector of the state of Oklahoma that I am trying to convert to a 
raster. I am using the Rasterize command from the Processing Toolbox. I 
want to set the Output Raster Size Units to use Georeferenced units (30m 
x 30m). The vector is projected to UTM 14. In the command window, I can 
not figure out how to set the Width/Horizontal resolution to 
"30.0,30.0". I've tried this command several times and each time, I 
can't set the resolution to anything but one value, 30. The GDAL/OGR 
console call at the bottom the Rasterize window says:


gdal_rasterize -l ACS2016 -a density -tr 30.0 0.0 -a_nodata 0.0 -te 
141482.98459323175 3728541.225561033 918798.5521893443 
4103736.2372529646 -ot Float32 -of GTiff 
D:\projects_and_data\GIS\r_msis\ACS2016.shp 
C:/Users/s/AppData/Local/Temp/processing_bd713baa4f114400804f771fe874c9c5/dda5be259b534b75a2e87994501110cd/OUTPUT.tif


The same error:

ERROR 1: Wrong value for -tr parameter.

I can't manually edit this in the window and I'm not sure how else to 
run this command with the right settings.


John

___
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 Richard Duivenvoorde
On 25/02/2019 22.32, Groene Bij wrote:
> Oh, stupid me.
> I can right click on the Favourites item and then it says : add folder. That
> opens the windows10 browser panel and shows all my network folders...

Hi Jeroen,

If this works (na if this actually the same issue), can you maybe update

https://issues.qgis.org/issues/16742 ?

to show how you did it, so others can find it?

Regards,

Richard
___
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 Groene Bij
Oh, stupid me.
I can right click on the Favourites item and then it says : add folder. That
opens the windows10 browser panel and shows all my network folders...



-Oorspronkelijk bericht-
Van: Richard Duivenvoorde  
Verzonden: maandag 25 februari 2019 22:16
Aan: Groene Bij ; qgis-user@lists.osgeo.org
Onderwerp: Re: [Qgis-user] how to add a network folder to qgis3 browser
panel

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

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] how to add a network folder to qgis3 browser panel

2019-02-25 Thread Richard Duivenvoorde
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

Re: [Qgis-user] change default webbrowser in qgis3 settings?

2019-02-25 Thread Richard Duivenvoorde
Hi Jeroen,

I'd say: create an issue in the repo of it:
https://github.com/tomchadwin/web2qgis/issues

I have some plugins which opened an url or file in a browser, and then
used default Qt-machinery, something like:

QDesktopServices.openUrl('http://qgis.org')

What happens if you use that in the Python Console? In your QGIS 3.
Does it open your preferred browser?
Or does it also open IE. If last, then maybe it is a Qt setting?

Regards,

Richard Duivenvoorde

On 25/02/2019 09.43, Groene Bij wrote:
> Hi all,
> 
> I am sorry to repeat this question. I really hope someone can help.
> 
> Today I did a clean install of 3.4.5 and exporting a map with the plugin
> qgis2web it still opens the webmap in IE. I don’t use IE, haven’t
> configured it and it is not my default webbrowser in Win10.
> 
> Somehow, some setting in qgis 3 doesn’t use my default windows settings
> correctly.
> 
>  
> 
> Qgis 2.18.28 doesn’t have this problem. I also did a clean install of
> 2.18.28 today, exported a map with the plugin and it opens in my default
> webbrowser which is Firefox.
> 
>  
> 
> Is it a bug in 3.4.5?
> 
> Is there a setting somewhere to change the webbrowser used?
> 
>  
> 
>  
> 
> Gr.
> 
> Jeroen
> 
>  
> 
>  
> 
> *Van:*Qgis-user  *Namens *Groene Bij
> *Verzonden:* maandag 11 februari 2019 17:10
> *Aan:* qgis-user@lists.osgeo.org
> *Onderwerp:* [Qgis-user] qgis3 uses IE as default browser on windows10?
> 
>  
> 
>  
> 
> Hi,
> 
>  
> 
> Is there a setting in qgis3 to change the default internet browser used
> by processes?
> 
> For instance, qgis2web opens a webbrowser after exporting the webmap. In
> qgis2.18 my default browser Firefox was opened. Now, qgis3.4.4 it opens IE.
> 
>  
> 
> According to Tom Chadwin (qgis2web) the plugin refers to a piece of
> Pyhton code when opening the webbrowser:
> 
> The code which opens the browser when you export is:
> 
> https://github.com/tomchadwin/qgis2web/blob/master/qgis2web/maindialog.py#L342
> 
>  
> 
> It uses the Python webbrowsermodule:
> 
> https://docs.python.org/3/library/webbrowser.html
> 
>  
> 
> I have no experience with pyhon, so I hope there is a setting somewhere
> to choose my default browser. Besides that, I do hope qgis3 will simply
> follow the default settings from the OS.
> 
>  
> 
> Kind 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
> 

___
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] styling mutiple attributes within the same layer

2019-02-25 Thread Groene Bij
Thank you for both tips, they work great, at least within Qgis.

I'll contact the qgis2web authors to see if an integration of multiple layers 
is possible in the plugin.

Gr.
Jeroen


-Oorspronkelijk bericht-
Van: Qgis-user  Namens 
qgis-u...@stripfamily.net
Verzonden: zaterdag 23 februari 2019 15:56
Aan: qgis-user@lists.osgeo.org
Onderwerp: Re: [Qgis-user] styling mutiple attributes within the same layer

On 2/23/2019 7:06 AM, Andreas Neumann wrote:
> Hi Groene,
>
> you can set multiple styles on a single layer. No problem. Just right 
> click the layer, select styles and add a new style.
>
> Greetings, Andreas

Related tip:
to quickly change between the different styles, use the "Layer Styling"
panel:
View->Panels->Layer Styling.
The left side of the panel (at least in 3.4)  contains a column with 5 icons. 
The 4th one is "Style Manager", which will present a list of the styles defined 
for the layer. You can select the style to display by clicking on it. You can 
also add and delete styles from this view.
___
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] change default webbrowser in qgis3 settings?

2019-02-25 Thread Groene Bij
Hi all,

I am sorry to repeat this question. I really hope someone can help.

Today I did a clean install of 3.4.5 and exporting a map with the plugin
qgis2web it still opens the webmap in IE. I don't use IE, haven't configured
it and it is not my default webbrowser in Win10.

Somehow, some setting in qgis 3 doesn't use my default windows settings
correctly.

 

Qgis 2.18.28 doesn't have this problem. I also did a clean install of
2.18.28 today, exported a map with the plugin and it opens in my default
webbrowser which is Firefox.

 

Is it a bug in 3.4.5?

Is there a setting somewhere to change the webbrowser used?

 

 

Gr.

Jeroen

 

 

Van: Qgis-user  Namens Groene Bij
Verzonden: maandag 11 februari 2019 17:10
Aan: qgis-user@lists.osgeo.org
Onderwerp: [Qgis-user] qgis3 uses IE as default browser on windows10?

 

 

Hi,

 

Is there a setting in qgis3 to change the default internet browser used by
processes?

For instance, qgis2web opens a webbrowser after exporting the webmap. In
qgis2.18 my default browser Firefox was opened. Now, qgis3.4.4 it opens IE.

 

According to Tom Chadwin (qgis2web) the plugin refers to a piece of Pyhton
code when opening the webbrowser:

The code which opens the browser when you export is:

https://github.com/tomchadwin/qgis2web/blob/master/qgis2web/maindialog.py#L3
42

 

It uses the Python webbrowser module:

https://docs.python.org/3/library/webbrowser.html

 

I have no experience with pyhon, so I hope there is a setting somewhere to
choose my default browser. Besides that, I do hope qgis3 will simply follow
the default settings from the OS.

 

Kind 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___
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] how to add a network folder to qgis3 browser panel

2019-02-25 Thread Groene Bij
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.

 

Gr.

Jeroen

___
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