[QGIS-Developer] Plugin [1391] Asistente LADM_COL approval notification.

2018-10-18 Thread noreply

Plugin Asistente LADM_COL approval by pcav.
The plugin version "[1391] Asistente LADM_COL 0.11.0 Experimental" is now 
approved
Link: http://plugins.qgis.org/plugins/asistente_ladm_col/
___
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] Build errors on Windows

2018-10-18 Thread Nyall Dawson
Hi all (well, specifically Jürgen!)

Since the recent upgrades to Qt libraries on osgeo4w I'm getting an
error in my Windows build:

"""
Qt WebKit support enabled

CMake Error at C:/OSGeo4W/apps/Qt5/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:15
(message):

The imported target "Qt5::WebKit" references the file


"C:/OSGeo4W/apps/Qt5/bin/Qt5WebKitd.dll"


but this file does not exist. Possible reasons include:


* The file was deleted, renamed, or moved to another location.


* An install or uninstall procedure did not complete successfully.


* The installation package was faulty and contained


"C:/OSGeo4W/apps/Qt5/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake"


but not all the files it references.


Call Stack (most recent call first):

C:/OSGeo4W/apps/Qt5/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:31
(_qt5_WebKit_check_file_exists)

C:/OSGeo4W/apps/Qt5/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:158
(_populate_WebKit_target_properties)

CMakeLists.txt:337 (FIND_PACKAGE)

"""


Indeed, Qt5WebKitd.dll isn't included anywhere in the osgeo4w install.
Is this an error with the webkit package?

Nyall
___
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] (no subject)

2018-10-18 Thread deirjie
Hi, all,
Sorry to bother again. But is there anyone can help?
I have a problem building qgis 3.2 with python plugin. I think it may be 
related to the character set, as I'm using a Windows 10 OS in the Chinese 
language. I paste the error image here, hoping someone knows how to solve this 
problem. Thanks very much. 
This time I didn't change the character encoding to UTF-8 with BOM, instead I 
add the command "/utf-8" to the project settings to force vs2015 to execute 
with utf-8 encoding.

___
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] Woohoo! Interactive Travis debugging

2018-10-18 Thread Nyall Dawson
On Fri, 12 Oct 2018 at 09:19, Nyall Dawson  wrote:
>
> On Tue, 9 Oct 2018 at 19:18, Nyall Dawson  wrote:
> >
> > Hey all,
>
> >
> > #! /usr/bin/env bash
> >   curl -s -X POST \
> >-H "Content-Type: application/json" \
> >-H "Accept: application/json" \
> >-H "Travis-API-Version: 3" \
> >-H "Authorization: token " \
> >-d '{ "quiet": true }' \
> >https://api.travis-ci.org/job//debug
> >
>
>
> Just a follow up here. Turns out the default configuration (shown
> above) is limited to a 30 minute timeout, which isn't enough to get
> all the dependencies installed and QGIS built, let alone leaving time
> for debugging ;)
>
> After some discussion with Travis staff (who have been fantastic, I've
> got to say!), there's a workaround. By changing "quiet": true to
> "quiet": false, the interactive session is subject to the normal 90(+)
> minute timeout. The side effect is that all the commands entered are
> visible to anyone looking at the Travis log, so be careful not to do
> this with any sensitive information.

A followup to my followup: Travis staff made changes based on our
feedback and now the interactive build timeout matches the normal
build, so it's possible to run in quiet mode and still get the full
timeout.

I know in past there's been frustration directed to the Travis CI
infrastructure when things fail, but full credit to them-- every time
one of us has asked something of them, they've been super receptive
and accommodating to our needs. Pretty damn decent service consider
how much we (don't) pay them!

Nyall
___
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] Bug with Advanced Digitizing Tools - Offset Curve

2018-10-18 Thread Nyall Dawson
On Thu, 18 Oct 2018 at 04:46, C Hamilton  wrote:
>
> There are several issues with the Advanced Digitizing Offset Curve tool and I 
> don't think is operating as intended.
> 1. If a MultiPolygon is selected and then I click on the object I get the 
> error "Creating offset geometry failed".

Sounds like a bug

> 2. If I try it on a MultiLIneString object, the line segment that I click on 
> is resized, but not the whole object. I hope this is not the intended action.

This is by design.

> Is the Offset Curve tool meant to be a resize tool?

