[QGIS-Developer] Fwd: [Qgis-user] Error editing PK values in "Add record" form

2018-03-07 Thread Andreas Neumann
Hi, 

I am forwarding this from the user list - if this is really the case
that multi-column primary keys are violating the unique constraints of
"individual" fields, than I need we need to properly deal with such
cases. 

Multi-column pkeys are quite common in some data models. 

Any ideas how to fix/address this issue? 

Thanks, 

Andreas 

 Original Message  

SUBJECT:
[Qgis-user] Error editing PK values in "Add record" form

DATE:
2018-03-08 08:31

FROM:
Rafa García Castillo 

TO:
qgis-u...@lists.osgeo.org

  Hi everybody, 

  I´m testing QGIS 3.0 in Windows 10. I think I have found an error in
the "Add record" form when you are editing a PostgreSQL table without
geometry and the table primary key (PK) is composed of two fields (or
more) from the table. 

  I suppose QGIS thinks a PK field has to be unique, and that´s true for
most of the cases, but when you have a PK composed of more than one
field, is the combination of these fields what it has to be unique, not
the fields individually. Now, in QGIS 3.0, if you write a value for one
of the PK fields that it is already in the table, it doesn't let you
insert that value, even if the combination of the values that compound
the PK is unique. 

  I attach two screenshot:  
-"Add record" button 
-"Add record" form not letting you insert a value 

  Thanks in advance 

  Rafa 

___
Qgis-user mailing list
qgis-u...@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-u...@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [1187] Split Features On Steroids approval notification.

2018-03-07 Thread noreply

Plugin Split Features On Steroids approval by zimbogisgeek.
The plugin version "[1187] Split Features On Steroids 0.12" is now approved
Link: http://plugins.qgis.org/plugins/SplitPolygonShowingAreas/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] proj5 and epsg:3857 ?

2018-03-07 Thread Richard Duivenvoorde
On 07-03-18 21:18, Even Rouault wrote:
> On mercredi 7 mars 2018 21:13:36 CET Richard Duivenvoorde wrote:
>> Hi,
> 
>> Having a geocoder plugins, in 2.18 (still proj4), I can geocode my home
> 
>> address, and reproject the epsg:28992 coordinate fine to epsg:3857.
>
>> But since last week Debian has proj5, and the same plugin (in QGIS 
>> master) now is off by 500 meter.
> 
> This is a known issue of proj 5.0.0.
> https://github.com/OSGeo/proj.4/issues/834
> 
> Will be fixed in proj 5.0.1 supposedly released around April

Ouch... Ok, thanks for the quick answer.

As we have OSM xyz layer now, and I think a lot of people will use it as
a quick reference map, we should be carefull to include proj5 in
distributions/installs then I think?

Like: let's not put proj5 as default in Osgeo4w untill this is
fixed/released.

Regards,

Richard Duivenvoorde



___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Error during master compilation

2018-03-07 Thread matteo
Hi devs,

even with a new source directory I cannot compile QGIS. I get this error:


In file included from
/home/matteo/lavori/QGIS/QGIS/src/core/processing/qgsprocessingregistry.cpp:20:0:
/home/matteo/lavori/QGIS/QGIS/src/core/processing/qgsprocessingparametertypeimpl.h:
In member function ‘virtual QgsProcessingParameterType::ParameterFlags
QgsProcessingParameterTypeVectorDestination::flags() const’:
/home/matteo/lavori/QGIS/QGIS/src/core/processing/qgsprocessingparametertypeimpl.h:396:13:
error: ‘QgsProcessingParameterType::ParameterFlags {aka class
QFlags}’ has no member named
‘setFlag’
   flags.setFlag( ParameterFlag::ExposeToModeler, false );
 ^
/home/matteo/lavori/QGIS/QGIS/src/core/processing/qgsprocessingparametertypeimpl.h:
In member function ‘virtual QgsProcessingParameterType::ParameterFlags
QgsProcessingParameterTypeFileDestination::flags() const’:
/home/matteo/lavori/QGIS/QGIS/src/core/processing/qgsprocessingparametertypeimpl.h:438:13:
error: ‘QgsProcessingParameterType::ParameterFlags {aka class
QFlags}’ has no member named
‘setFlag’
   flags.setFlag( ParameterFlag::ExposeToModeler, false );
 ^
/home/matteo/lavori/QGIS/QGIS/src/core/processing/qgsprocessingparametertypeimpl.h:
In member function ‘virtual QgsProcessingParameterType::ParameterFlags
QgsProcessingParameterTypeFolderDestination::flags() const’:
/home/matteo/lavori/QGIS/QGIS/src/core/processing/qgsprocessingparametertypeimpl.h:481:13:
error: ‘QgsProcessingParameterType::ParameterFlags {aka class
QFlags}’ has no member named
‘setFlag’
   flags.setFlag( ParameterFlag::ExposeToModeler, false );
 ^
