Re: [Qgis-user] [QGIS-Developer] Adding Field Calculator Functions - Best Practices / Avoiding Name Conflicts

2020-09-17 Thread Nyall Dawson
On Thu, 17 Sep 2020 at 23:06, C Hamilton  wrote:
>
> Nyall,
>
> I really should get into some core development, but I have been hesitant 
> since my C++ programming skills are 10 years out of date. How time flies.

Adding expression functions like this is actually a great place to
start, because the changes are very self-contained and isolated to
basically one file
(https://github.com/qgis/QGIS/blob/master/src/core/expression/qgsexpressionfunction.cpp)

It's usually possible to find an existing function which does a
similar thing as your new function and copy/paste the other function's
code. E.g. you could look at something like the to_dm function, which
is basically just two changes:

Registering the function to the expression engine:
https://github.com/qgis/QGIS/blob/master/src/core/expression/qgsexpressionfunction.cpp#L6031

and

The function implementation:
https://github.com/qgis/QGIS/blob/master/src/core/expression/qgsexpressionfunction.cpp#L2096
(calls a function defined here
https://github.com/qgis/QGIS/blob/master/src/core/expression/qgsexpressionfunction.cpp#L2056).

> Where is the best place to start if I were to try to start porting some of 
> the functions into the core QGIS. Some of this would require incorporating 
> additional C modules/libraries such as MGRS, Plus Codes, etc into the code 
> base.

I'd start with the easiest one first. Is there a function which is
self-contained and which doesn't require external libraries? That
would be the best starting point, as you'd use it to learn the QGIS
build system and PR submission/review process.

Might be worth your time dropping in on a QHackDay
(http://blog.qgis.org/2020/08/21/say-hello-to-the-qhackfriday/) if
you'd like to discuss face-to-face (virtually)!)

Nyall

>
> Thanks,
>
> Calvin
>
> On Wed, Sep 16, 2020 at 6:44 PM Nyall Dawson  wrote:
>>
>> On Thu, 17 Sep 2020 at 01:55, C Hamilton  wrote:
>> >
>> > Greetings,
>> >
>> > Because of a user request I have been starting to expose Lat Lon Tools 
>> > coordinate format conversion functions. I found out today that if you 
>> > accidentally call one of your functions the same name as one of the 
>> > existing functions, it causes QGIS to crash immediately. It got me 
>> > thinking about the best practices for releasing field calculator 
>> > functions. As other developers create their own field calculator functions 
>> > there is the potential for major problems. I would say that if there is a 
>> > name conflict it shouldn't crash QGIS.
>> >
>> > These are the function names I currently have in Lat Lon Tools.
>> >
>> > mgrs, mgrs_100km, mgrs_east, mgrs_north, mgrs_to_point
>> >
>> > Here are additional function names I have added that have not yet been 
>> > uploaded to the QGIS plugin repo and more are on the way
>> >
>> > utm, utm_epsg, utm_hemisphere, utm_to_point, utm_zone, dms, ddmmss
>> >
>> > I like simple function names, but because of concerns that there could be 
>> > name conflicts with other QGIS plugin developers I am wondering if a 
>> > plugin name prefix should be added such as ll_mgrs for the Lat Lon Tools 
>> > mgrs conversion function.
>> >
>> > What are your thoughts?
>>
>> These sound like really useful functions of widespread appeal. Have
>> you considered implementing them in QGIS itself? I'd be happy to
>> assist!
>>
>> Nyall
>>
>>
>>
>> >
>> > Thanks,
>> >
>> > Calvin
>> > ___
>> > QGIS-Developer mailing list
>> > qgis-develo...@lists.osgeo.org
>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
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] Permission denied when adding shapefile

2020-09-17 Thread Bernd Vogelgesang

Hi Hillary,

sorry, but what you write there is bit confusing. You download a
shapefile ... from where? To what machine with which QGIS version?

What is your Admin folder and why should ever somebody want to do
something in an admin folder?

And what has Thunderforest, an API or OpenLayers plugin to do with all this?

Cheers,

Bernd

On 17.09.20 16:52, Hillary Elliott wrote:

Hi all,

I hope everyone is doing well. I have a couple of problems I hope
someone can help me with! When I try downloading a new shapefile in
QGIS, it only lets me save it my "Admin" folder and says I don't have
permission to save it in other locations. I also signed up with
Thunderforest and got an API key, but it still doesn't seem to work
when I try to load the GoogleMaps layer (from the OpenLayers plugin).
Hope someone can help!

Thanks,
Hillary
___
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] Grass Processing Tools fail in QGIS LTR, PR & Nightly Builds on MacOS

2020-09-17 Thread Peter Petrik
3.14 and 3.10 use homebrew for deps, so it would not be easy for me to fix
at this point...
P.

On Thu, Sep 17, 2020 at 8:09 PM Denis Vasiliev  wrote:

> I wonder, whether Grass GIS shell not working  on QGIS 3.14 will be fixed
> soon?
>
> On Thu, 17 Sep 2020, 20:59 Peter Petrik, <
> peter.pet...@lutraconsulting.co.uk> wrote:
>
>> Better to thank QGIS sponsors and donors since this was fixed as part of
>> the QGIS grant and bug fixing program.
>> P.
>>
>> On Thu, Sep 17, 2020 at 7:45 PM Mr. Stace D Maples <
>> stacemap...@stanford.edu> wrote:
>>
>>> Confirmed GRASS fixed in the nightly! Thanks Lutra and Peter Petrik!
>>>
>>>
>>>
>>> In F,L&T,
>>>
>>> Stace Maples
>>>
>>> Geospatial Manager
>>>
>>> Stanford Geospatial Center
>>>
>>> @mapninja
>>>
>>> G+, Skype, Hangout: stacey.maples
>>>
>>> 214.641.0920
>>>
>>> Wednesdays 3-5pm on http://KZSULive.stanford.edu
>>>
>>> Find GeoData: https://earthworks.stanford.edu
>>>
>>> Get GeoHelp: https://gis.stanford.edu/
>>>
>>> stanfordgis Listserv:
>>> https://mailman.stanford.edu/mailman/listinfo/stanfordgis
>>>
>>>
>>>
>>> "I have a map of the United States... actual size.
>>>
>>> It says, "Scale: 1 mile = 1 mile."
>>>
>>> I spent last summer folding it."
>>>
>>> -Steven Wright-
>>>
>>>
>>>
>>>
>>>
>>> *From: *Qgis-user  on behalf of "Mr.
>>> Stace D Maples" 
>>> *Date: *Wednesday, September 16, 2020 at 4:05 PM
>>> *To: *qgis-user 
>>> *Subject: *[Qgis-user] Grass Processing Tools fail in QGIS LTR, PR &
>>> Nightly Builds on MacOS
>>>
>>>
>>>
>>> Anyone have any luck getting grass tools to work on MacOS? This problem
>>> never seems to go away. Any ideas area appreciated. I’ve got 75 students in
>>> a Fundamentals course starting to work on their assignments, next week, and
>>> no one can get QGIS to work properly. Windows users are having issues, too,
>>> but I haven’t even gotten to them, yet. Here’s my write-up from the last 3
>>> hours of deleting profiles and reinstalling 3 versions on Catalina 10.15.6:
>>>
>>>
>>>
>>> From: https://github.com/qgis/QGIS/issues/32511
>>>
>>> I seem to be having the same issue, an issue I've seen many times in the
>>> past. My routine for testing a new installation of QGIS is to add the
>>> QuickMapPlugin, Create random points and then use v.voronoi on those points
>>> to test the historically finicky GRASS processing tools.
>>>
>>>1. Deleted user profile for all QGIS users and uninstalled previous
>>>apps
>>>2. Download Latest Release: qgis-macos-pr.dmg and install
>>>3. Open QGIS with new empty doc
>>>*FYI, I don't think the next 2 steps have anything to do with the
>>>issue, but adding them full acccounting:*
>>>4. Install QuickMapServices Plugin, add contrib services
>>>5. Add Stamen Toner Lite
>>>6. Run "Random points in extent" from Processing Panel
>>>a. Use Canvas Extent
>>>b. 10 Points
>>>c. Target CRS: 3857 (also tried outputing to 4326, same results)
>>>d. [Create temporary layer]
>>>7. Runs fine, produces expected random points
>>>8. Run v.voronoi tool on resulting random points
>>>a. Use Map Canvas Extent
>>>b. All else=default
>>>c. Save to temp
>>>9. Fails with the error, below
>>>10. ReRun with option to save random points to point.shp produces
>>>the same error.
>>>11. Identical results for 40+ students,using LTR
>>>12. Repeat exact steps with fresh LTR, including deleting the User
>>>Profile
>>>13. same results, exactly.
>>>14. Nightly Build doesn't load the GRASS Provider, at all.
>>>
>>>
>>>
>>> *Log WIndow:*
>>>
>>> `QGIS version: 3.14.16-Pi
>>> QGIS code revision: a235a14
>>> 
>>> Qt version: 5.12.3
>>> GDAL version: 2.4.1
>>> GEOS version: 3.7.2-CAPI-1.11.2 b55d2125
>>> PROJ version: Rel. 5.2.0, September 15th, 2018
>>> Processing algorithm…
>>> Algorithm 'v.voronoi' starting…
>>> Input parameters:
>>> { '-l' : False, '-t' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.0001,
>>> 'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' :
>>> '-13670428.19180,-13586035.68730,4532539.74780,4571278.57900
>>> [EPSG:3857]', 'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' :
>>> '', 'GRASS_VECTOR_EXPORT_NOCAT' : False, 'GRASS_VECTOR_LCO' : '', 'input' :
>>> '/Users/maples/Downloads/points.shp|layername=points', 'output' :
>>> 'TEMPORARY_OUTPUT' }
>>>
>>> g.proj -c proj4="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
>>> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=*@null*
>>>  +wktext +no_defs"
>>> v.in.ogr min_area=0.0001 snap=-1.0
>>> input="/Users/maples/Downloads/points.shp" layer="points"
>>> output="vector_5f627ae75a6d96" --overwrite -o
>>> g.region n=4571278.579 s=4532539.7478 e=-13586035.6873 w=-13670428.1918
>>> v.voronoi input=vector_5f627ae75a6d96
>>> output=output0fc09ffb9e94472baedcf2a353550eca --overwrite
>>> v.out.ogr type="auto" input="output0fc09ffb9e94472baedcf2a3

Re: [Qgis-user] Grass Processing Tools fail in QGIS LTR, PR & Nightly Builds on MacOS

2020-09-17 Thread Denis Vasiliev
I wonder, whether Grass GIS shell not working  on QGIS 3.14 will be fixed
soon?

On Thu, 17 Sep 2020, 20:59 Peter Petrik, 
wrote:

> Better to thank QGIS sponsors and donors since this was fixed as part of
> the QGIS grant and bug fixing program.
> P.
>
> On Thu, Sep 17, 2020 at 7:45 PM Mr. Stace D Maples <
> stacemap...@stanford.edu> wrote:
>
>> Confirmed GRASS fixed in the nightly! Thanks Lutra and Peter Petrik!
>>
>>
>>
>> In F,L&T,
>>
>> Stace Maples
>>
>> Geospatial Manager
>>
>> Stanford Geospatial Center
>>
>> @mapninja
>>
>> G+, Skype, Hangout: stacey.maples
>>
>> 214.641.0920
>>
>> Wednesdays 3-5pm on http://KZSULive.stanford.edu
>>
>> Find GeoData: https://earthworks.stanford.edu
>>
>> Get GeoHelp: https://gis.stanford.edu/
>>
>> stanfordgis Listserv:
>> https://mailman.stanford.edu/mailman/listinfo/stanfordgis
>>
>>
>>
>> "I have a map of the United States... actual size.
>>
>> It says, "Scale: 1 mile = 1 mile."
>>
>> I spent last summer folding it."
>>
>> -Steven Wright-
>>
>>
>>
>>
>>
>> *From: *Qgis-user  on behalf of "Mr.
>> Stace D Maples" 
>> *Date: *Wednesday, September 16, 2020 at 4:05 PM
>> *To: *qgis-user 
>> *Subject: *[Qgis-user] Grass Processing Tools fail in QGIS LTR, PR &
>> Nightly Builds on MacOS
>>
>>
>>
>> Anyone have any luck getting grass tools to work on MacOS? This problem
>> never seems to go away. Any ideas area appreciated. I’ve got 75 students in
>> a Fundamentals course starting to work on their assignments, next week, and
>> no one can get QGIS to work properly. Windows users are having issues, too,
>> but I haven’t even gotten to them, yet. Here’s my write-up from the last 3
>> hours of deleting profiles and reinstalling 3 versions on Catalina 10.15.6:
>>
>>
>>
>> From: https://github.com/qgis/QGIS/issues/32511
>>
>> I seem to be having the same issue, an issue I've seen many times in the
>> past. My routine for testing a new installation of QGIS is to add the
>> QuickMapPlugin, Create random points and then use v.voronoi on those points
>> to test the historically finicky GRASS processing tools.
>>
>>1. Deleted user profile for all QGIS users and uninstalled previous
>>apps
>>2. Download Latest Release: qgis-macos-pr.dmg and install
>>3. Open QGIS with new empty doc
>>*FYI, I don't think the next 2 steps have anything to do with the
>>issue, but adding them full acccounting:*
>>4. Install QuickMapServices Plugin, add contrib services
>>5. Add Stamen Toner Lite
>>6. Run "Random points in extent" from Processing Panel
>>a. Use Canvas Extent
>>b. 10 Points
>>c. Target CRS: 3857 (also tried outputing to 4326, same results)
>>d. [Create temporary layer]
>>7. Runs fine, produces expected random points
>>8. Run v.voronoi tool on resulting random points
>>a. Use Map Canvas Extent
>>b. All else=default
>>c. Save to temp
>>9. Fails with the error, below
>>10. ReRun with option to save random points to point.shp produces the
>>same error.
>>11. Identical results for 40+ students,using LTR
>>12. Repeat exact steps with fresh LTR, including deleting the User
>>Profile
>>13. same results, exactly.
>>14. Nightly Build doesn't load the GRASS Provider, at all.
>>
>>
>>
>> *Log WIndow:*
>>
>> `QGIS version: 3.14.16-Pi
>> QGIS code revision: a235a14
>> 
>> Qt version: 5.12.3
>> GDAL version: 2.4.1
>> GEOS version: 3.7.2-CAPI-1.11.2 b55d2125
>> PROJ version: Rel. 5.2.0, September 15th, 2018
>> Processing algorithm…
>> Algorithm 'v.voronoi' starting…
>> Input parameters:
>> { '-l' : False, '-t' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.0001,
>> 'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' :
>> '-13670428.19180,-13586035.68730,4532539.74780,4571278.57900
>> [EPSG:3857]', 'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' :
>> '', 'GRASS_VECTOR_EXPORT_NOCAT' : False, 'GRASS_VECTOR_LCO' : '', 'input' :
>> '/Users/maples/Downloads/points.shp|layername=points', 'output' :
>> 'TEMPORARY_OUTPUT' }
>>
>> g.proj -c proj4="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
>> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=*@null*
>>  +wktext +no_defs"
>> v.in.ogr min_area=0.0001 snap=-1.0
>> input="/Users/maples/Downloads/points.shp" layer="points"
>> output="vector_5f627ae75a6d96" --overwrite -o
>> g.region n=4571278.579 s=4532539.7478 e=-13586035.6873 w=-13670428.1918
>> v.voronoi input=vector_5f627ae75a6d96
>> output=output0fc09ffb9e94472baedcf2a353550eca --overwrite
>> v.out.ogr type="auto" input="output0fc09ffb9e94472baedcf2a353550eca"
>> output="/private/var/folders/f3/0prmkq7962795yfpwsmvh210gq/T/processing_xxaYqK/a0d0a2d2844c493babe4c52273dc5a59/output.gpkg"
>> format="GPKG" --overwrite
>> Starting GRASS GIS...
>> Executing
>> 
>> ...
>> dyld: Symbol not found: _iconv
>> Referenced from: /usr/lib/libarchive.2.dylib
>> Expected in:
>> /Applicati

Re: [Qgis-user] Grass Processing Tools fail in QGIS LTR, PR & Nightly Builds on MacOS

2020-09-17 Thread Peter Petrik
Better to thank QGIS sponsors and donors since this was fixed as part of
the QGIS grant and bug fixing program.
P.

On Thu, Sep 17, 2020 at 7:45 PM Mr. Stace D Maples 
wrote:

> Confirmed GRASS fixed in the nightly! Thanks Lutra and Peter Petrik!
>
>
>
> In F,L&T,
>
> Stace Maples
>
> Geospatial Manager
>
> Stanford Geospatial Center
>
> @mapninja
>
> G+, Skype, Hangout: stacey.maples
>
> 214.641.0920
>
> Wednesdays 3-5pm on http://KZSULive.stanford.edu
>
> Find GeoData: https://earthworks.stanford.edu
>
> Get GeoHelp: https://gis.stanford.edu/
>
> stanfordgis Listserv:
> https://mailman.stanford.edu/mailman/listinfo/stanfordgis
>
>
>
> "I have a map of the United States... actual size.
>
> It says, "Scale: 1 mile = 1 mile."
>
> I spent last summer folding it."
>
> -Steven Wright-
>
>
>
>
>
> *From: *Qgis-user  on behalf of "Mr.
> Stace D Maples" 
> *Date: *Wednesday, September 16, 2020 at 4:05 PM
> *To: *qgis-user 
> *Subject: *[Qgis-user] Grass Processing Tools fail in QGIS LTR, PR &
> Nightly Builds on MacOS
>
>
>
> Anyone have any luck getting grass tools to work on MacOS? This problem
> never seems to go away. Any ideas area appreciated. I’ve got 75 students in
> a Fundamentals course starting to work on their assignments, next week, and
> no one can get QGIS to work properly. Windows users are having issues, too,
> but I haven’t even gotten to them, yet. Here’s my write-up from the last 3
> hours of deleting profiles and reinstalling 3 versions on Catalina 10.15.6:
>
>
>
> From: https://github.com/qgis/QGIS/issues/32511
>
> I seem to be having the same issue, an issue I've seen many times in the
> past. My routine for testing a new installation of QGIS is to add the
> QuickMapPlugin, Create random points and then use v.voronoi on those points
> to test the historically finicky GRASS processing tools.
>
>1. Deleted user profile for all QGIS users and uninstalled previous
>apps
>2. Download Latest Release: qgis-macos-pr.dmg and install
>3. Open QGIS with new empty doc
>*FYI, I don't think the next 2 steps have anything to do with the
>issue, but adding them full acccounting:*
>4. Install QuickMapServices Plugin, add contrib services
>5. Add Stamen Toner Lite
>6. Run "Random points in extent" from Processing Panel
>a. Use Canvas Extent
>b. 10 Points
>c. Target CRS: 3857 (also tried outputing to 4326, same results)
>d. [Create temporary layer]
>7. Runs fine, produces expected random points
>8. Run v.voronoi tool on resulting random points
>a. Use Map Canvas Extent
>b. All else=default
>c. Save to temp
>9. Fails with the error, below
>10. ReRun with option to save random points to point.shp produces the
>same error.
>11. Identical results for 40+ students,using LTR
>12. Repeat exact steps with fresh LTR, including deleting the User
>Profile
>13. same results, exactly.
>14. Nightly Build doesn't load the GRASS Provider, at all.
>
>
>
> *Log WIndow:*
>
> `QGIS version: 3.14.16-Pi
> QGIS code revision: a235a14
> 
> Qt version: 5.12.3
> GDAL version: 2.4.1
> GEOS version: 3.7.2-CAPI-1.11.2 b55d2125
> PROJ version: Rel. 5.2.0, September 15th, 2018
> Processing algorithm…
> Algorithm 'v.voronoi' starting…
> Input parameters:
> { '-l' : False, '-t' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.0001,
> 'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' :
> '-13670428.19180,-13586035.68730,4532539.74780,4571278.57900
> [EPSG:3857]', 'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' :
> '', 'GRASS_VECTOR_EXPORT_NOCAT' : False, 'GRASS_VECTOR_LCO' : '', 'input' :
> '/Users/maples/Downloads/points.shp|layername=points', 'output' :
> 'TEMPORARY_OUTPUT' }
>
> g.proj -c proj4="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=*@null*
>  +wktext +no_defs"
> v.in.ogr min_area=0.0001 snap=-1.0
> input="/Users/maples/Downloads/points.shp" layer="points"
> output="vector_5f627ae75a6d96" --overwrite -o
> g.region n=4571278.579 s=4532539.7478 e=-13586035.6873 w=-13670428.1918
> v.voronoi input=vector_5f627ae75a6d96
> output=output0fc09ffb9e94472baedcf2a353550eca --overwrite
> v.out.ogr type="auto" input="output0fc09ffb9e94472baedcf2a353550eca"
> output="/private/var/folders/f3/0prmkq7962795yfpwsmvh210gq/T/processing_xxaYqK/a0d0a2d2844c493babe4c52273dc5a59/output.gpkg"
> format="GPKG" --overwrite
> Starting GRASS GIS...
> Executing
> 
> ...
> dyld: Symbol not found: _iconv
> Referenced from: /usr/lib/libarchive.2.dylib
> Expected in:
> /Applications/QGIS3.14.app/Contents/Resources/grass7/lib/libiconv.2.dylib
> in /usr/lib/libarchive.2.dylib
> /private/var/folders/f3/0prmkq7962795yfpwsmvh210gq/T/processing_xxaYqK/grassdata/grass_batch_job.sh:
> line 2: 3039 Abort trap: 6 g.proj -c proj4="+proj=merc +a=6378137
> +b=6378137 +lat_ts=0.0 +lon_0=0

Re: [Qgis-user] Grass Processing Tools fail in QGIS LTR, PR & Nightly Builds on MacOS

2020-09-17 Thread Mr. Stace D Maples
Confirmed GRASS fixed in the nightly! Thanks Lutra and Peter Petrik!

In F,L&T,
Stace Maples
Geospatial Manager
Stanford Geospatial Center
@mapninja
G+, Skype, Hangout: stacey.maples
214.641.0920
Wednesdays 3-5pm on http://KZSULive.stanford.edu
Find GeoData: https://earthworks.stanford.edu
Get GeoHelp: https://gis.stanford.edu/
stanfordgis Listserv: https://mailman.stanford.edu/mailman/listinfo/stanfordgis

"I have a map of the United States... actual size.
It says, "Scale: 1 mile = 1 mile."
I spent last summer folding it."
-Steven Wright-


From: Qgis-user  on behalf of "Mr. Stace D 
Maples" 
Date: Wednesday, September 16, 2020 at 4:05 PM
To: qgis-user 
Subject: [Qgis-user] Grass Processing Tools fail in QGIS LTR, PR & Nightly 
Builds on MacOS

Anyone have any luck getting grass tools to work on MacOS? This problem never 
seems to go away. Any ideas area appreciated. I’ve got 75 students in a 
Fundamentals course starting to work on their assignments, next week, and no 
one can get QGIS to work properly. Windows users are having issues, too, but I 
haven’t even gotten to them, yet. Here’s my write-up from the last 3 hours of 
deleting profiles and reinstalling 3 versions on Catalina 10.15.6:

From: https://github.com/qgis/QGIS/issues/32511
I seem to be having the same issue, an issue I've seen many times in the past. 
My routine for testing a new installation of QGIS is to add the QuickMapPlugin, 
Create random points and then use v.voronoi on those points to test the 
historically finicky GRASS processing tools.

  1.  Deleted user profile for all QGIS users and uninstalled previous apps
  2.  Download Latest Release: qgis-macos-pr.dmg and install
  3.  Open QGIS with new empty doc
FYI, I don't think the next 2 steps have anything to do with the issue, but 
adding them full acccounting:
  4.  Install QuickMapServices Plugin, add contrib services
  5.  Add Stamen Toner Lite
  6.  Run "Random points in extent" from Processing Panel
a. Use Canvas Extent
b. 10 Points
c. Target CRS: 3857 (also tried outputing to 4326, same results)
d. [Create temporary layer]
  7.  Runs fine, produces expected random points
  8.  Run v.voronoi tool on resulting random points
a. Use Map Canvas Extent
b. All else=default
c. Save to temp
  9.  Fails with the error, below
  10. ReRun with option to save random points to point.shp produces the same 
error.
  11. Identical results for 40+ students,using LTR
  12. Repeat exact steps with fresh LTR, including deleting the User Profile
  13. same results, exactly.
  14. Nightly Build doesn't load the GRASS Provider, at all.

Log WIndow:
`QGIS version: 3.14.16-Pi
QGIS code revision: 
a235a14
Qt version: 5.12.3
GDAL version: 2.4.1
GEOS version: 3.7.2-CAPI-1.11.2 b55d2125
PROJ version: Rel. 5.2.0, September 15th, 2018
Processing algorithm…
Algorithm 'v.voronoi' starting…
Input parameters:
{ '-l' : False, '-t' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.0001, 
'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' : 
'-13670428.19180,-13586035.68730,4532539.74780,4571278.57900 
[EPSG:3857]', 'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' : '', 
'GRASS_VECTOR_EXPORT_NOCAT' : False, 'GRASS_VECTOR_LCO' : '', 'input' : 
'/Users/maples/Downloads/points.shp|layername=points', 'output' : 
'TEMPORARY_OUTPUT' }
g.proj -c proj4="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 
+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null 
+wktext +no_defs"
v.in.ogr min_area=0.0001 snap=-1.0 input="/Users/maples/Downloads/points.shp" 
layer="points" output="vector_5f627ae75a6d96" --overwrite -o
g.region n=4571278.579 s=4532539.7478 e=-13586035.6873 w=-13670428.1918
v.voronoi input=vector_5f627ae75a6d96 
output=output0fc09ffb9e94472baedcf2a353550eca --overwrite
v.out.ogr type="auto" input="output0fc09ffb9e94472baedcf2a353550eca" 
output="/private/var/folders/f3/0prmkq7962795yfpwsmvh210gq/T/processing_xxaYqK/a0d0a2d2844c493babe4c52273dc5a59/output.gpkg"
 format="GPKG" --overwrite
Starting GRASS GIS...
Executing 

 ...
dyld: Symbol not found: _iconv
Referenced from: /usr/lib/libarchive.2.dylib
Expected in: 
/Applications/QGIS3.14.app/Contents/Resources/grass7/lib/libiconv.2.dylib
in /usr/lib/libarchive.2.dylib
/private/var/folders/f3/0prmkq7962795yfpwsmvh210gq/T/processing_xxaYqK/grassdata/grass_batch_job.sh:
 line 2: 3039 Abort trap: 6 g.proj -c proj4="+proj=merc +a=6378137 +b=6378137 
+lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m 
+nadgrids=@null +wktext +no_defs"
dyld: Symbol not found: _iconv
Referenced from: /usr/lib/libarchive.2.dylib
Expected in: 
/Applications/QGIS3.14.app/Contents/Resources/grass7/lib/libiconv.2.dylib
in /usr/lib/libarchive.2.dylib
/private/var/folders/f3/0prmkq7962795yfpwsmvh210gq/T/processing_xxaYqK/grassdata/grass_batch_job.sh:
 line 3: 3040 Abort trap: 6 v.in.ogr min_are

[Qgis-user] Permission denied when adding shapefile

2020-09-17 Thread Hillary Elliott
Hi all,

I hope everyone is doing well. I have a couple of problems I hope
someone can help me with! When I try downloading a new shapefile in
QGIS, it only lets me save it my "Admin" folder and says I don't have
permission to save it in other locations. I also signed up with
Thunderforest and got an API key, but it still doesn't seem to work
when I try to load the GoogleMaps layer (from the OpenLayers plugin).
Hope someone can help!

Thanks,
Hillary
___
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] Grass Processing Tools fail in QGIS LTR, PR &, Nightly Builds on MacOS