Nope - it's an offset/buffer tool, not resize.

Nyall
___
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] URL/Request logging of QGIS?

2018-10-18 Thread Nyall Dawson
On Thu, 18 Oct 2018 at 21:25, Richard Duivenvoorde  wrote:
>
> Hi Devs,
>
> Recently people tell me that certain services (WCS or WFS) are not
> working anymore for them.
>
> Sometimes I can reproduce the problem locally, but often I cannot
> (sometimes because they have a proxy problem or ...).
>
> Would it not be great if those people could easily see the requests that
> are fired? Other then only having the debug info and grep into the sea
> of output that generates?
>
> Thinking about a 'Requests'-tab in the Log Messages where you can maybe
> disable/enable the logging of certain types of requests. Or where you
> can filter certain types of requests.
>
> Is this doable? An idea?

Doable. Just better make sure that NONE of this would be exposed via
Python, as potentially that's a large security risk. (Plugins
listening in to all network requests happening, including
authenticated requests...)


Nyall

>
> Logging all requests going through 'QgsConnectionManager'?
>
> (in my case I have 2 problems at this moment in a
> Client-Window-environment: MetaSearch is erroring because I'm behind a
> firewall (but I cannot see which requests it is firing) and CWS is
> failing on certain services (but I cannot see which requests it is
> firing)...
>
> 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] QGIS build problem on Windows 10 64-bit from Master

2018-10-18 Thread David Adler
After getting a clean OSGEO4W64 and new clone of QGIS source and running 
configonly.bat, I get the following error when building on Visual Studio 
2015.


Creating library 
E:/qgisdev/ms-windows/osgeo4w/build-qgis-test-x86_64/src/app/RelWithDebInfo/qgis_app.lib 
and object 
E:/qgisdev/ms-windows/osgeo4w/build-qgis-test-x86_64/src/app/RelWithDebInfo/qgis_app.exp
48>qgsgeometryvalidationservice.obj : error LNK2019: unresolved external 
symbol "public: __cdecl 
QgsGeometryCheck::LayerFeatureIds::LayerFeatureIds(class QMapQString,class QSet<__int64> > const &)" 
(??0LayerFeatureIds@QgsGeometryCheck@@QEAA@AEBV?$QMap@VQString@@V?$QSet@_J@Z) 
referenced in function "public: void __cdecl 
QgsGeometryValidationService::triggerTopologyChecks(class QgsVectorLayer 
*)" 
(?triggerTopologyChecks@QgsGeometryValidationService@@QEAAXPEAVQgsVectorLayer@@@Z)
48>E:\qgisdev\ms-windows\osgeo4w\build-qgis-test-x86_64\output\bin\RelWithDebInfo\qgis_app.dll 
: fatal error LNK1120: 1 unresolved externals


I'm trying to build from the source in order to diagnose / fix a crash 
in the DB2 provider in QGIS 3.3.


Regards,
David

___
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] URL/Request logging of QGIS?

2018-10-18 Thread Paolo Cavallini
Hi all,

in fact, the WMS tab is already present in the log panel. Echoing the
requests there should be enough.

All the best.