/home/matteo/lavori/QGIS/QGIS/src/core/processing/qgsprocessingparametertypeimpl.h:
In member function ‘virtual QgsProcessingParameterType::ParameterFlags
QgsProcessingParameterTypeRasterDestination::flags() const’:
/home/matteo/lavori/QGIS/QGIS/src/core/processing/qgsprocessingparametertypeimpl.h:523:13:
error: ‘QgsProcessingParameterType::ParameterFlags {aka class
QFlags}’ has no member named
‘setFlag’
   flags.setFlag( ParameterFlag::ExposeToModeler, false );
 ^
[ 11%] Building CXX object
src/core/CMakeFiles/qgis_core.dir/processing/models/qgsprocessingmodelparameter.cpp.o
src/core/CMakeFiles/qgis_core.dir/build.make:3250: recipe for target
'src/core/CMakeFiles/qgis_core.dir/processing/qgsprocessingregistry.cpp.o'
failed
make[2]: ***
[src/core/CMakeFiles/qgis_core.dir/processing/qgsprocessingregistry.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs
CMakeFiles/Makefile2:1243: recipe for target
'src/core/CMakeFiles/qgis_core.dir/all' failed
make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2


Some suggestions?

Thanks

Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [1305] Calidad-CAR approval notification.

2018-03-07 Thread noreply

Plugin Calidad-CAR approval by zimbogisgeek.
The plugin version "[1305] Calidad-CAR 1.0.6" is now approved
Link: http://plugins.qgis.org/plugins/CalidadCAR/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Fwd: FOSS4G 2018: Call for Participation!

2018-03-07 Thread Tim Sutton
Hi QGIS Users and Developers

I just want to encourage you to attend this year’s foss4g in Dar es Salaam, 
Tanzania. The call for presentations closes on 21 March so make sure to get 
your QGIS submissions in so that we can have a good presence at the conference!

See message below:

View this email in your browser 


 
FOSS4G 2018
March 06, 2018

Call for Participation!

A FOSS4G is a celebration of our global community and that doesn't happen 
without you! Geospatial technology is transforming our world and FOSS4G is the 
place for us to share and learn as a community.

As such, we would like to announce that our call for participation for FOSS4G 
2018 is out and we invite you to submit!! We're looking for the very best that 
our community has to offer: From presentations on the latest technical 
developments, stories on how technology is transforming lives, how-to 
workshops, and the very best maps - FOSS4G 2018 in Dar es Salaam will be the 
place for hearing the very best that our community has to offer.

We are looking for a variety of different types of stories across a broad range 
of sectors and industries. Our program aims to cover the full breadth and depth 
of geospatial free and open source software as well as the application of OSGeo 
and FOSS4G technology. But we're also looking at how our technology is used, 
accordingly we are also looking for presentations along the following themes:
Urban (co-organised by Understanding Risk 
)
Coastal, Marine and the Environment
Widening Access and Humanitarian Mapping (co-organised by Humanitarian 
OpenStreetMap Team 
)
Drones/Unmanned Aerial Vehicles
For more details on how to submit your paper/presentation please click here 
.
 The deadline for sending presentations is on March 21.

If you have any questions about the call for papers or the conference in 
general, please get in touch with us! Visit our Website 
,
 Twitter 

 or email us directly foss4g...@gmail.com 
.

May the FOSS be with you!
 

 

 

 
Copyright © 2018 OSGeo, All rights reserved.
FOSS4G is the annual global event of the Open Source Geospatial Foundation 
(OSGeo). Although widely recognized as the largest technical geospatial Open 
Source conference we call FOSS4G an "event" because it is far more than "just" 
a conference. A typical FOSS4G will include regular presentations and talks, 
but also code sprints, birds of a feather sessions, workshops, topic talks and 
of course social events.

You are receiving this email because we believe you've attended FOSS4G or 
FOSS4G-NA in the past, or have asked to be included in announcements. It is or 
intention to never send unwanted email. If you believe you got this email in 
error, or do not with to receive further emails, please unsubscribe and accept 
our sincere apologies.

Our mailing address is:
FOSS4G Dar es Salaam 2018
Julius Nyerere International Convention Centre
Shaaban Robert St
Dar es Salaam
Tanzania

Add us to your address book 


Want to change how you receive these emails?
You can update your preferences 

 or unsubscribe from this list 



 



---

Tim Sutton
QGIS Project Steering Committee Chair
t...@qgis.org




___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] proj5 and epsg:3857 ?

2018-03-07 Thread Even Rouault
On mercredi 7 mars 2018 21:13:36 CET Richard Duivenvoorde wrote:
> Hi,
> 
> Having a geocoder plugins, in 2.18 (still proj4), I can geocode my home
> address, and reproject the epsg:28992 coordinate fine to epsg:3857.
> 
> But since last week Debian has proj5, and the same plugin (in QGIS
> master) now is off by 500 meter.