2020-09-17 Thread Peter Petrik
Hi Garth,

this is separate issue, not related to GRASS, see
https://github.com/qgis/QGIS-Mac-Packager/issues/83

P.

On Thu, Sep 17, 2020 at 4:28 PM Garth Fletcher  wrote:

> on Thu, 17 Sep 2020 12:30:4 Peter Petrik
>  wrote:
> > "
> https://qgis.org/downloads/macos/nightly2/qgis_nightly2_master_20200917_044804.dmg
> "
>
> I downloaded the above.  On startup it displays multiple "Terminated"
> warnings  and then crashed.
>
> OS X 10.13.6 (High Sierra) running on Mac mini (Mid 2011)
>
> Cordially,
> --
> Garth Fletcher
> ___
> 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] Grass Processing Tools fail in QGIS LTR, PR &, Nightly Builds on MacOS

2020-09-17 Thread Garth Fletcher
on Thu, 17 Sep 2020 12:30:4 Peter Petrik 
 wrote:

"https://qgis.org/downloads/macos/nightly2/qgis_nightly2_master_20200917_044804.dmg";


I downloaded the above.  On startup it displays multiple "Terminated"
warnings  and then crashed.

OS X 10.13.6 (High Sierra) running on Mac mini (Mid 2011)

Cordially,
--
Garth Fletcher
___
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] automatic data entry