Il 10/18/2018 02:47 PM, Tom Kralidis ha scritto:
> +1 to have the ability to display all network requests from within the
> QGIS console. This has been a recent discussion in some of my projects.
>
> Thanks
>
> ..Tom
>
> Sent from my iPhone
>
> On Oct 18, 2018, at 08:44, Ian Turton  > wrote:
>
>> As I mention in this question
>> (https://gis.stackexchange.com/questions/282662/is-there-any-easy-way-to-see-the-requests-qgis-makes-to-a-remote-server)
>> I'd love to see this built in to QGis
>>
>> Ian
>>
>> On Thu, 18 Oct 2018 at 12:25, Richard Duivenvoorde
>> mailto:rdmaili...@duif.net>> wrote:
>>
>> Hi Devs,
>>
>> Recently people tell me that certain services (WCS or WFS) are not
>> working anymore for them.
>>
>> Sometimes I can reproduce the problem locally, but often I cannot
>> (sometimes because they have a proxy problem or ...).
>>
>> Would it not be great if those people could easily see the
>> requests that
>> are fired? Other then only having the debug info and grep into
>> the sea
>> of output that generates?
>>
>> Thinking about a 'Requests'-tab in the Log Messages where you can
>> maybe
>> disable/enable the logging of certain types of requests. Or where you
>> can filter certain types of requests.
>>
>> Is this doable? An idea?
>>
>> Logging all requests going through 'QgsConnectionManager'?
>>
>> (in my case I have 2 problems at this moment in a
>> Client-Window-environment: MetaSearch is erroring because I'm
>> behind a
>> firewall (but I cannot see which requests it is firing) and CWS is
>> failing on certain services (but I cannot see which requests it is
>> firing)...
>>
>> 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
>>
>>
>>
>> -- 
>> Ian Turton
>> ___
>> 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

-- 
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/

___
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] URL/Request logging of QGIS?

2018-10-18 Thread Tom Kralidis
+1 to have the ability to display all network requests from within the QGIS 
console. This has been a recent discussion in some of my projects.

Thanks

..Tom

Sent from my iPhone

> On Oct 18, 2018, at 08:44, Ian Turton  wrote:
> 
> As I mention in this question 
> (https://gis.stackexchange.com/questions/282662/is-there-any-easy-way-to-see-the-requests-qgis-makes-to-a-remote-server)
>  I'd love to see this built in to QGis
> 
> Ian
> 
>> On Thu, 18 Oct 2018 at 12:25, Richard Duivenvoorde  
>> wrote:
>> Hi Devs,
>> 
>> Recently people tell me that certain services (WCS or WFS) are not
>> working anymore for them.
>> 
>> Sometimes I can reproduce the problem locally, but often I cannot
>> (sometimes because they have a proxy problem or ...).
>> 
>> Would it not be great if those people could easily see the requests that
>> are fired? Other then only having the debug info and grep into the sea
>> of output that generates?
>> 
>> Thinking about a 'Requests'-tab in the Log Messages where you can maybe
>> disable/enable the logging of certain types of requests. Or where you
>> can filter certain types of requests.
>> 
>> Is this doable? An idea?
>> 
>> Logging all requests going through 'QgsConnectionManager'?
>> 
>> (in my case I have 2 problems at this moment in a
>> Client-Window-environment: MetaSearch is erroring because I'm behind a
>> firewall (but I cannot see which requests it is firing) and CWS is
>> failing on certain services (but I cannot see which requests it is
>> firing)...
>> 
>> 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
> 
> 
> -- 
> Ian Turton
> ___
> 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] URL/Request logging of QGIS?

2018-10-18 Thread Ian Turton
As I mention in this question (
https://gis.stackexchange.com/questions/282662/is-there-any-easy-way-to-see-the-requests-qgis-makes-to-a-remote-server)
I'd love to see this built in to QGis

Ian

On Thu, 18 Oct 2018 at 12:25, Richard Duivenvoorde 
wrote:

> Hi Devs,
>
> Recently people tell me that certain services (WCS or WFS) are not
> working anymore for them.
>
> Sometimes I can reproduce the problem locally, but often I cannot
> (sometimes because they have a proxy problem or ...).
>
> Would it not be great if those people could easily see the requests that
> are fired? Other then only having the debug info and grep into the sea
> of output that generates?
>
> Thinking about a 'Requests'-tab in the Log Messages where you can maybe
> disable/enable the logging of certain types of requests. Or where you
> can filter certain types of requests.
>
> Is this doable? An idea?
>
> Logging all requests going through 'QgsConnectionManager'?
>
> (in my case I have 2 problems at this moment in a
> Client-Window-environment: MetaSearch is erroring because I'm behind a
> firewall (but I cannot see which requests it is firing) and CWS is
> failing on certain services (but I cannot see which requests it is
> firing)...
>
> 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



-- 
Ian Turton
___
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] URL/Request logging of QGIS?

2018-10-18 Thread Raymond Nijssen

Hi Richard,

I would love this as well, when trying to debug WMS/WFS problems.

In the past I've been using Wireshark for this, which you can try for now.

Raymond


On 18-10-18 13:31, Tom Chadwin wrote:

I'd find this incredibly useful, as I've had to attach an HTTP debugger in
the past, which is overkill when all you want is to see the full requests.

Thanks

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
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



--
Terglobo
Fahrenheitstraat 1
5223 BJ 's-Hertogenbosch
The Netherlands
+31 (0) 6 25 31 49 83
___
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] URL/Request logging of QGIS?

2018-10-18 Thread Andreas Neumann

Hi Richard,

That is a good idea. I'd also like to see this implemented.

Andreas


Am 18.10.2018 um 13:25 schrieb Richard Duivenvoorde:

Hi Devs,

Recently people tell me that certain services (WCS or WFS) are not
working anymore for them.

Sometimes I can reproduce the problem locally, but often I cannot
(sometimes because they have a proxy problem or ...).

Would it not be great if those people could easily see the requests that
are fired? Other then only having the debug info and grep into the sea
of output that generates?

Thinking about a 'Requests'-tab in the Log Messages where you can maybe
disable/enable the logging of certain types of requests. Or where you
can filter certain types of requests.

Is this doable? An idea?

Logging all requests going through 'QgsConnectionManager'?

(in my case I have 2 problems at this moment in a
Client-Window-environment: MetaSearch is erroring because I'm behind a
firewall (but I cannot see which requests it is firing) and CWS is
failing on certain services (but I cannot see which requests it is
firing)...

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

Re: [QGIS-Developer] URL/Request logging of QGIS?

2018-10-18 Thread Tom Chadwin
I'd find this incredibly useful, as I've had to attach an HTTP debugger in
the past, which is overkill when all you want is to see the full requests.

Thanks

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
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] URL/Request logging of QGIS?

2018-10-18 Thread Richard Duivenvoorde
Hi Devs,

Recently people tell me that certain services (WCS or WFS) are not
working anymore for them.

Sometimes I can reproduce the problem locally, but often I cannot
(sometimes because they have a proxy problem or ...).

Would it not be great if those people could easily see the requests that
are fired? Other then only having the debug info and grep into the sea
of output that generates?

Thinking about a 'Requests'-tab in the Log Messages where you can maybe
disable/enable the logging of certain types of requests. Or where you
can filter certain types of requests.

Is this doable? An idea?

Logging all requests going through 'QgsConnectionManager'?

(in my case I have 2 problems at this moment in a
Client-Window-environment: MetaSearch is erroring because I'm behind a
firewall (but I cannot see which requests it is firing) and CWS is
failing on certain services (but I cannot see which requests it is
firing)...

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] set data defined override expression with python?

2018-10-18 Thread Raymond Nijssen

On 16-10-18 04:19, Nyall Dawson wrote:

The API uses ints instead of the direct DataDefinedProperty enums, as
the enums vary by part of code (there's separate enums for symbology,
labelling, layouts, etc)

For symbology:

layer = QgsSvgMarkerSymbolLayer(...)
...
layer.setDataDefinedProperty( QgsSymbolLayer.PropertyName,
QgsProperty.fromExpression( " some expression ") )

Nyall




Thanks Nyall, that works!

And now I know the property name, I could also find the other 
properties. And then I started searching the code for more and found the 
ones listed below. Possibly there are more.


It was apparently too hard for me finding these property names and I 
wonder if others are struggling as well. Where could we put this in a 
way where people can find it and where it will be easily to maintain? 
The cookbook?


Regards,
Raymond



QgsAbstract3DSymbol
  PropertyHeight = 0,   //!< Height (altitude)
  PropertyExtrusionHeight,  //!< Extrusion height (zero means no 
extrusion)


QgsLayoutObject
  NoProperty = 0, //!< No property
  AllProperties, //!< All properties for item
  TestProperty, //!< Dummy property with no effect on item
  //composer page properties
  PresetPaperSize, //!< Preset paper size for composition
  PaperWidth, //!< Paper width (deprecated)
  PaperHeight, //!< Paper height (deprecated)
  NumPages, //!< Number of pages in composition (deprecated)
  PaperOrientation, //!< Paper orientation
  //general composer item properties
  PageNumber, //!< Page number for item placement
  PositionX, //!< X position on page
  PositionY, //!< Y position on page
  ItemWidth, //!< Width of item
  ItemHeight, //!< Height of item
  ItemRotation, //!< Rotation of item
  Transparency, //!< Item transparency (deprecated)
  Opacity, //!< Item opacity
  BlendMode, //!< Item blend mode
  ExcludeFromExports, //!< Exclude item from exports
  FrameColor, //!< Item frame color
  BackgroundColor, //!< Item background color
  //composer map
  MapRotation, //!< Map rotation
  MapScale, //!< Map scale
  MapXMin, //!< Map extent x minimum
  MapYMin, //!< Map extent y minimum
  MapXMax, //!< Map extent x maximum
  MapYMax, //!< Map extent y maximum
  MapAtlasMargin, //!< Map atlas margin
  MapLayers, //!< Map layer set
  MapStylePreset, //!< Layer and style map theme
  //composer picture
  PictureSource, //!< Picture source url
  PictureSvgBackgroundColor, //!< SVG background color
  PictureSvgStrokeColor, //!< SVG stroke color
  PictureSvgStrokeWidth, //!< SVG stroke width
  //html item
  SourceUrl, //!< Html source url
  //legend item
  LegendTitle, //!< Legend title
  LegendColumnCount, //!< Legend column count
  //scalebar item
  ScalebarFillColor, //!< Scalebar fill color
  ScalebarFillColor2, //!< Scalebar secondary fill color
  ScalebarLineColor, //!< Scalebar line color
  ScalebarLineWidth, //!< Scalebar line width,
  //table item
  AttributeTableSourceLayer, //!< Attribute table source layer

QgsDiagramLayerSettings
  BackgroundColor, //!< Diagram background color
  StrokeColor, //!< Stroke color
  StrokeWidth, //!< Stroke width
  PositionX, //! x-coordinate data defined diagram position
  PositionY, //! y-coordinate data defined diagram position
  Distance, //! Distance to diagram from feature
  Priority, //! Diagram priority (between 0 and 10)
  ZIndex, //! Z-index for diagram ordering
  IsObstacle, //! Whether diagram features act as obstacles for 
other diagrams/labels

  Show, //! Whether to show the diagram
  AlwaysShow, //! Whether the diagram should always be shown, even 
if it overlaps other diagrams/labels

  StartAngle, //! Angle offset for pie diagram

QgsPalLayerSettings
  Size = 0, //!< Label size
  Bold = 1, //!< Use bold style
  Italic = 2, //!< Use italic style
  Underline = 3, //!< Use underline
  Color = 4, //!< Text color
  Strikeout = 5, //!< Use strikeout
  Family = 6, //!< Font family
  FontStyle = 21, //!< Font style name
  FontSizeUnit = 22, //!< Font size units
  FontTransp = 18, //!< Text transparency (deprecated)
  FontOpacity = 92, //!< Text opacity
  FontCase = 27, //!< Label text case
  FontLetterSpacing = 28, //!< Letter spacing
  FontWordSpacing = 29, //!< Word spacing
  FontBlendMode = 30, //! Text blend mode

  // text formatting
  MultiLineWrapChar = 31,
  AutoWrapLength = 101,
  MultiLineHeight = 32,
  MultiLineAlignment = 33,
  DirSymbDraw = 34,
  DirSymbLeft = 35,
  DirSymbRight = 36,
  DirSymbPlacement = 37,
  DirSymbReverse = 38,
  NumFormat = 39,
  NumDecimals = 40,
  NumPlusSign = 41,

  // text buffer
  BufferDraw = 42,
  BufferSize = 7,
  BufferUnit = 43,
  BufferColor = 8,
  BufferTransp 

Re: [QGIS-Developer] Adding a panel to layer properties dialog from a python plugin

2018-10-18 Thread Denis Rouzaud
Hi again,

Sorry I pasted the wrong links...
This was for adding a page to global options.

Here it is for layers.
https://qgis.org/pyqgis/master/gui/other/QgisInterface.html#qgis.gui.QgisInterface.registerMapLayerConfigWidgetFactory

https://qgis.org/pyqgis/master/gui/Map/QgsMapLayerConfigWidgetFactory.html

There you have to implement supports layers. So it is very likely that it
will work for rasters but did not check.

Denis

On Thu, 18 Oct 2018, 03:37 Ricardo Filipe Soares Garcia da, <
ricardo.garcia.si...@gmail.com> wrote:

> Hi Denis, all
>
> I keep forgetting there are now also (totally cool) docs for the python
> API... I guess old habits die hard ;)
>
> From your tip I guess the problem I'm facing is likely related to my class
> inheriting from the wrong base ( as I'm not using QgsOptionsPageWidget).
>
> I'll try it out later and let you know ;)
>
> As for the raster layer properties dialog , is this indeed not implemented
> there?
>
> Best regards
>
>
> Denis Rouzaud  escreveu no dia quinta,
> 18/10/2018 à(s) 01:49:
>
>> Hi Ricardo,
>>
>> For python, looking at the python API is always a good start ;)
>>
>> https://qgis.org/pyqgis/master/gui/other/QgisInterface.html#qgis.gui.QgisInterface.registerOptionsWidgetFactory
>>
>> This means you must give a QgsOptionsWidgetFactory
>> https://qgis.org/pyqgis/master/gui/Options/QgsOptionsWidgetFactory.html
>>
>> Here the docs could be clearer but this is the class you have to inherit.
>> You need to implement title, icon and createWidget. In the latter, you'll
>> be able to load your UI and return the widget to be displayed. The widget
>> you return must inherit QgsOptionsPageWidget.
>>
>> I hope this helps!
>>
>>
>> Denis
>>
>> On Wed, 17 Oct 2018, 18:24 Ricardo Filipe Soares Garcia da, <
>> ricardo.garcia.si...@gmail.com> wrote:
>>
>>> Hi all
>>>
>>> The API docs for QgisInterface[1] mention the existence of a
>>> `registerMapLayerConfigWidgetFactory()` method which says in its
>>> documentation:
>>>
>>> > Register a new tab in the vector layer properties dialog.
>>>
>>> I've been trying to test this out and see if I can add a new panel to a
>>> layer's properties dialog via a Python plugin. So far I've had no luck.
>>> Couldn't find any other docs/samples online showing how to do this. Perhaps
>>> someone can help me out?
>>>
>>> Here is what I have:
>>>
>>> -  made a custom .ui file in Qt designer with a simple QWidget that only
>>> has a QLabel inside
>>> -  implemented a class inheriting from both
>>> `qgis.gui.QgsMapLayerConfigWidget` and my ui file (after it is loaded with
>>> uic.loadUiType)
>>> - implemented a class inheriting from
>>> `qgis.gui.QgsMapLayerConfigWidgetFactory`. This class implements all of the
>>> methods declared as *virtual* in the cpp API, including the
>>> `createWidget()`, which returns a new instance of my custom
>>> maplayerconfigwidget class
>>> - in my plugin's `initGui()` method I'm calling
>>> `iface.registerMapLayerConfigWidgetFactory()` and pass along my custom
>>> factory
>>>
>>> I guess this should be enough to have a minimum working prototype.
>>> However, this is what happens:
>>>
>>> - When I load up a vector layer and then open it's properties dialog,
>>> QGIS just crashes with a core dumped message.
>>> - When I load up a raster layer and then open it's properties dialog,
>>> nothing happens. I suspect this functionality is probably not even
>>> available for raster layers. Is this true?
>>>
>>> Can someone provide some pointers or some existing reference on how this
>>> would work? Thanks in advance
>>>
>>> [1] -
>>> https://qgis.org/api/classQgisInterface.html#a2c64949239a7717d181e34d6f2c47851
>>>
>>> --
>>> ___ ___ __
>>> Ricardo Garcia Silva
>>> ___
>>> 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
>>
>> --
>>
>> Denis Rouzaud
>> de...@opengis.ch  
>> +41 76 370 21 22
>>
>>
>>
>
> --
> ___ ___ __
> Ricardo Garcia Silva
> ___
> 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

