Re: [Qgis-user] Preview of the QGIS Earth, Sun, Moon, & Planets Plugin

2021-07-01 Thread C Hamilton
Yes that could be done and is a good idea.

Best wishes,

Calvin

On Thu, Jul 1, 2021 at 8:15 PM Frank M. Howell 
wrote:

> Calvin,
>
> I downloaded and installed it in Win 10 x64…will install on Linux Mint
> 20.2 this weekend.
>
> If this feature is already implemented, forgive my not yet noticing it.
> Would it be possible to take the earth et al data and write it to the
> attribute table at the date/time for each location in a table?
>
> For instance, I use RF beacon observations for Maidenhead Grid Squares
> using the centroid of each grid square. It would be very useful to use the
> date/time field from the attribute table to have the plugin retrieve the
> Sun’s location and save that back to the table in a new field, for each
> location in the table.
>
> Is this possible?
>
> Thanks,
>
> Frank
>
> On Jul 1, 2021, at 6:36 PM, Tim Sutton  wrote:
>
> 
> Hey Calvin
>
> Testing here (after pip installing skyfield) on Fedora 34 and it works
> great! The only comment I would make is that it would be nice if the
> Sun/Lunar Info dock panel docked itself on start up rather than floating
> (which looks a bit messy).
>
> Looking forward to being able to animate this stuff with temporal
> controller one day!
>
> How did you make the day / night / twilight shadow layers you shared in a
> previous email?
>
> Regards
>
> Tim
>
>
>
> On Wed, Jun 30, 2021 at 6:50 PM C Hamilton  wrote:
>
>> I thought I would give you an alpha version of the QGIS Earth, Sun, Moon
>> & Planets plugin I am developing. This plugin requires QGIS 3.14 or more
>> recent. It is also rather large because it contains all the data needed to
>> run. If you are on windows and want to download a self contained windows
>> plugin use this link to download:
>>
>>
>>  earthsunmoon-alpha-windows.zip
>> 
>>
>> If you are using some other OS, use this link, but before you install it
>> open up your OSGeo4W console and run "pip install skyfield'. If this is not
>> the proper command for your OS then adjust it to how you install a python
>> package. In the OSGeo4W shell you may need to run py3_env first. If py3_env
>> gives an error then it is not needed.
>>
>>
>>  earthsunmoon-alpha.zip
>> 
>>
>> There are 3 processing routines that can be used to display the 1) sun,
>> 2) moon, 3) planets showing their position directly overhead at a
>> particular date and time and will look something like this:
>>
>> 
>>
>>
>> There is also another window that displays all kinds of earth and moon
>> data for a particular location when you click on the "Solar/lunar
>> information" dialog box that can be found in "Plugins->Earth, sun, moon, &
>> plants." There is a green plus sign in the dialog box. Click on it and then
>> click anywhere on the map to capture the coordinate to display solar and
>> lunar information.
>>
>> If you need help to manually install this plugin let me know.
>>
>> I have not included the day/night terminator algorithm yet because there
>> is a bug in it. Let me know what you think and if you have any suggestions.
>>
>> Thanks,
>>
>> Calvin
>>
>
>
> --
>
> --
> ​
>
> Tim Sutton
> Visit http://kartoza.com to find out about open source:
>  * Desktop GIS programming services
>  * Geospatial web development
> * GIS Training
> * Consulting Services
> Tim is a member of the QGIS Project Steering Committee
>
> ---
>
>
___
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] Preview of the QGIS Earth, Sun, Moon, & Planets Plugin

2021-07-01 Thread Frank M. Howell
Calvin,

I downloaded and installed it in Win 10 x64…will install on Linux Mint 20.2 
this weekend. 

If this feature is already implemented, forgive my not yet noticing it. Would 
it be possible to take the earth et al data and write it to the attribute table 
at the date/time for each location in a table?

For instance, I use RF beacon observations for Maidenhead Grid Squares using 
the centroid of each grid square. It would be very useful to use the date/time 
field from the attribute table to have the plugin retrieve the Sun’s location 
and save that back to the table in a new field, for each location in the table.