2020-09-17 Thread David Greenewalt
I typed "closest" into the search box (bottom left of screen), and saw 
the processing algorithm  "Join Attributes By Nearest" .  It may be 
worth looking into.


Thanks,
David



On 9/17/2020 7:07 AM, Nicolas Cadieux wrote:

Hi,
You could make a 25m buffer and then use “join attributes by location” 
fond in processing.




Once the information is in the buffer object table, start again with 
the buffer and your line, point and polygons.


https://www.qgistutorials.com/en/docs/performing_spatial_queries.html?highlight=buffer

https://www.qgistutorials.com/en/docs/3/performing_spatial_joins.html


Nicolas Cadieux


Le 17 sept. 2020 à 04:23, FVHGmail  a écrit :



Hello ,

I use QGIS 3.14  and I want to arrange when I draw a line , point or 
area that the fields  City and Street can be are filled with the 
closest  City and Street-name out of OpenStreetMap .   In a range of 
25 Meter  . The marking I draw are always on a street or bicycle path.


Maybe an easy question but I am new in the use of QGIS  so I can use 
a little help the experts .


Kind regards

Ferrol

Sent from Mail  for 
Windows 10


___
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-Developer] Adding Field Calculator Functions - Best Practices / Avoiding Name Conflicts

2020-09-17 Thread C Hamilton
Nyall,