-- 

Denis Rouzaud
de...@opengis.ch  
+41 76 370 21 22
___
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] Adding a panel to layer properties dialog from a python plugin

2018-10-18 Thread Ricardo Filipe Soares Garcia da
Hi Denis, all

I keep forgetting there are now also (totally cool) docs for the python
API... I guess old habits die hard ;)

>From your tip I guess the problem I'm facing is likely related to my class
inheriting from the wrong base ( as I'm not using QgsOptionsPageWidget).

I'll try it out later and let you know ;)

As for the raster layer properties dialog , is this indeed not implemented
there?

Best regards


Denis Rouzaud  escreveu no dia quinta, 18/10/2018
à(s) 01:49:

> Hi Ricardo,
>
> For python, looking at the python API is always a good start ;)
>
> https://qgis.org/pyqgis/master/gui/other/QgisInterface.html#qgis.gui.QgisInterface.registerOptionsWidgetFactory
>
> This means you must give a QgsOptionsWidgetFactory
> https://qgis.org/pyqgis/master/gui/Options/QgsOptionsWidgetFactory.html
>
> Here the docs could be clearer but this is the class you have to inherit.
> You need to implement title, icon and createWidget. In the latter, you'll
> be able to load your UI and return the widget to be displayed. The widget
> you return must inherit QgsOptionsPageWidget.
>
> I hope this helps!
>
>
> Denis
>
> On Wed, 17 Oct 2018, 18:24 Ricardo Filipe Soares Garcia da, <
> ricardo.garcia.si...@gmail.com> wrote:
>
>> Hi all
>>
>> The API docs for QgisInterface[1] mention the existence of a
>> `registerMapLayerConfigWidgetFactory()` method which says in its
>> documentation:
>>
>> > Register a new tab in the vector layer properties dialog.
>>
>> I've been trying to test this out and see if I can add a new panel to a
>> layer's properties dialog via a Python plugin. So far I've had no luck.
>> Couldn't find any other docs/samples online showing how to do this. Perhaps
>> someone can help me out?
>>
>> Here is what I have:
>>
>> -  made a custom .ui file in Qt designer with a simple QWidget that only
>> has a QLabel inside
>> -  implemented a class inheriting from both
>> `qgis.gui.QgsMapLayerConfigWidget` and my ui file (after it is loaded with
>> uic.loadUiType)
>> - implemented a class inheriting from
>> `qgis.gui.QgsMapLayerConfigWidgetFactory`. This class implements all of the
>> methods declared as *virtual* in the cpp API, including the
>> `createWidget()`, which returns a new instance of my custom
>> maplayerconfigwidget class
>> - in my plugin's `initGui()` method I'm calling
>> `iface.registerMapLayerConfigWidgetFactory()` and pass along my custom
>> factory
>>
>> I guess this should be enough to have a minimum working prototype.
>> However, this is what happens:
>>
>> - When I load up a vector layer and then open it's properties dialog,
>> QGIS just crashes with a core dumped message.
>> - When I load up a raster layer and then open it's properties dialog,
>> nothing happens. I suspect this functionality is probably not even
>> available for raster layers. Is this true?
>>
>> Can someone provide some pointers or some existing reference on how this
>> would work? Thanks in advance
>>
>> [1] -
>> https://qgis.org/api/classQgisInterface.html#a2c64949239a7717d181e34d6f2c47851
>>
>> --
>> ___ ___ __
>> Ricardo Garcia Silva
>> ___
>> 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
>
> --
>
> Denis Rouzaud
> de...@opengis.ch  
> +41 76 370 21 22
>
>
>

-- 
___ ___ __
Ricardo Garcia Silva
___
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] Multi file execution in gdaldem hillshade

2018-10-18 Thread P Chakravarthi
Dear Team,

I need your support for multi file execution with gdaldem (python script).
Could you please provide the code for the same.

Thanks

Best regards
Chakravarthi
___
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] For info: Travis now has supports Windows

2018-10-18 Thread Peter Petrik
Kindof... they download
http://qgis.org/downloads/QGIS-OSGeo4W-3.2.3-1-Setup-x86_64.exe and run the
installer :)

P.

On Thu, Oct 18, 2018 at 4:51 AM Nathan Woodrow  wrote:

> Oh so OSGeo4w stuff is already in chocolaty?
>
> On Thu, Oct 18, 2018 at 1:23 AM Peter Petrik <
> peter.pet...@lutraconsulting.co.uk> wrote:
>
>> Hello,
>>
>> we managed to add Travis Windows build for MDAL
>> . If you are interested, best
>> is to look at .travis.yml
>>  and
>> scripts/travis/windows
>> .
>> The libraries (GDAL, NetCDF, HDF5, ...) are taken from OSGeo4W which is
>> already included in https://chocolatey.org.
>>
>> Peter
>>
>> On Mon, Oct 15, 2018 at 5:35 PM Denis Rouzaud 
>> wrote:
>>
>>> That's great news, thanks for the info!
>>>
>>> Le ven. 12 oct. 2018 à 09:47, Tom Chadwin  a
>>> écrit :
>>>
 Run your single test suite on all major platforms (early release):


 https://blog.travis-ci.com/2018-10-11-windows-early-release?utm_source=twitter_medium=web_campaign=windows_early_release

 Tom



 -
 Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
 --
 Sent from:
 http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
 ___
 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
>>>
>>> --
>>>
>>> Denis Rouzaud
>>> de...@opengis.ch  
>>> +41 76 370 21 22
>>>
>>>
>>> ___
>>> 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 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