Is this possible?

Thanks,

Frank 

> On Jul 1, 2021, at 6:36 PM, Tim Sutton  wrote:
> 
> 
> Hey Calvin
> 
> Testing here (after pip installing skyfield) on Fedora 34 and it works great! 
> The only comment I would make is that it would be nice if the Sun/Lunar Info 
> dock panel docked itself on start up rather than floating (which looks a bit 
> messy).
> 
> Looking forward to being able to animate this stuff with temporal controller 
> one day!
> 
> How did you make the day / night / twilight shadow layers you shared in a 
> previous email?
> 
> Regards
> 
> Tim
> 
> 
> 
>> On Wed, Jun 30, 2021 at 6:50 PM C Hamilton  wrote:
>> I thought I would give you an alpha version of the QGIS Earth, Sun, Moon & 
>> Planets plugin I am developing. This plugin requires QGIS 3.14 or more 
>> recent. It is also rather large because it contains all the data needed to 
>> run. If you are on windows and want to download a self contained windows 
>> plugin use this link to download:
>> 
>> 
>>  earthsunmoon-alpha-windows.zip
>> 
>> If you are using some other OS, use this link, but before you install it 
>> open up your OSGeo4W console and run "pip install skyfield'. If this is not 
>> the proper command for your OS then adjust it to how you install a python 
>> package. In the OSGeo4W shell you may need to run py3_env first. If py3_env 
>> gives an error then it is not needed.
>> 
>> 
>>  earthsunmoon-alpha.zip
>> 
>> There are 3 processing routines that can be used to display the 1) sun, 2) 
>> moon, 3) planets showing their position directly overhead at a particular 
>> date and time and will look something like this:
>> 
>> 
>> 
>> 
>> There is also another window that displays all kinds of earth and moon data 
>> for a particular location when you click on the "Solar/lunar information" 
>> dialog box that can be found in "Plugins->Earth, sun, moon, & plants." There 
>> is a green plus sign in the dialog box. Click on it and then click anywhere 
>> on the map to capture the coordinate to display solar and lunar information.
>> 
>> If you need help to manually install this plugin let me know. 
>> 
>> I have not included the day/night terminator algorithm yet because there is 
>> a bug in it. Let me know what you think and if you have any suggestions.
>> 
>> Thanks,
>> 
>> Calvin
> 
> 
> -- 
> --
> ​
> Tim Sutton
> Visit http://kartoza.com to find out about open source:
>  * Desktop GIS programming services
>  * Geospatial web development
> * GIS Training
> * Consulting Services
> Tim is a member of the QGIS Project Steering Committee
> ---
___
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] Offsetting rotated labels proportionate to variable angles/rotations

2021-07-01 Thread Tony Shepherd (FarmMaps NZ)
Hi All

 

Simple question, but I am not sure how best to word it. Since we all love
maps, I have a diagram below.

1.  Create some points along a polyline. Easy using "Points along
Gemoetry"
2.  Display and label the points and put a rotation on the labels and
justify as needed (middle right in this case)

 

What I want to do is shift the label out from the point slightly. That's
easy if using Offset X and Y, but it does exactly as expected and moves them
X and Y, NOT accounting for the angle.

 

I'm guessing I would need to use Data Defined X and Y and do some
trigonometry using the angle and distance to calculate the new preferred
label position.  Does anybody have code to do this?

 

A simple workaround I did use was to just pad a few spaces to the end of the
label (ie "FIELD NAME" || '')

 



Cheers

Tony

 

Tony Shepherd  |  GeoSpatial / Mapping Manager

Ph 027 435 6193  |  E   t...@farmmaps.nz

FarmMaps NZ, 3 Kerwood Place, Gore 9740

 

 
 

 

___
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] question

2021-07-01 Thread David Méndez
I can't add images to my output project in qgis Desktop 3.20.0

-- 
Sergio David Calzadía Méndez
___
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] Processing Toolbox does not open any tools

2021-07-01 Thread krishna Ayyala
Charles,
Changing the profile worked for me. Thank you for your help.

Regards.

On Thu, Jul 1, 2021 at 1:47 PM Charles Dixon-Paver 
wrote:

> Have you tried to start QGIS with a new user profile?
>
> On Thu, 01 Jul 2021, 21:30 krishna Ayyala, 
> wrote:
>
>> Hello,
>> I have been using QGIS3.18 for the past two months. It was working fine
>> until yesterday. From yesterday onwards, whenever I click on any tool
>> within the processing toolbox no tool opens. Can someone help me fix this?
>>
>> 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] Processing Toolbox does not open any tools

2021-07-01 Thread Charles Dixon-Paver
Have you tried to start QGIS with a new user profile?

On Thu, 01 Jul 2021, 21:30 krishna Ayyala,  wrote:

> Hello,
> I have been using QGIS3.18 for the past two months. It was working fine
> until yesterday. From yesterday onwards, whenever I click on any tool
> within the processing toolbox no tool opens. Can someone help me fix this?
>
> 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] Processing Toolbox does not open any tools

2021-07-01 Thread krishna Ayyala
Hello,
I have been using QGIS3.18 for the past two months. It was working fine
until yesterday. From yesterday onwards, whenever I click on any tool
within the processing toolbox no tool opens. Can someone help me fix this?

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] set null or no data pixels from other raster using raster calculator

2021-07-01 Thread Gabriel Cotlier
Hello,
 I would like to set null or no data raster values in QGIS employing Raster
Calculator Tool for masking pixels from other raster as for instance is
possible to be done in ArcGIS>Spatial Analyst> Map Algebra>Raster
Calculator with the formula:

SetNull(~IsNull("hydro.tif"),"suitability").

With such formula in the Raster Calculator of ArcGIs the new obtained
raster will be equal to suitability, but with the location where  hydro.tif
pixels are with no data value.

Thanks a lot,
Kind regards,
Gabriel


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
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 Server Log Stderr

2021-07-01 Thread Thomas Schüttenberg
Hi there!

Because file logging support with QGIS_SERVER_LOG_FILE is deprecated since QGIS 
3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as described in the 
manual[1].

Nevertheless the standard error log file I defined in my Apache configuration 
stays silent (Loglevel 0).
So either I miss something in my config or QGIS_SERVER_LOG_STDERR does not work 
here. 

My QGIS server 3.18.2 and 3.16. are installed on a windows server 2019, btw. 
Mayby anyone of you is able to help me with their experience? Thanks!

[1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html

Cheers Thomas
___
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 user] Server plugin - exclude empty layer groups in GetCapabilities response

2021-07-01 Thread Marco Casalboni
Thank you for the answer, it's actually possible to exclude a layer group
in the QGIS Server section menu.
By the way I am looking for a way to accomplish this inside a plugin

Il giorno gio 1 lug 2021 alle ore 14:54 pathmapper 
ha scritto:

> In "Project properties" -> "QGIS Server" -> "WMS Capabilities" there's a
> section where it's possible to exclude layers:
>
>
> https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#configure-your-project
>
> I think it's possible to select also layer groups there.
>
> On 01.07.2021 14:13, Marco Casalboni wrote:
> > I am writing a plugin that responds to a GetCapabilities request.
> > If I have a layer group with 0 sublayers in my project, I want to
> > exclude the layer group in the GetCapabilities response.
> >
> > How can I accomplish this?
> >
> > 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] [Qgis user] Server plugin - exclude empty layer groups in GetCapabilities response

2021-07-01 Thread pathmapper
In "Project properties" -> "QGIS Server" -> "WMS Capabilities" there's a 
section where it's possible to exclude layers:


https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#configure-your-project

I think it's possible to select also layer groups there.

On 01.07.2021 14:13, Marco Casalboni wrote:

I am writing a plugin that responds to a GetCapabilities request.
If I have a layer group with 0 sublayers in my project, I want to
exclude the layer group in the GetCapabilities response.

How can I accomplish this?

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] Apache Solr in QGIS

2021-07-01 Thread Christoph Jung
Thank you for the hint, Thomas. 

> Am 01.07.2021 um 01:00 schrieb Thomas Gratier :
> 
> 
> Hi,
> 
> You can take a look at French locator filter. It does http call with 
> autocomplete to search French addresses 
> https://gitlab.com/Oslandia/qgis/french_locator_filter/
> 
> You need to borrow the same logic to consume from your Apache Solr
> 
> Regards
> 
> Thomas Gratier
> 
>> Le mar. 29 juin 2021 à 09:19, Christoph Jung  a écrit :
>> Hello everyone,
>> 
>> Does anybody know, if it is possible, to integrate a search platform like 
>> Apache Solr into QGIS, maybe in the search bar at the bottom of the window?
>> 
>> Greetings,
>> Christoph
>> ___
>> 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 user] Server plugin - exclude empty layer groups in GetCapabilities response

2021-07-01 Thread Marco Casalboni
I am writing a plugin that responds to a GetCapabilities request.
If I have a layer group with 0 sublayers in my project, I want to exclude
the layer group in the GetCapabilities response.

How can I accomplish this?

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


Re: [Qgis-user] How to convert multiple features to single Feature - Shape file

2021-07-01 Thread Wolfgang Meinolf
Hi,
I get good results with following processing alg workflow:

  *   Explode objects with explodelines
  *   Check and remove duplicates with deleteduplicategeometries
  *   Remove remaining empty objects with removenullgeometries
  *   Merge all into single feature with dissolve
  *   Split in most simple features with splitwithlines, use dissolved layer as 
input and lines for splitwithlines
  *   Finally I apply createspatialindex To accelerate the following steps.

I use this as “cleaning” step in my FTTH scripts to clean layers before I 
calculate $length and to use resulting line layer as “road”-network to connect 
points with lines.

Greetings from Germany

Von: Qgis-user  Im Auftrag von Nicolas 
Cadieux
Gesendet: Mittwoch, 30. Juni 2021 21:49
An: krishna Ayyala 
Cc: qgis-user 
Betreff: Re: [Qgis-user] How to convert multiple features to single Feature - 
Shape file

Hi,

Multipart to single part will only split multipart object if they exist.  In 
your case, you have no multipart objects.  What you appear to have is multiple 
line on top of each other. (Overlapping lines.  That is probably because you 
did a all-to all shortest path analysis.  Therefore, you have multiple paths 
overlapping others.
Nicolas Cadieux
https://gitlab.com/njacadieux


Le 30 juin 2021 à 15:34, krishna Ayyala 
mailto:ayyalakris...@gmail.com>> a écrit :

Tiago,
Thanks for your reply. Actually my shapefile is a polyLine. It is not a 
polygon. My polyline shape file had about 6000 lines. When I ran 'multiparts to 
single parts" It resulted in a shapefile which also had 6000 lines. I was 
hoping it to be simplified to 30 or 40 lines but that did not happen.

Regards.

On Tue, Jun 29, 2021 at 8:56 PM 
mailto:tiago.moraessi...@hotmail.com>> wrote:
Good evenning.

 In the tool box have e toll (multiparts to single parts). Will go break those 
multiples polygons in single parts.

I hope help you e sorry my bad English.

Regards

Em 29 de jun. de 2021 22:06, krishna Ayyala 
mailto:ayyalakris...@gmail.com>> escreveu:
I have a line shapefile named "ShortestPath.shp". Whenever I select one line 
feature for the "ShortestPath" shapefile, I see the following message at the 
bottom left corner of the window. For example: "9 feature(s) selected on layer 
shortest path. i.e. More than one features appear at the bottom left corner for 
each line that I select.

 Is there a way, whenever I select one line feature, It should appear as one 
line feature at the bottom left corner. The tools such as simplify and dissolve 
did not work for me.
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


smime.p7s
Description: S/MIME cryptographic signature
___
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