I really should get into some core development, but I have been hesitant
since my C++ programming skills are 10 years out of date. How time flies.

Where is the best place to start if I were to try to start porting some of
the functions into the core QGIS. Some of this would require incorporating
additional C modules/libraries such as MGRS, Plus Codes, etc into the code
base.

Thanks,

Calvin

On Wed, Sep 16, 2020 at 6:44 PM Nyall Dawson  wrote:

> On Thu, 17 Sep 2020 at 01:55, C Hamilton  wrote:
> >
> > Greetings,
> >
> > Because of a user request I have been starting to expose Lat Lon Tools
> coordinate format conversion functions. I found out today that if you
> accidentally call one of your functions the same name as one of the
> existing functions, it causes QGIS to crash immediately. It got me thinking
> about the best practices for releasing field calculator functions. As other
> developers create their own field calculator functions there is the
> potential for major problems. I would say that if there is a name conflict
> it shouldn't crash QGIS.
> >
> > These are the function names I currently have in Lat Lon Tools.
> >
> > mgrs, mgrs_100km, mgrs_east, mgrs_north, mgrs_to_point
> >
> > Here are additional function names I have added that have not yet been
> uploaded to the QGIS plugin repo and more are on the way
> >
> > utm, utm_epsg, utm_hemisphere, utm_to_point, utm_zone, dms, ddmmss
> >
> > I like simple function names, but because of concerns that there could
> be name conflicts with other QGIS plugin developers I am wondering if a
> plugin name prefix should be added such as ll_mgrs for the Lat Lon Tools
> mgrs conversion function.
> >
> > What are your thoughts?
>
> These sound like really useful functions of widespread appeal. Have
> you considered implementing them in QGIS itself? I'd be happy to
> assist!
>
> Nyall
>
>
>
> >
> > Thanks,
> >
> > Calvin
> > ___
> > QGIS-Developer mailing list
> > qgis-develo...@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
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] plugin broken

2020-09-17 Thread Richard Duivenvoorde
Hi Tafadzwa Mavudzi,

Please provide some more details, as from your text below we cannot get the 
information to maybe fix your issue.

Looking at: "C:\PROGRA~1\QGIS2~1.18" it looks that you maybe have a very old 
QGIS. 
Encodings (in python) are probably better handled in Python3 (which is used in 
QGIS3).

In general, IF there is an issue in a plugin, you should try to create an issue 
at the source code repository of the plugin builder, or communicate with the 
plugin builder directly. That info should be in the plugin information in the 
Plugin Manager.

Else provide more info: which plugin are you talking about, which QGIS on which 
Operating System etcetc.

That would make helping you easier.

Thanks & Regards,

Richard Duivenvoorde

On 9/17/20 2:13 PM, Tafadzwa Mavudzi wrote:
> This plugin is broken
> Non-ASCII character '\xe2' in file 
> C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\scipy\stats\_continuous_distns.py
>  on line 3346, but no encoding declared; see 
> http://python.org/dev/peps/pep-0263/ for details
> 
> 
> ___
> 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] plugin broken

2020-09-17 Thread Tafadzwa Mavudzi
This plugin is broken
Non-ASCII character '\xe2' in file
C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\scipy\stats\_continuous_distns.py
on line 3346, but no encoding declared; see
http://python.org/dev/peps/pep-0263/ for details
___
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] Batch selection/new feature creation

2020-09-17 Thread Samuel Williams
Jeroen,
Thank you, that's a great approach that I hadn't thought of. I'll upload
the layer to postgres and do as you suggest!
Thanks again,


Sam.

Sam Williams

Director | *Sine Acoustics*
m. +447969123431 <%2B44%207969%20123431>|sam.willi...@sineenvironmental.com
| www.sineenvironmental.com
Sine Acoustics is a trading name of Sine Environmental Limited, company
number 9609805. Postal address: 78 Old Church Road, Clevedon, North
Somerset, England, BS216PT.


On Thu, 17 Sep 2020 at 11:35, Groene Bij  wrote:

> Hi,
>
>
>
> Have you considered using postgis for this?
>
> See:
> https://gis.stackexchange.com/questions/17495/dissolve-or-unsplit-lines-on-common-attributes-in-postgis-or-grass
>
>
>
> First step would be to add the reference id from the spreadsheet to the
> polyline layer.
>
> Polyline layer with the 100m stretches, “polyline”
>
>
>
> Csv with sections, “tracks”
>
>
>
> So, to add ref_id to each polyline you can use:
>
> SELECT p.*, t.ref_id
>
> FROM polyline as p
>
> JOIN tracks as t
>
> ON p.ch_1 >= t.start_ch AND p.ch_1 < t.end_ch
>
>
>
> Than you can dissolve all polylines with the same ref_id like in the
> example link.
>
>
>
> You can  combine al subqueries and export the result as new layer to your
> qgis-canvas.
>
>
>
> That leaves the ‘saves these resulting new feature to an existing layer’
> part.
>
> You can merge features from different layers into a new or existing layer.
>
>
>
> Greetings,
>
> Jeroen Hovens
>
>
>
>
>
> *Van:* Qgis-user  *Namens *Samuel
> Williams
> *Verzonden:* donderdag 17 september 2020 11:14
> *Aan:* Qgis-user@lists.osgeo.org
> *Onderwerp:* [Qgis-user] Batch selection/new feature creation
>
>
>
> Hello,
> I'm hoping that those with more experience of QIS might be able to help
> point me in the right direction.
> I have a layer consisting of around 700 end-to-end polylines, each of
> which represents a 100m stretch of railway track centreline. Each polyline
> is attributed with an integer value which represents its starting chainage
> (distance in m from the start of the railway line, abbreviated ch.).
> I also have a spreadsheet/csv with several hundred rows, each of which
> represents a different section of the railway. These sections are defined
> by their start and end chainage (e.g. ch. 1300 to ch. 1800 would be a 500m
> stretch starting 1300m from the beginning of the line).
> I am looking for an efficient way to select each of the polylines
> associated with each row in the spreadsheet, dissolve them (they should
> touch end to end), and then save them as a new feature on an existing
> layer. Each one will need to be given a reference ID from the relevant line
> in the spreadsheet.
> E.g.
> Row 1 of spreadsheet selects all polylines with a starting chainage 1300
> to 1700 (which with 100m segments selects the whole length 1300-1800),
>  dissolves them, populates the ID field from a field in the spreadsheet,
> and finally saves these resulting new feature to an existing layer.
> This process would then repeat for the other rows in the spreadsheet/csv.
> I’ve got a reasonable understanding of python,  but have never tried using
> it within qgis. Would that be the easiest route, or is there a way of
> using v.extract in batch mode which reads each of the required selections
> from the spreadsheet? From the grass manual v.extract appears to read
> selections from a text file, but I can't find any good examples, or detail
> in the manual on the required format for the text file.
>
> Any help much appreciated!
>
> Kind regards,
>
>
>
> Sam.
>
> Sam Williams
>
> Director | *Sine Acoustics*
> m. +447969123431 <%2B44%207969%20123431>|
> sam.willi...@sineenvironmental.com | www.sineenvironmental.com
> Sine Acoustics is a trading name of Sine Environmental Limited, company
> number 9609805. Postal address: 78 Old Church Road, Clevedon, North
> Somerset, England, BS216PT.
>
___
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] automatic data entry

2020-09-17 Thread Nicolas Cadieux
Hi,
You could make a 25m buffer and then use “join attributes by location” fond in 
processing.



Once the information is in the buffer object table, start again with the buffer 
and your line, point and polygons.  

https://www.qgistutorials.com/en/docs/performing_spatial_queries.html?highlight=buffer

https://www.qgistutorials.com/en/docs/3/performing_spatial_joins.html


Nicolas Cadieux

> Le 17 sept. 2020 à 04:23, FVHGmail  a écrit :
> 
> 
> Hello ,
>  
> I use QGIS 3.14  and I want to arrange when I draw a line , point or area 
> that the fields  City and Street can be are filled with the closest  City and 
> Street-name out of OpenStreetMap .   In a range of 25 Meter  . The marking I 
> draw are always on a street or bicycle path.
>  
> Maybe an easy question but I am new in the use of QGIS  so I can use a little 
> help the experts .
>  
> Kind regards
>  
> Ferrol
>  
> Sent from Mail for Windows 10
>  
> ___
> 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] pdf generation not working

2020-09-17 Thread Andreas Neumann
Hi, 


Most likely, you are not an runninng an X-Server and/or haven't
configured the display environment variable properly. 


See
https://docs.qgis.org/testing/en/docs/server_manual/getting_started.html#xvfb
[1]for more information. 

Greetings, 

Andreas 


On 2020-09-17 12:35, Davide wrote:


Hi,

we are using the qgis web client 2, but when we request the pdf, then an error 
occours. Debugging the request we see that the qgis server, that uses 
qgis_mapserv.fcgi return error 500 (tested directly with curl).

We have tried to enable logging like

QGIS_SERVER_LOG_FILE
QGIS_SERVER_LOG_LEVEL

but logs are always empty.

With this situation we can't understand where the problem is.

Any suggestion about how to enable logging and/or why the pdf can return and 
error 500 ?

Thanks in advance for any help!

Davide Montesin
Italy
___
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




Links:
--
[1]
https://docs.qgis.org/testing/en/docs/server_manual/getting_started.html#xvfb___
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] pdf generation not working

2020-09-17 Thread Davide

Hi,

we are using the qgis web client 2, but when we request the pdf, then an 
error occours. Debugging the request we see that the qgis server, that 
uses qgis_mapserv.fcgi return error 500 (tested directly with curl).


We have tried to enable logging like

QGIS_SERVER_LOG_FILE
QGIS_SERVER_LOG_LEVEL

but logs are always empty.

With this situation we can't understand where the problem is.

Any suggestion about how to enable logging and/or why the pdf can return 
and error 500 ?


Thanks in advance for any help!

Davide Montesin
Italy
___
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] Batch selection/new feature creation

2020-09-17 Thread Groene Bij
Hi,

 

Have you considered using postgis for this?

See: 
https://gis.stackexchange.com/questions/17495/dissolve-or-unsplit-lines-on-common-attributes-in-postgis-or-grass

 

First step would be to add the reference id from the spreadsheet to the 
polyline layer.

Polyline layer with the 100m stretches, “polyline”



 

Csv with sections, “tracks”



 

So, to add ref_id to each polyline you can use:

SELECT p.*, t.ref_id

FROM polyline as p

JOIN tracks as t

ON p.ch_1 >= t.start_ch AND p.ch_1 < t.end_ch

 

Than you can dissolve all polylines with the same ref_id like in the example 
link.

 

You can  combine al subqueries and export the result as new layer to your 
qgis-canvas.

 

That leaves the ‘saves these resulting new feature to an existing layer’ part.

You can merge features from different layers into a new or existing layer.

 

Greetings,

Jeroen Hovens

 

 

Van: Qgis-user  Namens Samuel Williams
Verzonden: donderdag 17 september 2020 11:14
Aan: Qgis-user@lists.osgeo.org
Onderwerp: [Qgis-user] Batch selection/new feature creation

 

Hello,
I'm hoping that those with more experience of QIS might be able to help point 
me in the right direction.
I have a layer consisting of around 700 end-to-end polylines, each of which 
represents a 100m stretch of railway track centreline. Each polyline is 
attributed with an integer value which represents its starting chainage 
(distance in m from the start of the railway line, abbreviated ch.).
I also have a spreadsheet/csv with several hundred rows, each of which 
represents a different section of the railway. These sections are defined by 
their start and end chainage (e.g. ch. 1300 to ch. 1800 would be a 500m stretch 
starting 1300m from the beginning of the line).
I am looking for an efficient way to select each of the polylines associated 
with each row in the spreadsheet, dissolve them (they should touch end to end), 
and then save them as a new feature on an existing layer. Each one will need to 
be given a reference ID from the relevant line in the spreadsheet.
E.g.
Row 1 of spreadsheet selects all polylines with a starting chainage 1300 to 
1700 (which with 100m segments selects the whole length 1300-1800),  dissolves 
them, populates the ID field from a field in the spreadsheet, and finally saves 
these resulting new feature to an existing layer.
This process would then repeat for the other rows in the spreadsheet/csv.
I’ve got a reasonable understanding of python,  but have never tried using it 
within qgis. Would that be the easiest route, or is there a way of using 
v.extract in batch mode which reads each of the required selections from the 
spreadsheet? From the grass manual v.extract appears to read selections from a 
text file, but I can't find any good examples, or detail in the manual on the 
required format for the text file.

Any help much appreciated!  

Kind regards,

 

Sam.

Sam Williams

Director | Sine Acoustics
m. +447969123431  | 
 sam.willi...@sineenvironmental.com 
|   www.sineenvironmental.com
Sine Acoustics is a trading name of Sine Environmental Limited, company number 
9609805. Postal address: 78 Old Church Road, Clevedon, North Somerset, England, 
BS216PT.

___
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] Grass Processing Tools fail in QGIS LTR, PR & Nightly Builds on MacOS

2020-09-17 Thread Peter Petrik
Hi,

sorry for all problems connected with the MacOS bundles. I hope that
the reported issue should be fixed by commit
https://github.com/qgis/QGIS-Mac-Packager/commit/218a571f6f268dcc4490ebe1a00068bfe363b2ae.

Can you please re-test if the issue persists with build:
https://qgis.org/downloads/macos/nightly2/qgis_nightly2_master_20200917_044804.dmg

Problems with the GRASS processing provider in QGIS 3.10 and 3.14 were
caused by complicated settings of PATHS, linker paths
and other settings in various GRASS and QGIS scripts/binaries
(partially coming from homebrew builds). The GRASS (reliable)
deployment
was one of the drivers for complete refactoring of QGIS dependencies
used for MacOS builds
(see https://github.com/qgis/QGIS-Enhancement-Proposals/issues/177).
Now we have full control of building and patching GRASS as needed.
QGIS 3.16 release will be first using the new system,
you can test it in "nighlty2" builds (nightly are still based on "old"
homebrew deps and QGIS 3.10 LTR will be released
with them). You can grab your nighly build in
https://qgis.org/downloads/macos/nightly2/

Kind regards,

Peter




On Thu, Sep 17, 2020 at 1:06 AM Mr. Stace D Maples 
wrote:

> Anyone have any luck getting grass tools to work on MacOS? This problem
> never seems to go away. Any ideas area appreciated. I’ve got 75 students in
> a Fundamentals course starting to work on their assignments, next week, and
> no one can get QGIS to work properly. Windows users are having issues, too,
> but I haven’t even gotten to them, yet. Here’s my write-up from the last 3
> hours of deleting profiles and reinstalling 3 versions on Catalina 10.15.6:
>
>
>
> From: https://github.com/qgis/QGIS/issues/32511
>
> I seem to be having the same issue, an issue I've seen many times in the
> past. My routine for testing a new installation of QGIS is to add the
> QuickMapPlugin, Create random points and then use v.voronoi on those points
> to test the historically finicky GRASS processing tools.
>
>1. Deleted user profile for all QGIS users and uninstalled previous
>apps
>2. Download Latest Release: qgis-macos-pr.dmg and install
>3. Open QGIS with new empty doc
>*FYI, I don't think the next 2 steps have anything to do with the
>issue, but adding them full acccounting:*
>4. Install QuickMapServices Plugin, add contrib services
>5. Add Stamen Toner Lite
>6. Run "Random points in extent" from Processing Panel
>a. Use Canvas Extent
>b. 10 Points
>c. Target CRS: 3857 (also tried outputing to 4326, same results)
>d. [Create temporary layer]
>7. Runs fine, produces expected random points
>8. Run v.voronoi tool on resulting random points
>a. Use Map Canvas Extent
>b. All else=default
>c. Save to temp
>9. Fails with the error, below
>10. ReRun with option to save random points to point.shp produces the
>same error.
>11. Identical results for 40+ students,using LTR
>12. Repeat exact steps with fresh LTR, including deleting the User
>Profile
>13. same results, exactly.
>14. Nightly Build doesn't load the GRASS Provider, at all.
>
>
>
> *Log WIndow:*
>
> `QGIS version: 3.14.16-Pi
> QGIS code revision: a235a14
> 
> Qt version: 5.12.3
> GDAL version: 2.4.1
> GEOS version: 3.7.2-CAPI-1.11.2 b55d2125
> PROJ version: Rel. 5.2.0, September 15th, 2018
> Processing algorithm…
> Algorithm 'v.voronoi' starting…
> Input parameters:
> { '-l' : False, '-t' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.0001,
> 'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' :
> '-13670428.19180,-13586035.68730,4532539.74780,4571278.57900
> [EPSG:3857]', 'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' :
> '', 'GRASS_VECTOR_EXPORT_NOCAT' : False, 'GRASS_VECTOR_LCO' : '', 'input' :
> '/Users/maples/Downloads/points.shp|layername=points', 'output' :
> 'TEMPORARY_OUTPUT' }
>
> g.proj -c proj4="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=*@null*
>  +wktext +no_defs"
> v.in.ogr min_area=0.0001 snap=-1.0
> input="/Users/maples/Downloads/points.shp" layer="points"
> output="vector_5f627ae75a6d96" --overwrite -o
> g.region n=4571278.579 s=4532539.7478 e=-13586035.6873 w=-13670428.1918
> v.voronoi input=vector_5f627ae75a6d96
> output=output0fc09ffb9e94472baedcf2a353550eca --overwrite
> v.out.ogr type="auto" input="output0fc09ffb9e94472baedcf2a353550eca"
> output="/private/var/folders/f3/0prmkq7962795yfpwsmvh210gq/T/processing_xxaYqK/a0d0a2d2844c493babe4c52273dc5a59/output.gpkg"
> format="GPKG" --overwrite
> Starting GRASS GIS...
> Executing
> 
> ...
> dyld: Symbol not found: _iconv
> Referenced from: /usr/lib/libarchive.2.dylib
> Expected in:
> /Applications/QGIS3.14.app/Contents/Resources/grass7/lib/libiconv.2.dylib
> in /usr/lib/libarchive.2.dylib
> /private/var/folders/f3/0prmkq7962795yfpwsmvh21

[Qgis-user] Batch selection/new feature creation

2020-09-17 Thread Samuel Williams
Hello,
I'm hoping that those with more experience of QIS might be able to help
point me in the right direction.
I have a layer consisting of around 700 end-to-end polylines, each of which
represents a 100m stretch of railway track centreline. Each polyline is
attributed with an integer value which represents its starting chainage
(distance in m from the start of the railway line, abbreviated ch.).
I also have a spreadsheet/csv with several hundred rows, each of which
represents a different section of the railway. These sections are defined
by their start and end chainage (e.g. ch. 1300 to ch. 1800 would be a 500m
stretch starting 1300m from the beginning of the line).
I am looking for an efficient way to select each of the polylines
associated with each row in the spreadsheet, dissolve them (they should
touch end to end), and then save them as a new feature on an existing
layer. Each one will need to be given a reference ID from the relevant line
in the spreadsheet.
E.g.
Row 1 of spreadsheet selects all polylines with a starting chainage 1300 to
1700 (which with 100m segments selects the whole length 1300-1800),
 dissolves them, populates the ID field from a field in the spreadsheet, and
finally saves these resulting new feature to an existing layer.
This process would then repeat for the other rows in the spreadsheet/csv.
I’ve got a reasonable understanding of python,  but have never tried using
it within qgis. Would that be the easiest route, or is there a way of using
v.extract in batch mode which reads each of the required selections from the
spreadsheet? From the grass manual v.extract appears to read selections
from a text file, but I can't find any good examples, or detail in the
manual on the required format for the text file.
Any help much appreciated!

Kind regards,


Sam.

Sam Williams

Director | *Sine Acoustics*
m. +447969123431 <%2B44%207969%20123431>|sam.willi...@sineenvironmental.com
| www.sineenvironmental.com
Sine Acoustics is a trading name of Sine Environmental Limited, company
number 9609805. Postal address: 78 Old Church Road, Clevedon, North
Somerset, England, BS216PT.
___
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] Structures extraction from Landsat or optical As6

2020-09-17 Thread jean Lukusa
I all,
Could you  give me the procedure to extract  structures ( lineament,fault
,fold ) from landsat or  optical Aster in Qgis 3.14.15
___
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] automatic data entry

2020-09-17 Thread FVHGmail
Hello ,  I use QGIS 3.14  and I want to arrange when I draw a line , point or area that the fields  City and Street can be are filled with the closest  City and Street-name out of OpenStreetMap .   In a range of 25 Meter  . The marking I draw are always on a street or bicycle path.  Maybe an easy question but I am new in the use of QGIS  so I can use a little help the experts .  Kind regards  Ferrol Sent from Mail for Windows 10 
___
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