This is a known issue of proj 5.0.0.
https://github.com/OSGeo/proj.4/issues/834

 Will be fixed in proj 5.0.1 supposedly released around April

> 
> To reproduce: if you have a QGIS 2.18 with proj4, and the
> 'pdokservicesplugin' geocode the zip+number: '2022zj 23' in for example
> the osm xyz layer.
> Now do the same in QGIS master with proj5 and you'll see it is not going
> to the right/same position.
> 
> Another observation: IN 2.18 I can 'reproject' the OSM layer to for
> example epsg:4326, and still see (little distorted) map.
> But in QGIS3/proj5 I do not see a map anymore.
> 
> Anybody else seeing this?
> 
> Regards,
> 
> Richard Duivenvoorde
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] proj5 and epsg:3857 ?

2018-03-07 Thread Richard Duivenvoorde
Now I look in the terminal, and I see this text looping for ever:

src/core/raster/qgsrasterprojector.cpp: 440: (preciseSrcRowCol) [0ms]
theDestRow = 602
src/core/raster/qgsrasterprojector.cpp: 459: (preciseSrcRowCol) [0ms] x
= 514940 y = 6.83887e+6
src/core/raster/qgsrasterprojector.cpp: 441: (preciseSrcRowCol) [0ms]
theDestRow = 602 mDestExtent.yMaximum() = 52.4154 mDestYRes = 3.60873e-5
src/core/raster/qgsrasterprojector.cpp: 470: (preciseSrcRowCol) [0ms]
mSrcExtent.yMinimum() = 6.83526e+6 mSrcExtent.yMaximum() = 6.8428e+6
mSrcYRes = 6.17316
src/core/raster/qgsrasterprojector.cpp: 450: (preciseSrcRowCol) [0ms] x
= 4.66475 y = 52.3936
src/core/raster/qgsrasterprojector.cpp: 471: (preciseSrcRowCol) [0ms]
theSrcRow = 636 srcCol = 120
src/core/raster/qgsrasterprojector.cpp: 459: (preciseSrcRowCol) [0ms] x
= 519278 y = 6.83772e+6
src/core/raster/qgsrasterprojector.cpp: 440: (preciseSrcRowCol) [0ms]
theDestRow = 477
src/core/raster/qgsrasterprojector.cpp: 470: (preciseSrcRowCol) [0ms]
mSrcExtent.yMinimum() = 6.83566e+6 mSrcExtent.yMaximum() = 6.84168e+6
mSrcYRes = 4.92686
src/core/raster/qgsrasterprojector.cpp: 471: (preciseSrcRowCol) [0ms]
theSrcRow = 803 srcCol = 924
src/core/raster/qgsrasterprojector.cpp: 441: (preciseSrcRowCol) [0ms]
theDestRow = 477 mDestExtent.yMaximum() = 52.4216 mDestYRes = 4.52139e-5
src/core/raster/qgsrasterprojector.cpp: 440: (preciseSrcRowCol) [0ms]
theDestRow = 602
src/core/raster/qgsrasterprojector.cpp: 450: (preciseSrcRowCol) [0ms] x
= 4.62583 y = 52.4


On 07-03-18 21:13, Richard Duivenvoorde wrote:
> Hi,
> 
> Having a geocoder plugins, in 2.18 (still proj4), I can geocode my home
> address, and reproject the epsg:28992 coordinate fine to epsg:3857.
> 
> But since last week Debian has proj5, and the same plugin (in QGIS
> master) now is off by 500 meter.
> 
> To reproduce: if you have a QGIS 2.18 with proj4, and the
> 'pdokservicesplugin' geocode the zip+number: '2022zj 23' in for example
> the osm xyz layer.
> Now do the same in QGIS master with proj5 and you'll see it is not going
> to the right/same position.
> 
> Another observation: IN 2.18 I can 'reproject' the OSM layer to for
> example epsg:4326, and still see (little distorted) map.
> But in QGIS3/proj5 I do not see a map anymore.
> 
> Anybody else seeing this?
> 
> Regards,
> 
> Richard Duivenvoorde
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] proj5 and epsg:3857 ?

2018-03-07 Thread Richard Duivenvoorde
Hi,

Having a geocoder plugins, in 2.18 (still proj4), I can geocode my home
address, and reproject the epsg:28992 coordinate fine to epsg:3857.

But since last week Debian has proj5, and the same plugin (in QGIS
master) now is off by 500 meter.

To reproduce: if you have a QGIS 2.18 with proj4, and the
'pdokservicesplugin' geocode the zip+number: '2022zj 23' in for example
the osm xyz layer.
Now do the same in QGIS master with proj5 and you'll see it is not going
to the right/same position.

Another observation: IN 2.18 I can 'reproject' the OSM layer to for
example epsg:4326, and still see (little distorted) map.
But in QGIS3/proj5 I do not see a map anymore.

Anybody else seeing this?

Regards,

Richard Duivenvoorde
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Discussing qgd files

2018-03-07 Thread Carlo A. Bertelli (Charta s.r.l.)
A disruptive "moreover approach" suggests some reflection about the file
 database approach.

I see several places where handling metadata in the database could provide
a better but possibly conflicting solution.
This happens for instance with styles stored on the database that may
easily be overwritten by opening a modified project (if you work alone it's
wonderful, but cooperating is a nightmare), but may happen also with any
other "intelligent" provision that uses XML and/or persistent storage.

I think this should not prevent a good solution about metadata. A map is
not made of several layers overlaid with their styles only, it's something
more and it's not completely satisfactory to reduce this to a project file
that helps a single user to keep working on it or store the printing styles
(sorry, I simplify too much, I know). Maybe QGD files are a starting point
to design a better solution because we are embracing a three level storage
system: files, light database (SQLite/Spatialite), DBMS (mainly
PostgreSQL/PostGIS, but even others). This solution could lead us to a
careful choice or to more flexibility (complexity?).

Maybe this further flexibility is needed. I raise a very peculiar case: we
work with historical maps and sometimes I georeference maps without being
certain about my sources, sometimes the source itself is made of parts that
ask two set of conflicting reference points for the same file. I'm forced
to make a symlink on the filesystem to have the same file georeferenced in
two ways. Why the different point sets cannot be stored on database? The
reference points are points on earth and frequently I need to reuse them
(what about adjacent tables? Maybe snapping on them could help), why not
storing them in the database?

QGIS Server is an amazing tool, but why using monolithic and completely
proprietary XML file while several other applications could benefit from
more generic metadata stored in the database? That is already done for
styles which store SLD values besides the Qt ones, but it could be extended
to other areas.

It's reasonable to blame my "moreover approach", but take what you think
QGIS could benefit of.
c

-- 
--
Carlo A. Bertelli
   Charta servizi e sistemi per il territorio e la storia ambientale srl
  Dipendenze del palazzo Doria,
  vc. alla Chiesa della Maddalena 9/2 16124  Genova (Italy)
  tel./fax +39(0)10 2475439  +39 0108566195  mobile:+39 393 1590711
   e-mail: berte...@chartasrl.eu  http://www.chartasrl.eu
--
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Discussing qgd files

2018-03-07 Thread Régis Haubourg
2018-03-07 17:10 GMT+01:00 Jürgen E. Fischer :

> Hi Andreas,
>
> On Mon, 05. Mar 2018 at 16:03:08 +0100, Andreas Neumann wrote:
> > In QGIS 3 there is always a qgd file created alongside with QGIS
> > projects. I heard that they are used as auxilliary file to store project
> > specific labels - right?
>
> Sorry for not checking myself.  Are the qgd only written on project save?
>
> Just asking because there's check to avoid overwritting a project that
> meanwhile was changed by someone.  Are qgd implicitly covered by that check
> too?
>

Uhuh, excellent question! I'll check that with Paul. As this is a sqlite
database, I think that we also have to check the file locking policy (
https://www.sqlite.org/lockingv3.html)

 Régis


>
> Jürgen
>
> --
> Jürgen E. Fischer   norBIT GmbH Tel.
> +49-4931-918175-31
> Dipl.-Inf. (FH) Rheinstraße 13  Fax.
> +49-4931-918175-50
> Software Engineer   D-26506 Norden
> http://www.norbit.de
> QGIS release manager (PSC)  GermanyIRC: jef on FreeNode
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Discussing qgd files

2018-03-07 Thread Jürgen E . Fischer
Hi Andreas,

On Mon, 05. Mar 2018 at 16:03:08 +0100, Andreas Neumann wrote:
> In QGIS 3 there is always a qgd file created alongside with QGIS
> projects. I heard that they are used as auxilliary file to store project
> specific labels - right? 

Sorry for not checking myself.  Are the qgd only written on project save?

Just asking because there's check to avoid overwritting a project that
meanwhile was changed by someone.  Are qgd implicitly covered by that check
too?


Jürgen

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode


signature.asc
Description: PGP signature
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Encountering undeclared identifiers and classes during QGIS 3 build on macOS

2018-03-07 Thread Mikhail Katychev
Dennis thanks for the reply, that issue was resolved by doing as you
suggested.
I however am completely unable to specify my SIP directory. There doesn't
seem to be any *cmake* parameters that allow me to point my PyQt5 SIP
directory.

I get
sip: Unable to find file "QtXml/QtXmlmod.sip"
make[2]: *** [python/core/sip_corepart0.cpp] Error 1
make[2]: *** Deleting file `python/core/sip_corepart0.cpp'
make[1]: *** [python/CMakeFiles/python_module_qgis__core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs
[ 30%] Built target qgis_analysis
[ 30%] Built target qgis_vectorlayercachetest_autogen
[ 53%] Built target qgis_gui
make: *** [all] Error

When my Qt5Xml_DIR *ccmake* var is located in:
/usr/local/opt/qt/lib/cmake/Qt5Xml

And my actualy sip files are located in:
/usr/local/Cellar/pyqt/5.10/share/sip/Qt5

Running *FindPyQt5.py* gives me this output:
pyqt_version:050a01
pyqt_version_num:330241
pyqt_version_str:5.10.1
pyqt_version_tag:
pyqt_mod_dir:/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PyQt5
pyqt_sip_dir:/usr/local/share/sip
pyqt_sip_flags:-t WS_MACX -t Qt_5_10_1
pyqt_bin_dir:/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/bin

The thing to point out is that I don't have a directory called
*/usr/local/share/sip*, only a Qt4 one: */usr/local/share/sip-qt4*. Should
I be creating a symlink pointing to that directory?

I have also tried this solution to no avail:
https://issues.qgis.org/issues/16034

Any suggestions on how to properly point to my PyQt5 directory would be a
huge help.

Thanks,
Mikhail



On Wed, Mar 7, 2018 at 5:52 AM, Denis Rouzaud 
wrote:

> Hi,
>
> You're using the system spatialite while you should use the brew one.
>
> After is my cmake output.
>
> Good luck!
>
> Denis
>
> -- QGIS version: 3.1.0 Master (30100)
>
> -- Could not find GRASS 7
>
> -- Found Proj: /usr/local/opt/proj/lib/libproj.dylib
>
> -- Found GEOS: /usr/local/Cellar/geos/3.6.2/lib/libgeos_c.dylib (3.6.2)
>
> -- Found GDAL: /usr/local/opt/gdal2/lib/libgdal.dylib (2.2.3)
>
> -- Found Expat: /usr/local/opt/expat/lib/libexpat.dylib
>
> -- Found Spatialindex: /usr/local/opt/spatialindex/
> lib/libspatialindex.dylib
>
> -- Found Qwt: /usr/local/opt/qwt/lib/qwt.framework (6.1.3)
>
> -- Found libzip: /usr/local/opt/libzip/lib/libzip.dylib
>
> -- Found Sqlite3: /usr/local/opt/sqlite/lib/libsqlite3.dylib
>
> -- Found PostgreSQL: /usr/local/lib/libpq.dylib
>
> -- Found SpatiaLite: /usr/local/opt/libspatialite/lib/libspatialite.dylib
>
> -- Qt WebKit support enabled
>
> -- Found Qt version: 5.10.1
>
> -- Found QScintilla2: /usr/local/opt/qscintilla2/lib/libqscintilla2_qt5.dylib
> (2.10.2)
>
> -- Found QtKeychain: /usr/local/lib/libqt5keychain.dylib
>
> -- Found QCA: /usr/local/opt/qca/lib/qca-qt5.framework (2.1.3)
>
> -- QtCore/QCA include/lib variables missing or CMake is cross-compiling,
>
> -- skipping QCA OpenSSL plugin C++ check
>
> -- Pedantic compiler settings enabled
>
> -- Debug output enabled
>
> -- Found Python executable: /usr/local/bin/python3
>
> -- Found Python version: 3.6.4
>
> -- Found Python library: /usr/local/Frameworks/Python.
> framework/Versions/3.6/Python
>
> -- Found Python site-packages: /usr/local/lib/python3.6/site-packages
>
> -- Found PyQt5 version: 5.10
>
> -- Found SIP version: 4.19.7
>
> -- Found QScintilla2 PyQt module: 2.10.2
>
> -- txt2tags not found - disabled
>
> -- Found GSL: -L/usr/local/Cellar/gsl/2.4/lib -lgsl -lgslcblas
>
> -- Ctest Binary Directory set to: /Users/denis/opt/qgis/build-
> QGIS-Qt5/output/bin
>
> -- Configuring done
>
> -- Generating done
>
> -- Build files have been written to: /Users/denis/opt/qgis/build-QGIS-Qt5
>
>
>
>
> Le lun. 5 mars 2018 à 16:39, Mikhail Katychev  a
> écrit :
>
>> Perhaps this is more relevant to the dev mailing list,
>>
>> Has anyone had any luck building QGIS 3 on macOS? I keep getting unknown
>> class names and identifiers that are very close to the expected ones such
>> as:
>>
>> 'IDataStream'; did you mean 'QDataStream'?
>>
>> and
>>
>> error: no type named 'Region' in namespace 'SpatialIndex'; did you mean 
>> 'QRegion'?
>>
>> as well as an indication that Rtree is unable to be found even when I did a 
>> pip install rtree:
>> /Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:78:25: error: 
>> use of undeclared identifier 'RTree'
>>
>> Here is my cmake command arguments:
>>
>> cmake ../CMakeLists.txt \
>> -DGRASS_PREFIX7=/usr/local/Cellar/grass7/7.2.2/grass-base \
>> -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison \
>> -DWITH_QTWEBKIT=false \
>> -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.10.1 \
>> -DQSCINTILLA_INCLUDE_DIR=/usr/local/Cellar/qscintilla2/2.10.3/include/ \
>> -DQSCI_SIP_DIR=/usr/local/Cellar/qscintilla2/2.10.3/share/sip/Qsci \
>> -DQSCINTILLA_LIBRARY=/usr/local/Cellar/qscintilla2/2.10.3/lib/libqscintilla2_qt5.13.1.1.dylib
>>
>> Here is my cmake output for the previous command:
>>

[QGIS-Developer] R: Toolbar customization

2018-03-07 Thread Poltini Roberto
Hi,
   my opinion is that QGIS doesn’t write the settings for external python 
plugins but only for m…ToolBar.
QGIS saves only the visibility for whole a toolbar not for the single buttons 
of toolbar.
I can implement this logic directly in my plugin but what settings can I read 
if QGIS don't save them at all ?
Do you mean I have to create my own dialog to set the button visibility ?
Regards

Da: Tim Sutton [mailto:t...@kartoza.com]
Inviato: mercoledì 7 marzo 2018 13.49
A: Poltini Roberto
Oggetto: Re: [QGIS-Developer] Toolbar customization

Hi

Yes this is as I have explained - it is better that your plugin manages this I 
think. Could I ask you to Kindly keep the discussion on teh mailing list so 
that others may benefit from your eventual solution too?

Regards

Tim


On 07 Mar 2018, at 12:31, Poltini Roberto 
> wrote:

Hi Tim,
   thanks for your reply.
I work on windows. After setting customization in QGIS and exiting from QGIS if 
you see the qgis registry as below



Qgis doesn’t write the setting for external python plugin but only for 
m…ToolBar.
Infact restarting QGIS, if you run customization dialog the settings for the 
toolbar of external plugin are lost.



Da: Tim Sutton [mailto:t...@kartoza.com]
Inviato: mercoledì 7 marzo 2018 10.56
A: Poltini Roberto
Cc: QGIS Developer
Oggetto: Re: [QGIS-Developer] Toolbar customization

Hi

I think this is because the plugin loads after the customisation is applied to 
the application on start up.

Why not implement this logic directly in your plugin?

Regards

Tim



On 07 Mar 2018, at 11:23, Poltini Roberto 
> wrote:

Hi Devs,
   I noticed that QGIS customization (QGIS 2.18) doesn’t work as expected. My 
plugin has a big toolbar so I want to hide some buttons.
Using the customization dialog I set some buttons of my toolbar as “hide” but 
when I restart qgis these settings are lost.
It works with “core” plugins but it doesn’t with external python plugins like 
mine.
How can I solve ?
Thanks
gam17

Per essere informati sulle novità del Gruppo Iren, vi invitiamo a registrarvi 
alla nostra mailing list, all’indirizzo 
"http://www.gruppoiren.it/; .

È possibile, inoltre, avanzare nuove idee e progetti per il territorio e 
seguire quelli già attivi nei Comitati Territoriali del Gruppo Iren, 
consultando "http://www.Irencollabora.it;

You can also suggest new ideas and initiatives for the territory and view those 
already active in the Iren Group Territorial Committees 
"http://www.Irencollabora.it;

Le informazioni contenute nella presente comunicazione e i relativi allegati 
possono essere riservate e sono, comunque, destinate esclusivamente alle 
persone o alla Società sopraindicati. La diffusione, distribuzione e/o 
copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal 
destinatario è proibita, sia ai sensi dell’art. 616 c.p. , che ai sensi del 
D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo 
di distruggerlo e di informare immediatamente il mittente.


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net


Per essere informati sulle novità del Gruppo Iren, vi invitiamo a registrarvi 
alla nostra mailing list, all’indirizzo 
"http://www.gruppoiren.it/; .

È possibile, inoltre, avanzare nuove idee e progetti per il territorio e 
seguire quelli già attivi nei Comitati Territoriali del Gruppo Iren, 
consultando "http://www.Irencollabora.it;

You can also suggest new ideas and initiatives for the territory and view those 
already active in the Iren Group Territorial Committees 
"http://www.Irencollabora.it;

Le informazioni contenute nella presente comunicazione e i relativi allegati 
possono essere riservate e sono, comunque, destinate esclusivamente alle 
persone o alla Società sopraindicati. La diffusione, distribuzione e/o 
copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal 
destinatario è proibita, sia ai sensi dell’art. 616 c.p. , che ai sensi del 
D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo 
di distruggerlo e di 

Re: [QGIS-Developer] Encountering undeclared identifiers and classes during QGIS 3 build on macOS

2018-03-07 Thread Denis Rouzaud
Hi,

You're using the system spatialite while you should use the brew one.

After is my cmake output.

Good luck!

Denis

-- QGIS version: 3.1.0 Master (30100)

-- Could not find GRASS 7

-- Found Proj: /usr/local/opt/proj/lib/libproj.dylib

-- Found GEOS: /usr/local/Cellar/geos/3.6.2/lib/libgeos_c.dylib (3.6.2)

-- Found GDAL: /usr/local/opt/gdal2/lib/libgdal.dylib (2.2.3)

-- Found Expat: /usr/local/opt/expat/lib/libexpat.dylib

-- Found Spatialindex: /usr/local/opt/spatialindex/lib/libspatialindex.dylib

-- Found Qwt: /usr/local/opt/qwt/lib/qwt.framework (6.1.3)

-- Found libzip: /usr/local/opt/libzip/lib/libzip.dylib

-- Found Sqlite3: /usr/local/opt/sqlite/lib/libsqlite3.dylib

-- Found PostgreSQL: /usr/local/lib/libpq.dylib

-- Found SpatiaLite: /usr/local/opt/libspatialite/lib/libspatialite.dylib

-- Qt WebKit support enabled

-- Found Qt version: 5.10.1

-- Found QScintilla2:
/usr/local/opt/qscintilla2/lib/libqscintilla2_qt5.dylib (2.10.2)

-- Found QtKeychain: /usr/local/lib/libqt5keychain.dylib

-- Found QCA: /usr/local/opt/qca/lib/qca-qt5.framework (2.1.3)

-- QtCore/QCA include/lib variables missing or CMake is cross-compiling,

-- skipping QCA OpenSSL plugin C++ check

-- Pedantic compiler settings enabled

-- Debug output enabled

-- Found Python executable: /usr/local/bin/python3

-- Found Python version: 3.6.4

-- Found Python library:
/usr/local/Frameworks/Python.framework/Versions/3.6/Python

-- Found Python site-packages: /usr/local/lib/python3.6/site-packages

-- Found PyQt5 version: 5.10

-- Found SIP version: 4.19.7

-- Found QScintilla2 PyQt module: 2.10.2

-- txt2tags not found - disabled

-- Found GSL: -L/usr/local/Cellar/gsl/2.4/lib -lgsl -lgslcblas

-- Ctest Binary Directory set to:
/Users/denis/opt/qgis/build-QGIS-Qt5/output/bin

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/denis/opt/qgis/build-QGIS-Qt5




Le lun. 5 mars 2018 à 16:39, Mikhail Katychev  a écrit :

> Perhaps this is more relevant to the dev mailing list,
>
> Has anyone had any luck building QGIS 3 on macOS? I keep getting unknown
> class names and identifiers that are very close to the expected ones such
> as:
>
> 'IDataStream'; did you mean 'QDataStream'?
>
> and
>
> error: no type named 'Region' in namespace 'SpatialIndex'; did you mean 
> 'QRegion'?
>
> as well as an indication that Rtree is unable to be found even when I did a 
> pip install rtree:
> /Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:78:25: error: 
> use of undeclared identifier 'RTree'
>
> Here is my cmake command arguments:
>
> cmake ../CMakeLists.txt \
> -DGRASS_PREFIX7=/usr/local/Cellar/grass7/7.2.2/grass-base \
> -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison \
> -DWITH_QTWEBKIT=false \
> -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.10.1 \
> -DQSCINTILLA_INCLUDE_DIR=/usr/local/Cellar/qscintilla2/2.10.3/include/ \
> -DQSCI_SIP_DIR=/usr/local/Cellar/qscintilla2/2.10.3/share/sip/Qsci \
> -DQSCINTILLA_LIBRARY=/usr/local/Cellar/qscintilla2/2.10.3/lib/libqscintilla2_qt5.13.1.1.dylib
>
> Here is my cmake output for the previous command:
>
> -- QGIS version: 3.1.0 Master (30100)
> -- Found GRASS 7: /usr/local/Cellar/grass7/7.2.2/grass-base (7.2.2, off_t 
> size = )
> -- Found Proj: /Library/Frameworks/PROJ.framework
> -- Found GEOS: /Library/Frameworks/GEOS.framework (3.6.1)
> -- Found GDAL: /Library/Frameworks/GDAL.framework (2.1.3)
> -- Found Expat: /usr/lib/libexpat.dylib
> -- Found Spatialindex: /usr/local/lib/libspatialindex.dylib
> -- Found Qwt: /usr/local/lib/qwt.framework (6.1.3)
> -- Found libzip: /usr/local/lib/libzip.dylib
> -- Found Sqlite3: /Library/Frameworks/SQLite3.framework
> -- Found PostgreSQL: /usr/local/lib/libpq.dylib
> -- Found SpatiaLite: /Library/Frameworks/SQLite3.framework
> -- Qt WebKit support DISABLED.
> -- Found Qt version: 5.10.1
> -- Found QScintilla2: 
> /usr/local/Cellar/qscintilla2/2.10.3/lib/libqscintilla2_qt5.13.1.1.dylib 
> (2.10.3)
> -- Found QtKeychain: /usr/local/lib/libqt5keychain.dylib
> -- Found QCA: /usr/local/lib/qca-qt5.framework (2.1.3)
> -- QtCore/QCA include/lib variables missing or CMake is cross-compiling,
> --   skipping QCA OpenSSL plugin C++ check
> -- Pedantic compiler settings enabled
> -- Found Python executable: /usr/local/bin/python3
> -- Found Python version: 3.6.4
> -- Found Python library: 
> /usr/local/Frameworks/Python.framework/Versions/3.6/Python
> -- Found Python site-packages: /usr/local/lib/python3.6/site-packages
> -- Found PyQt5 version: 5.10.1
> -- Found SIP version: 4.19.8
> -- Found QScintilla2 PyQt module: 2.10.3
> -- txt2tags not found - disabled
> -- Found GSL: -L/usr/local/Cellar/gsl/2.4/lib -lgsl -lgslcblas
> -- Ctest Binary Directory set to: /Users/user/Downloads/QGIS-master/output/bin
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/user/Downloads/QGIS-master
>
> And finally, here is my fatal error output log mostly referencing 
> qgspointlocator.cpp:
>

Re: [QGIS-Developer] license requirements for QGIS plugin

2018-03-07 Thread Sandro Santilli
On Tue, Mar 06, 2018 at 04:14:49PM +1200, Olivier Dalang wrote:

> We tried our best to convince some partners to base some of their work on
> QGIS, but they are not ready for open-source yet.

Patience is a good virtue.
Sharing is another one.

--strk;
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Toolbar customization

2018-03-07 Thread Tim Sutton
Hi

I think this is because the plugin loads after the customisation is applied to 
the application on start up.

Why not implement this logic directly in your plugin?

Regards

Tim

> On 07 Mar 2018, at 11:23, Poltini Roberto  
> wrote:
> 
> Hi Devs,
>I noticed that QGIS customization (QGIS 2.18) doesn’t work as expected. My 
> plugin has a big toolbar so I want to hide some buttons.
> Using the customization dialog I set some buttons of my toolbar as “hide” but 
> when I restart qgis these settings are lost.
> It works with “core” plugins but it doesn’t with external python plugins like 
> mine.
> How can I solve ?
> Thanks
> gam17
> Per essere informati sulle novità del Gruppo Iren, vi invitiamo a registrarvi 
> alla nostra mailing list, all’indirizzo "http://www.gruppoiren.it/; 
>  .
> 
> È possibile, inoltre, avanzare nuove idee e progetti per il territorio e 
> seguire quelli già attivi nei Comitati Territoriali del Gruppo Iren, 
> consultando "http://www.Irencollabora.it; 
> 
> You can also suggest new ideas and initiatives for the territory and view 
> those already active in the Iren Group Territorial Committees 
> "http://www.Irencollabora.it; 
> 
> Le informazioni contenute nella presente comunicazione e i relativi allegati 
> possono essere riservate e sono, comunque, destinate esclusivamente alle 
> persone o alla Società sopraindicati. La diffusione, distribuzione e/o 
> copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal 
> destinatario è proibita, sia ai sensi dell’art. 616 c.p. , che ai sensi del 
> D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi 
> preghiamo di distruggerlo e di informare immediatamente il mittente.
> 
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org 
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
> 
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
> 
—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Toolbar customization

2018-03-07 Thread Poltini Roberto
Hi Devs,
   I noticed that QGIS customization (QGIS 2.18) doesn’t work as expected. My 
plugin has a big toolbar so I want to hide some buttons.
Using the customization dialog I set some buttons of my toolbar as “hide” but 
when I restart qgis these settings are lost.
It works with “core” plugins but it doesn’t with external python plugins like 
mine.
How can I solve ?
Thanks
gam17

Per essere informati sulle novità del Gruppo Iren, vi invitiamo a registrarvi 
alla nostra mailing list, all’indirizzo 
"http://www.gruppoiren.it/; .

È possibile, inoltre, avanzare nuove idee e progetti per il territorio e 
seguire quelli già attivi nei Comitati Territoriali del Gruppo Iren, 
consultando "http://www.Irencollabora.it;

You can also suggest new ideas and initiatives for the territory and view those 
already active in the Iren Group Territorial Committees 
"http://www.Irencollabora.it;

Le informazioni contenute nella presente comunicazione e i relativi allegati 
possono essere riservate e sono, comunque, destinate esclusivamente alle 
persone o alla Società sopraindicati. La diffusione, distribuzione e/o 
copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal 
destinatario è proibita, sia ai sensi dell’art. 616 c.p. , che ai sensi del 
D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo 
di distruggerlo e di informare immediatamente il mittente.


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [1143] PostGIS Sampling Tool approval notification.

2018-03-07 Thread noreply

Plugin PostGIS Sampling Tool approval by zimbogisgeek.
The plugin version "[1143] PostGIS Sampling Tool 1.4.3" is now approved
Link: http://plugins.qgis.org/plugins/postgis_sampling_tool/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer