Re: [Qgis-user] Error compiling QGIS 2.18.8: "QStringLiteral was not declared in this scope"

2017-05-24 Thread Larry Shaffer
Hi Hernán,

It looks like someone backported a fix from QGIS 2.99 (upcoming 3.0
release) code branch, where QStringLiteral() is preferred over QString()
because it is available in Qt5, and other reasons. The use of
QStringLiteral in 2.x code bases needs removed (as Jürgen mentioned).

Side note: I have gotten around it for C++ plugin development, where I
wanted to compile the same plugin code for QGIS 2 and 3 while focusing more
on QGIS 3 coding style/standards, by using the following macro:

#ifndef QStringLiteral
// Add define for Qt4
// Source code is assumed to be encoded in UTF-8 (as per Qt5 macro)
//# define QStringLiteral(str) QString::fromUtf8(str, sizeof(str) - 1)
// But... that macro does not appear to work on Linux with GCC,
// Just add QString() stub instead
# define QStringLiteral(str) QString(str)
#endif

This *could* be added to 2.x branches (to guard against this type of
error), but there is the problem that there is no standard base included
header file, e.g. qgis.h and qgsconfig.h are not always included. So, no
clear place to put the macro.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota
--
Boundless Desktop and QGIS Support/Development
Boundless Spatial - http://boundlessgeo.com
lshaf...@boundlessgeo.com


Larry Shaffer
Dakota Cartography
Black Hills, South Dakota
--
Boundless Desktop and QGIS Support/Development
Boundless Spatial - http://boundlessgeo.com
lshaf...@boundlessgeo.com

On Wed, May 24, 2017 at 3:21 PM, Jürgen E. Fischer <j...@norbit.de> wrote:

> Hi Hernán,
>
> On Wed, 24. May 2017 at 22:56:49 +0200, Hernán De Angelis wrote:
> > I am trying to compile 2.18.8 from source. This is my usual way of
> > installing QGIS and I never experience any dramatic problems. However,
> this
> > time I keep getting the following cryptic error, which I cannot seem to
> get
> > around:
>
> Apply af8fb04f.
>
>
> 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-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] Problems installing Mac version from homebrew

2017-05-10 Thread Larry Shaffer
Hi Jesus,

Please follow the standard means of installing the formula:

brew install osgeo/osgeo4mac/qgis2

which will automatically 'tap' the osgeo/homebrew-osgeo4mac tap (code repo
of formulae).

If that does not work, then there is something wrong with your basic
install of Homebrew.

If you feel it is still an issue with the OSGeo4Mac tap, please report the
issue here:
https://github.com/OSGeo/homebrew-osgeo4mac/issues

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota
--
Boundless Desktop and QGIS Support/Development
Boundless Spatial - http://boundlessgeo.com
lshaf...@boundlessgeo.com

On Tue, May 9, 2017 at 6:03 PM, Jesús Lopez <jesusl.te...@gmail.com> wrote:

> When I try to install last Mac version from Osgeo brew with brew install
> https://raw.github.com/osgeo/homebrew-osgeo4mac/master/qgis2.rb I get
> this:
> /System/Library/Frameworks/Ruby.framework/Versions/2.0/
> usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require':
> cannot load such file -- mach (LoadError)
> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/
> usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /usr/local/Library/Homebrew/extend/pathname.rb:2:in ` (required)>'
> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/
> usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/
> usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /usr/local/Library/Homebrew/global.rb:3:in `'
> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/
> usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/
> usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /usr/local/Library/brew.rb:16:in `’
>
> and nothing happens….
> I get the same outuput with brew install qgis2
>
> Any idea what am I doing wrong?
>
> Thanks in advance.
> Jesus
> ___
> 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] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Larry Shaffer
Hi,

Sorry for the top post...

Btw, you can also grab iface.mainWindow() for the full application main
window screen shot. This just grabs the content area, so no native window
dressings, e.g. no title bar, etc.

There is also the fun stuff in this Qt5 example (I think one for Qt4, too):
http://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html

While the user could use another screen capture utility, having some
limited, but reasonable, capture functionality as part of QGIS core can be
quite useful, especially in educational settings, as it would require no
additional software.

Maybe even a simple movie recording feature that dumps to an animated GIF?
Ah, now that would be very, very useful and a fun feature to make. Btw, Qt
can grab the entire screen, or just the portions occupied by QGIS, as well.

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Tue, Dec 20, 2016 at 1:43 PM, Larry Shaffer <lar...@dakotacarto.com>
wrote:

> Hi,
>
> On Tue, Dec 20, 2016 at 11:02 AM, DelazJ <del...@gmail.com> wrote:
>
>> Hi,
>>
>> 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen <bo.victor.thom...@gmail.com
>> >:
>>
>>> Hi List-members -
>>>
>>> Is there in Qgis a function / button / menu-item / short-cut / plugin to
>>> make a simple bitmap copy of the current content of the map-canvas and save
>>> it to the clipboard ? My users need this to make a copy of the map and
>>> paste into MS-Word or other software.
>>>
>>
> While not part of the QGIS app, one could use this PyQGIS snippet to do so
> (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS console:
>
> from PyQt4.QtGui import *
> QApplication.clipboard().setImage(QImage(QPixmap.
> grabWidget(iface.mapCanvas(
>
> This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a
> paint device, like an image. Code can be wrapped in a plugin, then have
> some key bindings applied (would need some more PyQt).
>
> Larry Shaffer
> Dakota Cartography
> Black Hills, South Dakota
>
>
>> I really need the functionality for my users and I can't seem to find it.
>>> The closest I've come is the "save as png" menu-item in the project menu.
>>> But it's to cumbersome to use in this case.
>>>
>>
>> Afaics, there's no "save as png" option but "save as image" in Project
>> menu, option from which you can choose the image file format (bmp, jpg...).
>> It's not on the clipboard but easier and more accessible than print
>> composer.
>>
>> Regards,
>> Harrissou
>>
>>
>>>
>>> I'm familiar with the composer function. My users can't use this neither
>>> because it takes to long to activate (to many choices and to many buttons
>>> to click)
>>>
>>> So I've decided to make a simple plugin to cover this functionality. But
>>> first I want to be very sure the function actually is missing ;-)
>>>
>>> Regards
>>> Bo Victor Thomsen
>>> Municipality of Frederikssund, Denmark.
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Larry Shaffer
Hi Bo, et al.,

On Wed, Dec 21, 2016 at 4:34 AM, Bo Victor Thomsen <
bo.victor.thom...@gmail.com> wrote:

> Ok -
>
> A very rough, but functional first version of the plugin is now in
> https://github.com/Frederikssund/QGIS-canvas-to-clipboard/
>
>- No shortcut
>- No about-box, nice explanations or help text
>- No copyright statements
>- Only one button that create a bitmap of the current map-canvas and
>put into the clipboard
>
> But it works  !
>
> Is it possible that I could get some feedback on how it works on other
> platforms than Windows from someone(s) with access to Linux and/or Mac?
>

Plugin works fine here on macOS 10.11.6 with QGS 2.14. Thanks for putting
it together. Glad to see it works cross-platform without quirks!

Here on macOS, the clipboard contents are recognized as a TIFF-formatted
image (of course, not GeoTIFF, that would be too cool - though I don't know
where one could *paste* a GeoTIFF). Guessing that the clipboard format
might be platform-specific and managed by Qt.

Also here on macOS, there is a thin gray border, which I think is always
part of the widget's scene. IMO actually makes the capture better, if there
is a partial or wrapped white background shown in the canvas and the user
is pasting into a white-background document (common scenario).

Richard, if you are looking to add this to master, maybe it should go under
the View menu, e.g. View -> Copy to Clipboard (maybe right under 'Zoom
Out'?), since Edit menu seems to be just for editing features and is fully
greyed-out if only working with rasters. Another appropriate menu might be
Project -> Copy to Clipboard, under 'Save as Image...', though I think
under View is maybe better.

Be good to have a default key binding, though I can't think of a decent
cross-platform keystroke right now.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


>
>
> Den 20-12-2016 kl. 21:43 skrev Larry Shaffer:
>
> Hi,
>
> On Tue, Dec 20, 2016 at 11:02 AM, DelazJ <del...@gmail.com> wrote:
>
>> Hi,
>>
>> 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen <bo.victor.thom...@gmail.com
>> >:
>>
>>> Hi List-members -
>>>
>>> Is there in Qgis a function / button / menu-item / short-cut / plugin to
>>> make a simple bitmap copy of the current content of the map-canvas and save
>>> it to the clipboard ? My users need this to make a copy of the map and
>>> paste into MS-Word or other software.
>>>
>>
> While not part of the QGIS app, one could use this PyQGIS snippet to do so
> (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS console:
>
> from PyQt4.QtGui import *
> QApplication.clipboard().setImage(QImage(QPixmap.
> grabWidget(iface.mapCanvas())))
>
> This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a
> paint device, like an image. Code can be wrapped in a plugin, then have
> some key bindings applied (would need some more PyQt).
>
> Larry Shaffer
> Dakota Cartography
> Black Hills, South Dakota
>
>
>> I really need the functionality for my users and I can't seem to find it.
>>> The closest I've come is the "save as png" menu-item in the project menu.
>>> But it's to cumbersome to use in this case.
>>>
>>
>> Afaics, there's no "save as png" option but "save as image" in Project
>> menu, option from which you can choose the image file format (bmp, jpg...).
>> It's not on the clipboard but easier and more accessible than print
>> composer.
>>
>> Regards,
>> Harrissou
>>
>>
>>>
>>> I'm familiar with the composer function. My users can't use this neither
>>> because it takes to long to activate (to many choices and to many buttons
>>> to click)
>>>
>>> So I've decided to make a simple plugin to cover this functionality. But
>>> first I want to be very sure the function actually is missing ;-)
>>>
>>> Regards
>>> Bo Victor Thomsen
>>> Municipality of Frederikssund, Denmark.
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-20 Thread Larry Shaffer
Hi,

On Tue, Dec 20, 2016 at 11:02 AM, DelazJ <del...@gmail.com> wrote:

> Hi,
>
> 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen <bo.victor.thom...@gmail.com>
> :
>
>> Hi List-members -
>>
>> Is there in Qgis a function / button / menu-item / short-cut / plugin to
>> make a simple bitmap copy of the current content of the map-canvas and save
>> it to the clipboard ? My users need this to make a copy of the map and
>> paste into MS-Word or other software.
>>
>
While not part of the QGIS app, one could use this PyQGIS snippet to do so
(tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS console:

from PyQt4.QtGui import *
QApplication.clipboard().setImage(QImage(QPixmap.grabWidget(iface.mapCanvas(

This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a paint
device, like an image. Code can be wrapped in a plugin, then have some key
bindings applied (would need some more PyQt).

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


> I really need the functionality for my users and I can't seem to find it.
>> The closest I've come is the "save as png" menu-item in the project menu.
>> But it's to cumbersome to use in this case.
>>
>
> Afaics, there's no "save as png" option but "save as image" in Project
> menu, option from which you can choose the image file format (bmp, jpg...).
> It's not on the clipboard but easier and more accessible than print
> composer.
>
> Regards,
> Harrissou
>
>
>>
>> I'm familiar with the composer function. My users can't use this neither
>> because it takes to long to activate (to many choices and to many buttons
>> to click)
>>
>> So I've decided to make a simple plugin to cover this functionality. But
>> first I want to be very sure the function actually is missing ;-)
>>
>> Regards
>> Bo Victor Thomsen
>> Municipality of Frederikssund, Denmark.
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Assistance with Basic Authentication

2016-12-03 Thread Larry Shaffer
Hi Nyall,

(reposting, because I noticed I only replied to you directly before)

On Tue, Nov 29, 2016 at 4:50 PM, Nyall Dawson <nyall.daw...@gmail.com>
wrote:

> On 30 November 2016 at 04:25, Larry Shaffer <lar...@dakotacarto.com>
> wrote:
> > Hi Phil,
> >
> > Does your endpoint prompt an HTTP Basic username/password dialog when
> > connecting to it via a Web browser? If not, then your server may not be
> > sending the correct challenge:
> >
> > https://www.w3.org/Protocols/HTTP/1.0/spec.html#BasicAA
>
> Larry,
>
> Is the authentication system supported by the OGR provider? I couldn't
> see anywhere in the provider itself where this is handled.
>

Indeed, it is not. I think to support that we would need to incorporate the
auth selector dialog into all layer property dialogs, as well as any access
point  or API call to GDAL/OGR data. There is no 'connection configuration'
dialog like there is with OWS and Postgres.

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


>
> Nyall
>
>
> >
> > Regards,
> >
> > Larry Shaffer
> > Dakota Cartography
> > Black Hills, South Dakota
> >
> > On Mon, Nov 28, 2016 at 4:51 PM, Phil (The Geek) Wyatt
> > <p...@wyatt-family.com> wrote:
> >>
> >> Hi Folks,
> >>
> >>
> >>
> >> Is there anyone out there that can assist with a QGIS authentication
> >> issue? I am trying to get basic authentication working but it seems to
> be
> >> failing all the time. If someone has used authentication recently I can
> >> supply the site details for testing.
> >>
> >>
> >>
> >>
> >>
> >> Cheers - Phil
> >>
> >>
> >>
> >> Kiva Lender, Thin Green Line Supporter, Volunteer Mapper (GISMO) - Red
> >> Cross, Wildcare Volunteer
> >>
> >>
> >>
> >>
> >> ___
> >> Qgis-user mailing list
> >> Qgis-user@lists.osgeo.org
> >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> >
> >
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Assistance with Basic Authentication

2016-12-03 Thread Larry Shaffer
Hi Phil,

Contact me directly with the connection info and I will see what's needed
or missing from the auth system API.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Sat, Dec 3, 2016 at 6:11 PM, Phil (The Geek) Wyatt <p...@wyatt-family.com
> wrote:

> Hi Folks,
>
> I am still really keen to get a resolution to this issue if anyone can
> provide more leads or quotes to get authentication working with geojson.
>
> Cheers - Phil
>
> -Original Message-
> From: Nyall Dawson [mailto:nyall.daw...@gmail.com]
> Sent: Wednesday, November 30, 2016 10:51 AM
> To: Larry Shaffer
> Cc: Phil (The Geek) Wyatt; QGIS User List
> Subject: Re: [Qgis-user] Assistance with Basic Authentication
>
> On 30 November 2016 at 04:25, Larry Shaffer <lar...@dakotacarto.com>
> wrote:
> > Hi Phil,
> >
> > Does your endpoint prompt an HTTP Basic username/password dialog when
> > connecting to it via a Web browser? If not, then your server may not
> > be sending the correct challenge:
> >
> > https://www.w3.org/Protocols/HTTP/1.0/spec.html#BasicAA
>
> Larry,
>
> Is the authentication system supported by the OGR provider? I couldn't see
> anywhere in the provider itself where this is handled.
>
> Nyall
>
>
> >
> > Regards,
> >
> > Larry Shaffer
> > Dakota Cartography
> > Black Hills, South Dakota
> >
> > On Mon, Nov 28, 2016 at 4:51 PM, Phil (The Geek) Wyatt
> > <p...@wyatt-family.com> wrote:
> >>
> >> Hi Folks,
> >>
> >>
> >>
> >> Is there anyone out there that can assist with a QGIS authentication
> >> issue? I am trying to get basic authentication working but it seems
> >> to be failing all the time. If someone has used authentication
> >> recently I can supply the site details for testing.
> >>
> >>
> >>
> >>
> >>
> >> Cheers - Phil
> >>
> >>
> >>
> >> Kiva Lender, Thin Green Line Supporter, Volunteer Mapper (GISMO) -
> >> Red Cross, Wildcare Volunteer
> >>
> >>
> >>
> >>
> >> ___
> >> Qgis-user mailing list
> >> Qgis-user@lists.osgeo.org
> >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> >
> >
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Assistance with Basic Authentication

2016-11-29 Thread Larry Shaffer
Hi Phil,

Does your endpoint prompt an HTTP Basic username/password dialog when
connecting to it via a Web browser? If not, then your server may not be
sending the correct challenge:

https://www.w3.org/Protocols/HTTP/1.0/spec.html#BasicAA

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Mon, Nov 28, 2016 at 4:51 PM, Phil (The Geek) Wyatt <
p...@wyatt-family.com> wrote:

> Hi Folks,
>
>
>
> Is there anyone out there that can assist with a QGIS authentication
> issue? I am trying to get basic authentication working but it seems to be
> failing all the time. If someone has used authentication recently I can
> supply the site details for testing.
>
>
>
>
>
> Cheers - Phil
>
>
>
> Kiva Lender <http://www.kiva.org/lender/phil80199001>, Thin Green Line
> Supporter <http://www.thingreenline.org.au/>, Volunteer Mapper (GISMO) - Red
> Cross <http://www.redcross.org.au/volunteering.aspx>, Wildcare Volunteer
> <http://wildcaretas.org.au/branches/friends-of-gis/>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 2.16 for OS X?

2016-08-22 Thread Larry Shaffer
Hi,

On Tue, Aug 16, 2016 at 10:25 AM, Matthias Kuhn <matth...@opengis.ch> wrote:

> Hi Carlos,
>
> Disclaimer:
> This is only meant to be an intermediate solution until there's a proper
> package on osgeo or homebrew. It's only meant to share a package that
> worked for me and I don't plan to spend any effort into fixing warnings
> caused by this repo or make it shiny in whatever way.
> If it helps someone to get the latest and greatest of QGIS on mac that's
> awesome. And if someone can offer improvements or fixes to this formula,
> I'm more than happy to integrate them as long as there is no "official"
> solution.
>

I will be working on updating the OSGeo4Mac QGIS formulae this week. Thank
you to everyone who has been patient with this delayed schedule, and to
Matthias for providing an interim formula.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


> Concerning your errors: please make sure you remove anything related to
> qt5.
>
> Regards
> Matthias
>
> On 08/16/2016 05:41 PM, Carlos Grohmann wrote:
> > Now an error:
> >
> > CMake Error at
> > /usr/local/Cellar/cmake/3.6.1/share/cmake/Modules/FindQt4.cmake:1328
> > (message):
> >   Found unsuitable Qt version "5.6.1" from /usr/local/opt/qt5/bin/qmake,
> > this
> >   code requires Qt 4.x
> > Call Stack (most recent call first):
> >   CMakeLists.txt:274 (FIND_PACKAGE)
> >
> >
> > $ brew search qt
> > homebrew/science/seqtkm-kuhn/osgeo4mac/qt-ifw   pyqt5 ✔
> >   qtplay
> > homebrew/science/uniqtag  m-kuhn/osgeo4mac/qt-ifw-qt5   qt ✔
> >  sqtop
> > homebrew/versions/qt52m-kuhn/osgeo4mac/qt-mysql qt5 ✔
> > homebrew/versions/qt55pyqt ✔qtfaststart
> > homebrew/games/qtadsCaskroom/cask/qtox
> >Caskroom/versions/qt-creator-dev
> > Caskroom/cask/mqttfxCaskroom/cask/qtpass
> > Caskroom/cask/qt-creatorCaskroom/cask/qtspim
> >
> >
> > On Tue, Aug 16, 2016 at 12:12 PM, Carlos Grohmann
> > <carlos.grohm...@gmail.com <mailto:carlos.grohm...@gmail.com>> wrote:
> >
> > Hello Mathias
> >
> > Thanks for putting this together. However, I fell I need to tell you
> > about these warnings:
> >
> > Warning: Calling Formula.sha1 is deprecated!
> > Use Formula.sha256 instead.
> >
> >
> > This goes for every formula in your tap. I believe that the general
> > recommendation is to change all to sha256.
> >
> > best
> >
> > Carlos
> >
> >
> >
> > On Tue, Aug 16, 2016 at 2:17 AM, Matthias Kuhn <matth...@opengis.ch
> > <mailto:matth...@opengis.ch>> wrote:
> >
> > Hi Didier,
> >
> > I did update the formula and proposed this as a pull request but
> > it is
> > still pending (see link in my last email) in the osgeo tap.
> >
> > I now pushed it to my own taps master branch. I hope this works
> > until
> > there's a proper solution in the osgeo tap:
> >
> > brew untap osgeo/osgeo4mac
> >
> > brew tap m-kuhn/osgeo4mac
> >
> > brew install qgis-216
> >
> > Regards
> >
> > Matthias
> >
> > On 14/08/16 20:57, didier peeters wrote:
> > > Hi Matthias,
> > >
> > > I tried « brew install qgis-216 » but got the error « No
> > available formula with the name "qgis-216" »
> > > I’m using the tap osgeo/osgeo4mac.
> > >
> > > What am I doing wrong ?
> > >
> > > Thanks for your help.
> > > Didier
> > >
> > >
> > >> Le 9 août 2016 à 19:36, Matthias Kuhn <matth...@opengis.ch
> > <mailto:matth...@opengis.ch>> a écrit :
> > >>
> > >> Or use homebrew to install it as long as there's no ready to
> > use bundle
> > >> around. There is an updated formula for QGIS 2.16 waiting to
> be
> > >> installed on OSX :)
> > >>
> > >> https://github.com/OSGeo/homebrew-osgeo4mac/pull/146
> > <https://github.com/OSGeo/homebrew-osgeo4mac/pull/146>
> > >>
> > >> Matthias
> > >>
> > >> _

Re: [Qgis-user] QGIS Viewer

2016-07-01 Thread Larry Shaffer
Hi Tyler,

Would the QGIS Browser application fit your needs? It is usually included
as part of a QGIS build/package and is part of the QGIS source code tree.

https://www.qgis.org/en/site/about/features.html#qgis-browser

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Fri, Jul 1, 2016 at 1:11 AM, Blumentrath, Stefan <
stefan.blumentr...@nina.no> wrote:

> Hi,
>
>
>
> If you start QGIS with the --configpath option, you avoid hacking the
> registry, as all such settings are written into the folder the
> “--configpath” option points to (more precisely, into the QGIS.ini file)
>
> That folder can be in the users Home directory and e.g. copied from a
> network drive...
>
>
>
> See:
>
>
> http://gis.stackexchange.com/questions/96094/how-to-start-qgis-with-configpath-option-on-windows
>
>
>
> Cheers
>
> Stefan
>
>
>
> *From:* Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] *On Behalf
> Of *Tyler Veinot
> *Sent:* 1. juli 2016 06:00
> *To:* Heikki Vesanto <heikki.vesa...@gmail.com>; Eric Goddard <
> egoddard1...@gmail.com>
> *Cc:* qgis-user@lists.osgeo.org; t...@wildintellect.com
>
> *Subject:* Re: [Qgis-user] QGIS Viewer
>
>
>
> Well there seems to be plenty of options; I like the idea of disabling
> some of the interface options. I highly doubt too many of my coworkers know
> how to access the registry and those that do I am not worried about making
> edits.
> Thanks all.
> Cheers
>
> Sent from my Bell Sony device over Canada’s largest network.
>
>  Eric Goddard wrote 
>
> If you're using the OSGeo4W installer, you could uninstall the filegdb
> api so that QGIS has to use the OpenFileGDB driver (which is read
> only) to view file geodatabases. The QGIS stand-alone installer just
> has the OpenFileGDB driver, so nothing extra is required there.
>
> Eric
>
> On Thu, Jun 30, 2016 at 1:56 PM, Heikki Vesanto
> <heikki.vesa...@gmail.com> wrote:
> > If you remove customise from the menu they will have to edit their
> registry
> > to get it back. So will stop all but the most determined user.
> >
> > On 30 Jun 2016 19:27, "Brent Wood" <pcr...@yahoo.com> wrote:
> >>
> >> And how do you stop a user from turning them on again?
> >>
> >> Brent Wood
> >>
> >>
> >> 
> >> From: Heikki Vesanto <heikki.vesa...@gmail.com>
> >> To: t...@wildintellect.com
> >> Cc: qgis-user <qgis-user@lists.osgeo.org>
> >> Sent: Friday, July 1, 2016 6:18 AM
> >> Subject: Re: [Qgis-user] QGIS Viewer
> >>
> >> You can hide most of the interface using the settings>customise menu, no
> >> plugin required.
> >> On 30 Jun 2016 18:30, "Alex M" <tech_...@wildintellect.com> wrote:
> >>
> >> On 06/30/2016 09:40 AM, James Keener wrote:
> >> > How are users accessing the data?  If they're connecting to a
> >> > database, can you simply not give them update permission?  If it's
> >> > files, can you can keep read-only master copies on a public
> >> > store/shared drive?
> >> >
> >> > Jim
> >> >
> >> > On Thu, Jun 30, 2016 at 12:20 PM, Tyler Veinot <
> tylerkvei...@gmail.com>
> >> > wrote:
> >> >> Hi again;
> >> >> Just wondering if there is a QGIS Viewer available, or any
> suggestions
> >> >> as to
> >> >> what I can use that is open source with some basic spatial search
> >> >> capabilities and can view filegeodatabases?
> >> >>
> >> >> I have been deploying QGIS to our staff to view our GIS Data and I am
> >> >> starting to get a little nervous where someone could easily do some
> >> >> awesome
> >> >> geoprocessing damage to our data if they got to messing about. So
> does
> >> >> QGIS
> >> >> have something like Esri's Arc Explorer?
> >> >>
> >> >> Thanks
> >> >> Tyler
> >> >>
> >>
> >> The other approach I've seen is to use a plugin to disable and hide most
> >> of the interface.
> >>
> >> Thanks,
> >> Alex
> >>
> >> ___
> >> Qgis-user mailing list
> >> Qgis-user@lists.osgeo.org
> >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
> >>
> >>
> >> ___

Re: [Qgis-user] OS X nightly utils.py error

2016-04-04 Thread Larry Shaffer
Hi Thomas,

I will look into it tonight. I thought I fixed that, but apparently not.
Thanks for reporting the issue.

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Mon, Apr 4, 2016 at 8:41 AM, Thomas Endres <endres.tho...@gmail.com>
wrote:

> Hi Everybody,
> Running OS X 10.11.4 and using the nightly builds from dakotacarto.com.
> About 2 weeks ago the builds stopped working for me with a python error
> upon launch:
> Traceback (most recent call last):
>   File "", line 1, in
>   File
> "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/qgis/utils.py",
> line 20, in
> from future import standard_library
> ImportError: No module named future
>
> My last working version was built March 21st.
>
> Can anybody confirm? Thanks!
> -tom
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problems with Qgis Server 2.12

2015-10-28 Thread Larry Shaffer
Hi Henrik,

On Wed, Oct 28, 2015 at 7:37 AM, Henrik Uggla <henrik.ug...@kristianstad.se>
wrote:

> I tried to set QGIS_AUTH_DB_DIR_PATH and the error message in the Apache
> log disappeared. I still got the "WMS configuration error" message though.
> It turned out to be the map parameter. In 2.8 you did not have to give
> the map parameter when there were only one .qgs-file was present.
> In 2.12 it is obviously mandatory. Thanks for your input!
>
Hmm. I thought I fixed that issue:
http://hub.qgis.org/issues/13291

The MAP param should not be mandatory if there is a .qgs project file in
the same directory as the qgis_mapserv.fcgi. Can you verify this? Also,
make sure the project is saved from 2.12 Desktop first, or possibly make a
new project just for testing.

If loading a project file from the same directory as the qgis_mapserv.fcgi
without using the MAP param does not work, please add a post to the above
noted ticket. Thanks.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

QGIS Support/Development | Boundless <http://boundlessgeo.com/>

> /Henrik
>
>
> --
> *Från:* la...@shafferinteractive.com <la...@shafferinteractive.com> för
> Larry Shaffer <lar...@dakotacarto.com>
> *Skickat:* den 27 oktober 2015 19:22
> *Till:* Henrik Uggla
> *Kopia:* Andreas Neumann; qgis-user
>
> *Ämne:* Re: [Qgis-user] Problems with Qgis Server 2.12
>
> Hi Henrik,
>
> This is due to the new authentication system in 2.12 [0], and the support
> I added to Server. When running Server, projects loaded that contain an
> authentication configuration (instead of clear text username/password) for
> accessing a secured resource, e.g. WMS using Basic Auth and HTTPS, need to
> be able to access the new 'qgis-auth.db'.
>
> The auth configurations are encrypted using a master password and stored
> in the qgis-auth.db, which by default is located at ~/.qgis2/qgis-auth.db
> for a desktop QGIS user. To enable Server support, I added two environment
> variables to overcome the problems associated with automatically loading
> projects [1], which are not yet fully documented:
>
> * QGIS_AUTH_DB_DIR_PATH - Directory where an existing qgis-auth.db is
> located or created if not present. This directory needs to be *writeable*
> by Server's FCGI process user (which may differ from Apache's).
>
> * QGIS_AUTH_PASSWORD_FILE - File path to file with master password as
> first line. This is similar to password files used by database servers. The
> env variable is read during QGIS startup, then removed from the env
> variables space, so it is not available later on to the FCGI process or any
> Server plugins. Since all auth configurations are encrypted, a master
> password is required to access the qgis-auth.db, if a loaded project uses
> auth configs stored in the qgis-auth.db.
>
> What you have found is possibly a bug: the QGIS_AUTH_DB_DIR_PATH is now
> required to start Server, even if no loaded project make use of the new
> auth system. This is not really a bug if one considers the auth system
> setup mandatory from 2.12+, like it is on Desktop. At the minimum, a
> missing/non-writeable qgis-auth.db directory should throw a warning and not
> an error, allowing Server to launch.
>
> Please try setting QGIS_AUTH_DB_DIR_PATH to a directory writeable by the
> Server's FCGI process user and see if Server starts normally. Then check
> that qgis-auth.db is created in the directory.
>
> Here is how to set the env variables for the FCGI process in Apache [2,3].
> Note, setting them at the Apache process level will not work.
>
>
> [0]
> https://github.com/dakcarto/QGIS-Enhancement-Proposals/blob/auth-system/qep-14-authentication-system.rst
> [1]
> https://github.com/qgis/QGIS/blob/master/src/server/qgsserver.cpp#L359-L362
> [2] https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidinitialenv
> [3] http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html
>  (-initial-env options)
>
> Regards,
>
> Larry Shaffer
> Dakota Cartography
> Black Hills, South Dakota
>
> QGIS Support/Development | Boundless <http://boundlessgeo.com/>
>
> On Tue, Oct 27, 2015 at 4:43 AM, Henrik Uggla <
> henrik.ug...@kristianstad.se> wrote:
>
>> It seems to be caused by some file somewhere having wrong permissions.
>> This error is from my Apache log:
>> ERROR: Auth db directory path could not be created
>>
>> Googling the phrase I found this:
>> http://qgis.org/api/qgsauthmanager_8cpp_source.html
>>
>> Where is this db directory path supposed to be created?
>>
>> Henrik
>>
>> 
>> Från: Qgis-user <qgis-user-boun...@lists.osgeo.org> fö

Re: [Qgis-user] Problems with Qgis Server 2.12

2015-10-28 Thread Larry Shaffer
Hi Alessandro,

On Wed, Oct 28, 2015 at 3:37 AM, Alessandro Pasotti <apaso...@gmail.com>
wrote:
>
> Hi Larry,
>
> thank you for the amazing new auth system, IMHO it really adds a lot of
> value expecially for corporate users.
>
> Recently we've spent quite some time trying to keep the server
> documentation up-to-date:
>
>
> http://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/ogc_server_support.html
> (source:
> https://github.com/qgis/QGIS-Documentation/blob/master/source/docs/user_manual/working_with_ogc/ogc_server_support.rst
> )
>
> It would be awesome if you could keep the manual in sync by adding the
> information about the new auth system (new ENV vars etc.).
>
> Also, please make sure that the apache.conf examples are still basically
> working.
>

Sure! I have a lot of docs to finish writing up on the new auth system, and
this is definitely on the list.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

QGIS Support/Development | Boundless <http://boundlessgeo.com/>


> Thanks!
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Mac nightly updated

2015-10-03 Thread Larry Shaffer
Hi,

The Mac nightly of master branch for 10.7 - 10.10 (maybe 10.11, too) has
been updated and is ready for beta testing the upcoming 2.12 release.

http://qgis.dakotacarto.com/

Note: the Mac OS X 10.6 nightly is still out of commission.

See changelog for what is not yet supported. Requires latest GDAL Complete
framework, as per current stable releases from
http://www.kyngchaos.com/software/qgis

I will be looking into adding an LTR (2.8 branch) nightly as well.

Sorry for the cross-post to both lists.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS on rollApp

2015-04-21 Thread Larry Shaffer
Hi,

I don't normally cross-post to dev/user lists (sorry for the extra noise),
but I found this to be quite an interesting advancement for QGIS.

https://www.rollapp.com/app/qgis

QGIS in the cloud, and almost fully functional, e.g. Python, etc. Seems
browser's filesystem integration is broken (maybe it needs a cloud drive
attached).

Who did this awesome port? Was it rollApp folks themselves?

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS with Homebrew under OSX

2015-02-24 Thread Larry Shaffer
Hi Philipp,

Try:

brew install osgeo/osgeo4mac/qgis-28

This will install the latest QGIS, from the following tap:

https://github.com/OSGeo/homebrew-osgeo4mac

If you want to ensure it is isolated from any Kyngchaos.com install,
install Homebrew's 'python' first.

Regards,

Larry

On Tuesday, February 24, 2015, Philipp Kraus philipp.kr...@tu-clausthal.de
wrote:

 Hello,

 I’m using OSX 10.9 with Homebrew (http://brew.sh/) and I have installed
 GDAL with Homebrew. If I’m running the PKG QGIS package, it shows the error
 „GDAL framework is not installed“. I don’t want to install two types of
 GDAL, so my question is, how can I use my Homebrew installed GDAL version
 with QGIS

 Philipp



-- 

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS crashes when recording a layer to save as

2014-12-16 Thread Larry Shaffer
Hi,

It may be the incompatibility between gdal 1.11.1 and SQLite 3.8.7.

See: http://trac.osgeo.org/gdal/ticket/5725
and: http://hub.qgis.org/issues/11526


Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Tue, Dec 16, 2014 at 2:39 PM, Milo van der Linden m...@dogodigi.net
wrote:

 Archlinux community is facing this issue too. The solution for us was to
 patch/upgrade or downgrade gdal as the issue seems related to gdal 1.11.0.
 I decided to upgrade to 1.11.1
 http://trac.osgeo.org/gdal/wiki/Release/1.11.1-News and this solved the
 issue.

 2014-12-16 22:30 GMT+01:00 José Antonio Barreña Cayuela 
 jabar...@gmail.com:

  - O.S.: Manjaro Linux (the latest version).
 - QGIS 2.6 Brighton
 - Installed by aur (yayourt).
 - System update.

 Error:

 QGIS crashes when recording a layer to save as

 The terminal message is:

 [barri@manjaro ~]$ qgis
 Warning: QGraphicsScene::addItem: item has already been added to this
 scene

 And, when I try to save the layer:

 [barri@manjaro ~]$ qgis
 Warning: QGraphicsScene::addItem: item has already been added to this
 scene
 QGIS died on signal 11Abortado (`core' generado)

 Any solution?

 Thanks!




 --

   José Antonio Barreña Cayuela
 *Biólogo (botánico). Servicios Ambientales*
 *+34 677 811 883* · jabar...@gmail.com

   [image: linkedIn]
 http://es.linkedin.com/pub/jos%C3%A9-antonio-barre%C3%B1a-cayuela/26/936/15a/


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How load Postgis layer from command line?

2014-12-09 Thread Larry Shaffer
HI,

Another thing you might try is this command line option:

[--code path] run the given python file on load

Then, you could possibly load the PostGIS layer just as you would from the
PyQGIS console, only it would be commands inside of a Python file.

You could do other things as well, like verify the PostgreSQL server is up,
etc.

Please note: just guessing here, as I have not fully tested this yet.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Tue, Dec 9, 2014 at 1:39 PM, Richard Duivenvoorde rdmaili...@duif.net
wrote:

 On 09-12-14 16:41, Germán Carrillo wrote:
  Hi Richard,
 
  thanks a lot for your response. However, I think we aren't talking about
  the same :)
  I understand this thread was opened to ask about how to open a PostGIS
  Layer from the OS (say GNU/Linux) command line at QGIS startup.

 ah, sorry sorry :-(

 well, I take this as a challenge...
 (short version: go to the end, either use a vrt file or a qgs file)

 looking into the code:

 https://github.com/qgis/QGIS/blob/master/src/app/qgisapp.cpp#L4206

 it looks like you can only use ogr provider for this...

 here:


 http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/loadlayer.html


 there is an example to use a MySQL uri... so I tried that one first.
 All is based on ogr, so we need the ogr driver:

 http://www.gdal.org/drv_pg.html

 tried stuff like:

 PG:'dbname=bag host=localhost port=5432 user=geo
 password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992
 type=MULTIPOLYGON table=bag8mrt2014.provincie (geovlak) sql='

 but all that I got working was a simple:

 ogrinfo -ro PG:'host=localhost user=geo password=gwwvgeo dbname=bag
 sslmode=disable'

 but using that kind of uri's did not make QGIS load, it kept showing:

 Unable to load /tmp/PG:host=localhost user=geo password=xxx dbname=bag
 sslmode=disable

 apparently QGIS ALWAYS prepends the basepath (/tmp for me) in front of
 the 'filename'. It has to be a real file ??

 THEN: ok, so it has to be ogr AND a file...
 There is gdal's Virtual Format:

 http://www.gdal.org/drv_vrt.html

 so with some trial and error I prepared the following vrt file, for
 exact the same data as the earlier email:

 OGRVRTDataSource

 OGRVRTLayer name=test
 SrcDataSourcePG:host=localhost user=geo password=*** dbname=bag
 sslmode=disable/SrcDataSource
 SrcSQLselect * from bag8mrt2014.provincie/SrcSQL
 LayerSRSepsg:28992/LayerSRS
 /OGRVRTLayer

 /OGRVRTDataSource

 saved it as mypgconnection.vrt, and NOW I can load it with:

 qgis mypgconnection.vrt  \o/

 another option, is to create a qgs project file with that postgresql
 connection and fire up qgis with that one

 qgis mypgproject.qgs

 you could maybe create the qgs file dynamically to have your
 schema/table names in place

 ok, it's all a little hacking, but hopefully of use :-)

 Regards,

 Richard Duivenvoorde
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] hub.qgis.org avatar

2014-12-08 Thread Larry Shaffer
Hi Ramon,

You can adjust that directly on the OSGeo account page (after login):
https://www.osgeo.org/user

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Mon, Dec 8, 2014 at 3:42 PM, Ramon Andiñach cust...@westnet.com.au
wrote:

 Hi,

 I'm sure there's some blindingly obvious way of doing this, but is there a
 way to change your avatar (silly face icon) on hub.qgis.org?

 -ramon.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] hub.qgis.org avatar

2014-12-08 Thread Larry Shaffer
However, it looks like Gravatar support is turned on as well. If you define
one at gravatar.com for your account's associated email address, I believe
it will override (?) your OSGeo's account avatar.

http://gravatar.com/


Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Mon, Dec 8, 2014 at 3:53 PM, Larry Shaffer lar...@dakotacarto.com
wrote:

 Hi Ramon,

 You can adjust that directly on the OSGeo account page (after login):
 https://www.osgeo.org/user

 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota

 On Mon, Dec 8, 2014 at 3:42 PM, Ramon Andiñach cust...@westnet.com.au
 wrote:

 Hi,

 I'm sure there's some blindingly obvious way of doing this, but is there
 a way to change your avatar (silly face icon) on hub.qgis.org?

 -ramon.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS Policies and Roll Out Procedures Manual

2014-11-18 Thread Larry Shaffer
Hi Joseph,

With regards to the scheduling of releases, you might want to review:

* QGIS Road Map -
http://qgis.org/en/site/getinvolved/development/index.html#release-schedule

* QEP #4: Long Term Releases-
https://github.com/qgis/QGIS-Enhancement-Proposals/pull/6

For government agency roll-outs, you might consider using the proposed
(though not yet adopted) upcoming LTR version approach, which will be
supported with bug fixes for a period of one year from release.

Doing large roll-outs to many computers will be contingent upon many
variables, e.g. network setup, whether internet access is available,
whether mixed platforms are to be supported, etc.

If you are working solely with Windows, you might want to consider using
the OSGeo4W installer [0] and use a pre-downloaded cache local to your
network (so every computer does not need to download components via the
internet). Also check out its command line interface [1].

If administering a Mac environment, you can use Apple Remote Desktop admin
tool [2], and the Mac installers from Kyngchaos.com [3].

On Linux there are many tools for doing remote package installation, but an
interesting alternative is now available with docker (which, when coupled
with VirtualBox, works on other platforms, too) [4]. See Running QGIS
desktop in a docker container post by Tim Sutton [5] for more information.

I'm sure there are more scenarios not covered here, and other IT and sys
admins may jump in with interesting solutions.

Indeed there needs to be an official guide for common scenarios (unless I
am just missing an existing one).

[0] https://trac.osgeo.org/osgeo4w/wiki
[1] https://trac.osgeo.org/osgeo4w/wiki/CommandLine
[2] https://www.apple.com/remotedesktop/
[3] http://www.kyngchaos.com/software/qgis
[4] https://www.docker.com/
[5] http://kartoza.com/qgis-desktop-in-docker/

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Tue, Nov 18, 2014 at 6:58 AM, Joseph Sloop jbsl...@uncg.edu wrote:

 Hello All!
 Outside of school I work in local government and I am pushing our local
 government to start using more QGIS. They are very open to the idea,
 therefore, I was tasked with creating a '​QGIS Policies and Roll Out
 Procedures' manual for our local government. This document would include
 items such as: When to update to next version, how to roll out QGIS to
 multiple users and departments, etc.  I was wondering if anyone else has
 had to write a similar manual and would be willing to share? Thank you all
 in advance!

 Cheers,

 Joseph  ​

 _

 Joseph Sloop

 PhD Candidate

 University of North Carolina at Greensboro

 Department of Geography

 jbsl...@uncg.edu






 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] non antialiased labels

2014-10-14 Thread Larry Shaffer
Hi Stefan,

No support for non-anti-aliased fonts at this time. It could be added here,
with settings pulled from a layer's label settings:

https://github.com/qgis/QGIS/blob/master/src/core/qgspallabeling.cpp#L4296-L4343

It would need to set the painter's render hint to no anti-aliasing when the
setting calls for it, e.g. as is done for the opposite here:

https://github.com/qgis/QGIS/blob/master/src/core/qgspallabeling.cpp#L4342

Seems pretty simple to implement.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Tue, Oct 14, 2014 at 3:13 AM, Ziegler Stefan stefan.zieg...@bd.so.ch
wrote:

 Hi

 I'm using QGIS for generating topographic raster maps. Is there a way to
 have non-antialiased rendered labels? There is an option (rendering
 quality) for lines but not for labels?

 Freundliche Grüsse
 Stefan Ziegler
 Kantonsgeometer

 Amt für Geoinformation
 Amtliche Vermessung
 Rötistrasse 4
 4500 Solothurn

 Telefon +41 32 627 75 96
 Telefax +41 32 627 75 98
 stefan.zieg...@bd.so.ch
 http://www.so.ch


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS_EPANET - command line tool

2014-08-29 Thread Larry Shaffer
Hi Francesco,

I have looked into this and wine is not needed. However, there are still
some hurdles. I will list the steps so that it is as straightforward as can
be (or as much as it can be from me  :-) :

1. Install the GHydraulics plugin. This plugin actually contains command
line binaries of epanet for Linux, Win, and Mac; though, it is actually
against plugin policy to distribute pre-compiled binaries with plugins
through the official QGIS repository. Nonetheless, it is a good thing for
you and other Mac users.  :-)

This means GHydraulics actually works right out-of-the-box. There is a bug
in one of the sources, though.

In ~/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py:

Change ALL instances of
  QgsMapLayerRegistry().instance().mapLayers()
to
  QgsMapLayerRegistry.instance().mapLayers()

I'll be reporting this upstream to http://epanet.de/

NOTE: some of the reporting from the plugin is actually sent to the Log
Messages Panel. Choose 'View - Panels - Log Messages' to ensure it is
visible.

See also:
http://epanet.de/ghydraulics/index.html
http://sdteffen.blogspot.com/search/label/GHydraulics

2. Since you already have an epanet2d command line binary for Mac, you can
just use its path for the configuration of the 'qgis_epanet' plugin:

/Users/user/.qgis2/python/plugins/ghydraulic/bin/osx/epanet2d

NOTE: replace user with your short user name.

There is some sample data to play with available in the github.com
repository:
https://github.com/Oslandia/qgis-epanet#testing

I did have an issue when running a simulation, due to a missing Hydraulics
file (could not resolve).

3. I think I will add epanet command line utilities to OSGeo4Mac, so this
is simpler to set up.


Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Wed, Aug 27, 2014 at 10:28 AM, Francesco Liva fr.l...@gmail.com wrote:

 Hi Larry
 Yes thankyou

 I have found something else which may be helpful.

 on:  http://www.oslandia.com/qgis-plugin-for-water-management-en.html


 Once the hydraulic model and simulation parameters are loaded in QGIS, the
 simulation can be launched through the*Processing* toolbox. The plugin
 uses the standalone command line interface of EPANET (CLI) which path needs
 to be specified in processing Options and configuration.
 The plugin assembles an EPANET input file, runs EPANET and parses its
 output to generate result layers.
 One interesting aspect with processing modules is that they can be used
 for chained processing: the user can use other modules to do additional
 transformations of simulation results, as feeding them into another
 simulation model.

 Best Regards
 Francesco Liva

 __
 27, Triq Ix-Xatt, Kalkara, Malta
 ☎ +356 99 38 01 68 mobile
 ☎ +356 27 32 76 78 home




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS_EPANET - command line tool

2014-08-29 Thread Larry Shaffer
Hi,

On Fri, Aug 29, 2014 at 11:25 AM, Francesco Liva fr.l...@gmail.com wrote:

 Hi Larry
 I am sorry to bother you, but I am having a problem.

 The file ~/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py

 I can find it under the WINE File Manager, but I do not know how to open
 under wine.
 In MAC I am not able to find the file. It is not under the WINE FILES.


That is the path to the plugin (and sub-file) when installed in QGIS on the
Mac. The ~ is shorthand for your user folder, e.g. /Users/user = ~, where
user is the short name for your user.

Because the .qgis2 directory starts with a '.' it is hidden in the Mac's
Finder. Use the Go To Folder... command in Finder's Go menu, then type in
~/.qgis2/python/plugins/ghydraulic. Also, with programs like TextWrangler,
you can check the option in the Open/Save dialog to show hidden files.

If QGIS is running while you make the edit to a plugin's file, you will
need to re-launch it.

Regards.

Larry




 Best Regards
 Francesco Liva

 __
 27, Triq Ix-Xatt, Kalkara, Malta
 ☎ +356 99 38 01 68 mobile
 ☎ +356 27 32 76 78 home

 Via Tevere 13-A, 00198 Rome
 ☎ +39 06 841 32 64 home
 ☎ +39 333 750 99 83 mobile

 30, Rue V. Contesso, Villefranche/S/M
 ☎ +33 (0) 4 93 80 67 21

 Tsintsadze Str.
 Tbilisi  Georgia
 +995 577 17 70 81

 fr.l...@gmail.com
 ☏ Francesco.Liva





 On 29 Aug 2014, at 18:15, Larry Shaffer lar...@dakotacarto.com wrote:

 Hi,

 On Fri, Aug 29, 2014 at 7:45 AM, Francesco Liva fr.l...@gmail.com wrote:

 Hi Larry
 Thank you for your e-mail. I am trying to change the instances as you
 mentioned, writing in TERMINAL the:
 ~/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py

 But the answer is:

 -bash:
 /Users/francescoliva/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py:
 Permission denied
 F-Liva-Apple:~ francescoliva$

 May be I did something wrong, How shall I change all the INSTANCES ?


 I meant open the .py file in a text editor and do a find/replace of all
 instance of the text string.

 A good, free (though not open source) code editor is TextWrangler from
 BareBones:
 http://www.barebones.com/products/textwrangler/

 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota



 Best Regards
 Francesco Liva

 __
 27, Triq Ix-Xatt, Kalkara, Malta
 ☎ +356 99 38 01 68 mobile
 ☎ +356 27 32 76 78 home

 Via Tevere 13-A, 00198 Rome
 ☎ +39 06 841 32 64 home
 ☎ +39 333 750 99 83 mobile

  30, Rue V. Contesso, Villefranche/S/M
 ☎ +33 (0) 4 93 80 67 21

 Tsintsadze Str.
 Tbilisi  Georgia
 +995 577 17 70 81

 fr.l...@gmail.com
 ☏ Francesco.Liva





 On 29 Aug 2014, at 15:16, Larry Shaffer lar...@dakotacarto.com wrote:

 Hi Francesco,

 I have looked into this and wine is not needed. However, there are still
 some hurdles. I will list the steps so that it is as straightforward as can
 be (or as much as it can be from me  :-) :

 1. Install the GHydraulics plugin. This plugin actually contains command
 line binaries of epanet for Linux, Win, and Mac; though, it is actually
 against plugin policy to distribute pre-compiled binaries with plugins
 through the official QGIS repository. Nonetheless, it is a good thing for
 you and other Mac users.  :-)

 This means GHydraulics actually works right out-of-the-box. There is a
 bug in one of the sources, though.

 In ~/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py:

 Change ALL instances of
   QgsMapLayerRegistry().instance().mapLayers()
 to
   QgsMapLayerRegistry.instance().mapLayers()

 I'll be reporting this upstream to http://epanet.de/

 NOTE: some of the reporting from the plugin is actually sent to the Log
 Messages Panel. Choose 'View - Panels - Log Messages' to ensure it is
 visible.

 See also:
 http://epanet.de/ghydraulics/index.html
 http://sdteffen.blogspot.com/search/label/GHydraulics

 2. Since you already have an epanet2d command line binary for Mac, you
 can just use its path for the configuration of the 'qgis_epanet' plugin:

 /Users/user/.qgis2/python/plugins/ghydraulic/bin/osx/epanet2d

 NOTE: replace user with your short user name.

 There is some sample data to play with available in the github.com
 repository:
 https://github.com/Oslandia/qgis-epanet#testing

 I did have an issue when running a simulation, due to a missing
 Hydraulics file (could not resolve).

 3. I think I will add epanet command line utilities to OSGeo4Mac, so this
 is simpler to set up.


 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota


 On Wed, Aug 27, 2014 at 10:28 AM, Francesco Liva fr.l...@gmail.com
 wrote:

 Hi Larry
 Yes thankyou

 I have found something else which may be helpful.

 on:  http://www.oslandia.com/qgis-plugin-for-water-management-en.html


 Once the hydraulic model and simulation parameters are loaded in QGIS,
 the simulation can be launched through the*Processing* toolbox. The
 plugin uses the standalone command line interface of EPANET (CLI) which

Re: [Qgis-user] QGIS_EPANET - command line tool

2014-08-29 Thread Larry Shaffer
Hi,

On Fri, Aug 29, 2014 at 12:09 PM, Francesco Liva fr.l...@gmail.com wrote:

 Hi

 I have done the correction with TEXT WRANGLER. THankyou I could open the
 file and correct it. GOOD.

 Than running QGIS with the new command Path, I get the following error:

 Algorithm Simulate flow in drinking water network starting...
 running simulation
 There are errors, please check processing logs or open file
 /var/folders/46/cgd0h9jj7f96wkbrf0v_y4h0gn/T/processing/epanet.out for
 details


Yes, that is the error I mentioned above. If you open up the
/var/folders/46/cgd0h9jj7f96wkbrf0v_y4h0gn/T/processing/epanet.out file
you should see something like: Error 305: can not open Hydraulics file.

Don't know how to fix that yet. I assume it will be resolved with a
standard installation of the epanet2d binary, e.g. once completed as a
Homebrew formula.

In the meantime, the GHydraulics plugin should be functional for you.

Beyond those items, I do not know enough about water supply software to
help further with either plugin's usage. Any errors or issues should be
reported to those projects respectively.

Regards,

Larry


 Best Regards
 Francesco Liva

 __
 27, Triq Ix-Xatt, Kalkara, Malta
 ☎ +356 99 38 01 68 mobile
 ☎ +356 27 32 76 78 home

 Via Tevere 13-A, 00198 Rome
 ☎ +39 06 841 32 64 home
 ☎ +39 333 750 99 83 mobile

 30, Rue V. Contesso, Villefranche/S/M
 ☎ +33 (0) 4 93 80 67 21

 Tsintsadze Str.
 Tbilisi  Georgia
 +995 577 17 70 81

 fr.l...@gmail.com
 ☏ Francesco.Liva





 On 29 Aug 2014, at 18:15, Larry Shaffer lar...@dakotacarto.com wrote:

 Hi,

 On Fri, Aug 29, 2014 at 7:45 AM, Francesco Liva fr.l...@gmail.com wrote:

 Hi Larry
 Thank you for your e-mail. I am trying to change the instances as you
 mentioned, writing in TERMINAL the:
 ~/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py

 But the answer is:

 -bash:
 /Users/francescoliva/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py:
 Permission denied
 F-Liva-Apple:~ francescoliva$

 May be I did something wrong, How shall I change all the INSTANCES ?


 I meant open the .py file in a text editor and do a find/replace of all
 instance of the text string.

 A good, free (though not open source) code editor is TextWrangler from
 BareBones:
 http://www.barebones.com/products/textwrangler/

 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota



 Best Regards
 Francesco Liva

 __
 27, Triq Ix-Xatt, Kalkara, Malta
 ☎ +356 99 38 01 68 mobile
 ☎ +356 27 32 76 78 home

 Via Tevere 13-A, 00198 Rome
 ☎ +39 06 841 32 64 home
 ☎ +39 333 750 99 83 mobile

  30, Rue V. Contesso, Villefranche/S/M
 ☎ +33 (0) 4 93 80 67 21

 Tsintsadze Str.
 Tbilisi  Georgia
 +995 577 17 70 81

 fr.l...@gmail.com
 ☏ Francesco.Liva





 On 29 Aug 2014, at 15:16, Larry Shaffer lar...@dakotacarto.com wrote:

 Hi Francesco,

 I have looked into this and wine is not needed. However, there are still
 some hurdles. I will list the steps so that it is as straightforward as can
 be (or as much as it can be from me  :-) :

 1. Install the GHydraulics plugin. This plugin actually contains command
 line binaries of epanet for Linux, Win, and Mac; though, it is actually
 against plugin policy to distribute pre-compiled binaries with plugins
 through the official QGIS repository. Nonetheless, it is a good thing for
 you and other Mac users.  :-)

 This means GHydraulics actually works right out-of-the-box. There is a
 bug in one of the sources, though.

 In ~/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py:

 Change ALL instances of
   QgsMapLayerRegistry().instance().mapLayers()
 to
   QgsMapLayerRegistry.instance().mapLayers()

 I'll be reporting this upstream to http://epanet.de/

 NOTE: some of the reporting from the plugin is actually sent to the Log
 Messages Panel. Choose 'View - Panels - Log Messages' to ensure it is
 visible.

 See also:
 http://epanet.de/ghydraulics/index.html
 http://sdteffen.blogspot.com/search/label/GHydraulics

 2. Since you already have an epanet2d command line binary for Mac, you
 can just use its path for the configuration of the 'qgis_epanet' plugin:

 /Users/user/.qgis2/python/plugins/ghydraulic/bin/osx/epanet2d

 NOTE: replace user with your short user name.

 There is some sample data to play with available in the github.com
 repository:
 https://github.com/Oslandia/qgis-epanet#testing

 I did have an issue when running a simulation, due to a missing
 Hydraulics file (could not resolve).

 3. I think I will add epanet command line utilities to OSGeo4Mac, so this
 is simpler to set up.


 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota


 On Wed, Aug 27, 2014 at 10:28 AM, Francesco Liva fr.l...@gmail.com
 wrote:

 Hi Larry
 Yes thankyou

 I have found something else which may be helpful.

 on:  http://www.oslandia.com/qgis-plugin-for-water-management-en.html


 Once the hydraulic model and simulation parameters

Re: [Qgis-user] QGIS_EPANET - command line tool

2014-08-26 Thread Larry Shaffer
Hi Francesco,

On Tue, Aug 26, 2014 at 4:39 AM, Francesco Liva fr.l...@gmail.com wrote:

 Hi

 Sorry to bother you again, but I really need to solve my problem

 When I run the AppleScript:

 *tell* *application* Terminal
 *do script* open /Applications/EPANET2.00.12.app
 *end* *tell*

 It open the EPANET programme. But when I run the AppleScript from QGIS he
 gives me the error:

 Algorithm Simulate flow in drinking water network starting...
 running simulation
 [Errno 13] Permission denied See log for more details


The AppleScript you are running merely opens
/Applications/EPANET2.00.12.app. In other words, the script accepts no
stdin or provides no stdout for Processing to work with.

Generally, for a wrapper script, you will want to do this with bash, and
the executable you want to call will be inside the .app bundle, e.g.
/Applications/EPANET2.00.12.app/Contents/MacOS/EPANET (-- just guessing on
the binary's name).

For example, the contents of such an 'epanet_wrapper.sh' might be:

#!/binbash

wine /Applications/EPANET2.00.12.app/Contents/MacOS/EPANET $1


This would presumably call wine and pass the wine-installed program EPANET
any arguments passed to the script (assuming EPANET was installed by wine
in /Applications... was it?). Then the results would be output to stdout
for Processing or the plugin to catch. There might be some consideration
for ensure proper escaping of arguments needed as well.

NOTE: I have not tested any of this. However, I can tonight. *Do you have
to sample data I can play with?* I don't do water work.

I need to figure this out for Mac, since there are other Processing tools,
like LASTools and Fusion for LiDAR that really only work under Windows, too.

Regards,

Larry



 Thank you

 Best Regards
 Francesco Liva

 __
 27, Triq Ix-Xatt, Kalkara, Malta
 ☎ +356 99 38 01 68 mobile
 ☎ +356 27 32 76 78 home

 Via Tevere 13-A, 00198 Rome
 ☎ +39 06 841 32 64 home
 ☎ +39 333 750 99 83 mobile

 30, Rue V. Contesso, Villefranche/S/M
 ☎ +33 (0) 4 93 80 67 21

 Tsintsadze Str.
 Tbilisi  Georgia
 +995 577 17 70 81

 fr.l...@gmail.com
 ☏ Francesco.Liva





 On 26 Aug 2014, at 05:11, Larry Shaffer lar...@dakotacarto.com wrote:

 Hi Francesco,

 To call a wine-based Windows app, with arguments from the command line,
 consult the wine man page [0].

 However, I am not certain this will work as a configuration value, because
 the program itself needs to be prefaced with the 'wine' executable as the
 caller, e.g.:

 wine win_app args

 whereas, the QGIS_EPANET plugin may expecting the Epanet command line
 tool value to be explicitly a single file path. In other words, either the
 plugin will need to be adapted to handle wine calls and output, or you can
 write a wrapper script.

 I recommend trying to craft a wrapper shell script that acts as a proxy to
 calling wine and passing on any arguments to the wine-based app, then a
 single file path to the wrapper script will probably satisfy the plugin's
 configuration.

 No guarantee on any of this, or whether the wine-based app's output will
 be readable to the plugin.  :-)

 There is also an older post that may be of interest on using Homebrew's
 wine installation and where the Windows programs/files are located in your
 Home folder [1].

 Alternatively, and if you have a Windows OS license, you can use a wrapper
 script for calling a program from within a running instance of a virtual
 machine, e.g. VirtualBox via 'VBoxManage guestcontrol' [2].

 [0] https://www.winehq.org/docs/wine
 [1] http://www.davidbaumgold.com/tutorials/wine-mac/
 [2] http://www.virtualbox.org/manual/ch08.html#vboxmanage-guestcontrol

 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota


 On Sun, Aug 24, 2014 at 3:09 AM, Francesco Liva fr.l...@gmail.com wrote:

 Hello
 I have a MAC computer, running QGIS. Have installed EPANET with WINE
 1.7.16.
 I have installed the experimental plugins:  QGIS_EPANET.
 Does anybody knows how to use the EPANET (Drinking water flow simulation)
 and how to define the Epanet command line tool under the PROCESSING
 OPTIONS.
 Thank you

 Best Regards
 Francesco Liva

 __
 27, Triq Ix-Xatt, Kalkara, Malta
 ☎ +356 99 38 01 68 mobile
 ☎ +356 27 32 76 78 home

 Via Tevere 13-A, 00198 Rome
 ☎ +39 06 841 32 64 home
 ☎ +39 333 750 99 83 mobile

  30, Rue V. Contesso, Villefranche/S/M
 ☎ +33 (0) 4 93 80 67 21

 Tsintsadze Str.
 Tbilisi  Georgia
 +995 577 17 70 81

 fr.l...@gmail.com
 ☏ Francesco.Liva






 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS_EPANET - command line tool

2014-08-25 Thread Larry Shaffer
Hi Francesco,

To call a wine-based Windows app, with arguments from the command line,
consult the wine man page [0].

However, I am not certain this will work as a configuration value, because
the program itself needs to be prefaced with the 'wine' executable as the
caller, e.g.:

wine win_app args

whereas, the QGIS_EPANET plugin may expecting the Epanet command line
tool value to be explicitly a single file path. In other words, either the
plugin will need to be adapted to handle wine calls and output, or you can
write a wrapper script.

I recommend trying to craft a wrapper shell script that acts as a proxy to
calling wine and passing on any arguments to the wine-based app, then a
single file path to the wrapper script will probably satisfy the plugin's
configuration.

No guarantee on any of this, or whether the wine-based app's output will be
readable to the plugin.  :-)

There is also an older post that may be of interest on using Homebrew's
wine installation and where the Windows programs/files are located in your
Home folder [1].

Alternatively, and if you have a Windows OS license, you can use a wrapper
script for calling a program from within a running instance of a virtual
machine, e.g. VirtualBox via 'VBoxManage guestcontrol' [2].

[0] https://www.winehq.org/docs/wine
[1] http://www.davidbaumgold.com/tutorials/wine-mac/
[2] http://www.virtualbox.org/manual/ch08.html#vboxmanage-guestcontrol

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Sun, Aug 24, 2014 at 3:09 AM, Francesco Liva fr.l...@gmail.com wrote:

 Hello
 I have a MAC computer, running QGIS. Have installed EPANET with WINE
 1.7.16.
 I have installed the experimental plugins:  QGIS_EPANET.
 Does anybody knows how to use the EPANET (Drinking water flow simulation)
 and how to define the Epanet command line tool under the PROCESSING
 OPTIONS.
 Thank you

 Best Regards
 Francesco Liva

 __
 27, Triq Ix-Xatt, Kalkara, Malta
 ☎ +356 99 38 01 68 mobile
 ☎ +356 27 32 76 78 home

 Via Tevere 13-A, 00198 Rome
 ☎ +39 06 841 32 64 home
 ☎ +39 333 750 99 83 mobile

 30, Rue V. Contesso, Villefranche/S/M
 ☎ +33 (0) 4 93 80 67 21

 Tsintsadze Str.
 Tbilisi  Georgia
 +995 577 17 70 81

 fr.l...@gmail.com
 ☏ Francesco.Liva






 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Label rendering

2014-08-12 Thread Larry Shaffer
Hi Les,

With the current implementation, labeling is always draw last, on top of
all other symbology layers. This is due to the fact that the automated
solution for placing labels is done after all layers have registered their
features. Otherwise, labeling would need to be solved prior to rendering
any symbology of any layer, which would slow the overall apparent speed of
rendering in many cases.

Still, it is possible to implement labeling per layer. Just hasn't been
attempted, yet.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Tue, Aug 12, 2014 at 9:33 PM, l...@true3d.com.au l...@true3d.com.au
wrote:

 Hi List,

 I am creating a road map and I am having trouble with the road labels.  I
 am using QGIS 2.4 Chugiak on a windows PC.  I am using the Layer Order
 window to control the rendering order and this works fine for all  the
 other layers.

 With the road layer, the lines render at the correct level however the
 corresponding labels render on top of ALL other layers.  What am I doing
 wrong that the labels do not render at the same level as the road lines.

 Regards,

 Les Searle

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Volunteering To Aid Ebola Outreach

2014-08-07 Thread Larry Shaffer
Hi James,

Thank you for sharing this.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Thu, Aug 7, 2014 at 6:51 AM, James Wood jwood...@gmail.com wrote:

 This is not directly related to QGIS, but thought it was important enough
 to post. I'll ask for forgiveness later. Most if not all of you
 are familiar with OSM, and many of you, I'm sure, are contributors, so you
 may already be aware of the this effort. If you have never contributed;
 thought about it and just never found the time; or haven't logged in for a
 while, I would encourage you to read the Red Cross article and visit the
 open tasks page. This is a worthwhile effort to participate in, and each
 of us have the necessary skills to rapidly create the data that is needed.
 I spent some time just a few hours ago digitizing huts and pathways in
 rural Sierra Leone. It's easy and free to get involved to contribute
 mapping support for a good cause.

 Red Cross Article
 http://www.redcross.org/news/article/Volunteers-Around-the-World-Aid-Ebola-Victims

 OSM Task Page http://tasks.hotosm.org/

 Thanks for taking the time to read,
 James


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Stress about release plans

2014-07-22 Thread Larry Shaffer
Hi,

I don't think splitting development resources to maintain an LTS branch is
going to solve the real issues. In fact, it will probably just cause more.

It seems to me that it all boils down to needing more time between releases:

* Documentation and development teams need to work more together = more
time needed
* Developers need to squash more bugs = more time (and funding) needed
* Users and trainers need to fully adopt and use a specific version = more
time needed

I propose just extending the current 4 month release scenario to ** 6
months **, i.e. just two releases a year. With all dev and freeze cycles
expanding proportionally.

Surely, knowing that QGIS is only/always released twice a year is enough to
tailor training and course material and help the documentation team keep
current. Surely, having more time to polish the code base and squash bugs
will help with stability.

Why do developers need a faster schedule than 6 months to produce new
features quicker if the rest of the community finds that too fast, and
can't keep up? What's the point then?

With more time and resources focusing on one (and only one) branch, we
should be able to overcome the current situation that is causing
complications for users, trainers, documenters, translators and sponsors.
Splitting dev resources between different branches, or only doing extra bug
fixing at certain times of the year will not fix these ongoing issues of
the development-release cycle going too fast for the rest of the community.

The current, too-quick 4-month release schedule is obviously NOT working
out.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Tue, Jul 22, 2014 at 3:10 PM, Bernd Vogelgesang bernd.vogelges...@gmx.de
 wrote:

  Am 22.07.2014, 12:16 Uhr, schrieb Derek Hohls dho...@csir.co.za:


 Is it not possible to require an absolutely minimum entry, at the correct
 place in the  docs, for a new feature?  For example, if a developer adds a
 new function X to a list of existing functions, already documented in
 section M.N, then at a minimum they need to add an entry saying Function X
 (added 22/7/14): TBD.  Anyone wanting to contribute to the docs can then
 (hopefully) easily search for undocumented features, both recent or
 ancient.  It may even be possible to organise doc sprints based on this
 approach.

 +1 !





  Victor Olaya vola...@gmail.com 07/22/14 12:02 PM 


 The solution is very simple: Require up to date, accurate documentation
 for all commits of new features. This is one for the PSC.
 After all, what's the point in having tons of features if no-one knows
 how to use them or what they do?
 Will it slow down new feature feature commit? Probably, but I figure
 that's a small price to pay for actually having documentation. And from
 that documentation, universal training materials can be developed much more
 easily.


 -1 from me. Features are also  documented by people using them, not just
 by the devs. We like to say that you can contribute to open source projects
 not just by coding, but if we do that, I don't think we are going to get
 many contributions from users, leaving the documentation to be written only
 by developers.

 I try to keep the Processing documentation up to date, but only
 documenting the interface itself and the framework, not the algorithms.
 That's the reason why a large part of algorithms in Processing are not
 documented. Fortunately, some users have contributed documentation, and
 they have added descriptions of several algorithms, but the have done that
 *after* using the (hitherto undocumented) algorithm and becoming familiar
 with it. No one is going to document something that he cannot use yet.

 Let's encourage developers to commit features when they are well
 documented, but let's also give some flexibility, since that's not always
 going to be possible.



 --
 This message is subject to the CSIR's copyright terms and conditions,
 e-mail legal notice, and implemented Open Document Format (ODF) standard.
 The full disclaimer details can be found at
 http://www.csir.co.za/disclaimer.html.


 This message has been scanned for viruses and dangerous content by
 *MailScanner* http://www.mailscanner.info/,
 and is believed to be clean.


 Please consider the environment before printing this email.




 --
 Bernd Vogelgesang
 Siedlerstraße 2
 91083 Baiersdorf/Igelsdorf
 Tel: 09133-825374

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS Mapserver with Lighttpd

2014-07-09 Thread Larry Shaffer
Hi Ivan,

On Wed, Jul 9, 2014 at 6:46 AM, Ivan Minčík ivan.min...@gmail.com wrote:

 Hi all,
 is anybody using QGIS Mapserver with Lighttpd and FastCGI ? Is QGIS
 projects update working without Lighttpd restart ?

 Can somebody share Lighttpd config ?


The labeling unit tests use qgis_local_server.py [0] to auto-launch and
control a lighttpd/spawn-fcgi configuration [1] of independent processes.
You can see the parameters passed to the start/stop/restart shell scripts
here [2], for Debian and Mac (sorry no Windows yet, but please contribute
one if you can).

Note: this is a local-only setup, merely to save PNGs of server output to
compare against control images and other rasterized output. It is by no
means secure, or robust; but, it is a working setup from which you can
start. Also, it uses very minimal resources.

Good luck, and please contribute any working configs you come up with for a
production setup, so they can be included in the Server Tutorial.

I am planning on adding a lighttpd/spawn-fgi and Nginx/(spawn-fgi or uWSGI)
setup configs section for the Server Tutorial, just not sure when.

[0]
https://github.com/qgis/QGIS/blob/master/tests/src/python/qgis_local_server.py
[1]
https://github.com/qgis/QGIS/tree/master/tests/testdata/qgis_local_server
[2]
https://github.com/qgis/QGIS/blob/master/tests/src/python/qgis_local_server.py#L164-L236

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota




 Thanks a lot.

 --
 Ivan Minčík
 ivan.min...@gmail.com  GPG: 0x79529A1E
 http://imincik.github.io/0x79529A1E.key
 ivan.min...@gista.sk GPG: 0xD714B02C
 http://imincik.github.io/0xD714B02C.key


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qgis-web-client and updating existing project files

2014-07-07 Thread Larry Shaffer
Hi Niklaas,

Hmm. It should be invalidating the related cache entries to the project,
when the project file has changed:
https://github.com/qgis/QGIS/blob/master/src/mapserver/qgsconfigcache.cpp#L36

Seems like just refreshing your browser after each project file save should
do the trick. You may have to close the project file in QGIS Desktop, or
your file editor, if editing it by hand. Some of this may not work on every
platform.

If that fails, it should be reported as an issue. In the meantime...

Since you are running Nginx already, you can spawn the qgis_mapserv.fcgi
process independently and use Nginx's fastcgi_module [0] to pass the
request on to your spawned process. This allows you to specifically
re-start the qgis_mapserv process without affecting any other web server
process. Restarting the process should invalidate its cache and re-parse
your project file. However, the project refresh noted above may just work
anyway, when using spawn-fcgi (untested).

You can use various tools to spawn the qgis_mapserv process, but I prefer
either spawn-fcgi [1] or uWSGI [2]. spawn-fcgi is the simplest to
integrate; here is an example [3].

The user/group you run spawn-fcgi under will need access to the QGIS
project file (and data directories, if any) that you specify with the MAP
request parameter.

[0] http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html
[1] http://redmine.lighttpd.net/projects/spawn-fcgi/wiki/WikiStart
[2] http://projects.unbit.it/uwsgi/
[3] http://wiki.habariproject.org/en/Installation_using_Nginx

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Sat, Jul 5, 2014 at 2:43 PM, Niklaas Baudet von Gersdorff 
nikl...@kulturflatrate.net wrote:

 Hi,

 I am wondering, whether there is an elegant way of configuring the
 qgis-web-client in a way that it is refreshing (or regenerating) the
 images of a project file on /every/ attempt displaying the corresponding
 project file. This would make testing or experimenting with the desktop and
 web application much much easier. I have already been asking this question
 at [1] but got the answer that I shall try restarting Apache2. In fact,
 this works (I can see the changes I made to a file after an update) but, in
 my opinion, this is not an
 elegant solution.

 1: http://gis.stackexchange.com/q/78423/19375

 I have also already asked at the IRC channel but haven't had any luck. I
 also did a web search but neither found a solution. I also had a look at
 the documentation of mod_fcgid at [2] but did not find anything promising
 unfortunately. My understanding of Apache2 (and mod_fcgid) is also quite
 limited.

 2: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

 Can anybody think of a setting in the configuration of Apache2 (or
 qgis-web-client) that changes the behaviour of 'caching' or 'buffering'
 (if it is called that way) to not 'cache' or 'buffer' anything at all?

 Maybe it is worth mentioning that our Server is running NGINX primarily.
 So I configured a proxy that is forwarding everything to the Apache2 server
 listening at 8008. (I am also wondering whether NGINX is caching something
 and I need to change anything there but since it is configured acting as a
 proxy I would suggest that it's not NGINX caching anything at all. Since
 restarting Apache2 leads to refreshing of the generated images I am quite
 sure that it's Apache2 and not NGINX buffering anything.)

 Any help is very much appreciated.

 All the best,

 --
 Niklaas Baudet von Gersdorff
 nikl...@kulturflatrate.net
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problems with re-projection in QGIS2.2 on MacOS

2014-07-01 Thread Larry Shaffer
Hi Peter,

On Sun, Jun 29, 2014 at 9:35 AM, Peter Aldhous pe...@peteraldhous.com
wrote:

  Yes, on my system the problem also resolves on zooming - although I'd
 only use Robinson for a global view.

 However, I have no problem with Google Mercator.

 Would really like to know how to fix this!


Try turning off 'Simplify geometry' for the layer (in layer properties)
[0]. For new projects, not existing ones, the default behavior in QGIS 2.4
can now be controlled by a checkbox in Options - Rendering (I think it's
the Rendering tab, not at a computer right now). Then, you can selectively
turn it on for layers where simplification would help speed up rendering.

[0] http://gis.stackexchange.com/a/100333/6725

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota




 Peter Aldhous, PhD
 Science journalist
 Contributor, MATTER https://www.medium.com/matter
 phone: 415 800 3471
 cell: 415 503 7323
 email: pe...@peteraldhous.com
 web: www.peteraldhous.com
 twitter: @paldhous https://twitter.com/paldhous

  On 6/29/14, 7:57 AM, Micha Silver wrote:

 I can verify this same behavior on Win7 with QGIS 2.4 64b. I think it has
 to do with the shapes crossing the 180º line. If you zoom in to a smaller
 area that includes only countries in one hemisphere, the borders look OK.
 Also, it's not only Robinson and Mollweide: any global projection will show
 strange trapezoids (even Google mercator)
 I also see that if you use the *spatialite database file* from
 naturalearthdata.org this problem disappears. You can switch to other
 world projections with no problem.

 On 29/06/2014 16:59, Peter Aldhous wrote:

 I don't think the image came through, but the problem is that every
 polygon ends up as a trapezoid, so I end up with a collection of
 overlapping trapezoids

 Peter Aldhous, PhD
 Science journalist
 Contributor, MATTER https://www.medium.com/matter
 phone: 415 800 3471
 cell: 415 503 7323
 email: pe...@peteraldhous.com
 web: www.peteraldhous.com
 twitter: @paldhous https://twitter.com/paldhous

  On 6/29/14, 6:54 AM, Peter Aldhous wrote:

 Hi all,

 I'm using the KyngChaos install of QGIS on the Mac (Mavericks and Lion, on
 different machines), and I've been having problems with  projections
 including Robinson and Mollweide from QGIS 2.2 onwards.

 Everything was fine in QGIS 2.0, but in 2.2 and 2.4, re-projecting a world
 Natural Earth shapefile to a Robinson projection, for example, gives this:

   Any idea what might be going on, and how to fix it?

 Thanks,


 --
 Peter Aldhous, PhD
 Science journalist
 Contributor, MATTER https://www.medium.com/matter
 phone: 415 800 3471
 cell: 415 503 7323
 email: pe...@peteraldhous.com
 web: www.peteraldhous.com
 twitter: @paldhous https://twitter.com/paldhous




 This mail was received via Mail-SeCure System.


 ___
 Qgis-user mailing 
 listQgis-user@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-user
 This mail was received via Mail-SeCure System.





 --
 Micha Silver
 GIS Consulting
 052-3665918http://www.surfaces.co.il



 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS Server on Mac OS X

2014-06-27 Thread Larry Shaffer
Hi Tobias,


On Fri, Jun 27, 2014 at 3:51 AM, Tobias Brühlmeier 
tobias.bruehlme...@xwind.ch wrote:

 Hi all,

 I’m trying to install QGIS Server on Mac OS X Mavericks. Unfortunately,
 I’m stuck. Hope, somebody has a good hint for me.

 This is what I have done so far:



 INSTALLATION

 1) I followed this documentation:
 http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial.
 Unfortunately, it’s based on Mac OS X Mountain Lion, but adaptions are very
 obvious.

 2) I’ve started on a clean installation of Mavericks (Virtual Machine),
 with Xcode and Xcode Command Line tools installed, as required.

 3) I’ve installed QGIS 2.2 and all required plug-ins. Works fine.

 4) I’ve worked around the Xcode bug via sudo ln -s
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
 /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain

 5) I’ve installed mod_fastcgi. The tutorial recommends using Apple’s
 version of mod_fastcgi, but since I wasn’t able to install it, and since
 it’s an old version, I’ve chosen Homebrew’s version (Terminal: brew install
 homebrew/apache/mod_fastcgi), and activated it in /etc/apache2/httpd.conf

 6) I’ve created the file /etc/apache2/other/qgis-mapserver.conf, as
 described.

 7) I’ve restarted Apache, and tested it successfully: http://localhost
 returns “It works!

 !! 8) Ive tried to test QGIS Server with:
 http://localhost/qgis-mapserv/qgis_mapserv.fcgi? Here is where trouble
 begins. According to the documentation, the returned message should
 be Configuration file problem”, but instead, it says Please check the
 value of the REQUEST parameter”. Couldn’t find a solution for that, and
 because error log doesn’t show an error, I suppose everything still works
 fine.



 PUBLISHING MY FIRST PROJECT

 As far as I understand, projects have to be located
 inside /Applications/QGIS.app/Contents/MacOS/fcgi-bin/: One project folder
 for every QGIS project.

 9) I’ve created a project folder
 /Applications/QGIS.app/Contents/MacOS/fcgi-bin/my_map_project.

 10) I’ve created a very simple QGIS project called cantons.qgs, taking
 canton boundaries from a PostGIS database.

 11) I’ve copied it
 to /Applications/QGIS.app/Contents/MacOS/fcgi-bin/my_map_project.

 12) I’ve copied Applications/QGIS.app/Contents/MacOS/fcgi-bin to
 /Applications/QGIS.app/Contents/MacOS/fcgi-bin/my_map_project.

  13) I tried to start my application with URLs
 - http://localhost/qgis-mapserv/my_map_project/qgis_mapserv.fcgi?
 -
 http://localhost/qgis-mapserv/my_map_project/qgis_mapserv.fcgi?SERVICE=WMSVERSION=1.3.0REQUEST=GetCapabilities

 No success. After some time, my web browser returns:

 —
 Internal Server Error

 The server encountered an internal error or misconfiguration and was
 unable to complete your request.

 Please contact the server administrator, y...@example.com and inform them
 of the time the error occurred, and anything you might have done that may
 have caused the error.

 More information about this error may be available in the server error
 log.
 —

 And Apache’s error log shows:
 ---
 dyld: Library not loaded:
 @executable_path/../../Frameworks/qgis_core.framework/qgis_core
   Referenced from:
 /Applications/QGIS.app/Contents/MacOS/fcgi-bin/my_map_project/qgis_mapserv.fcgi
   Reason: image not found


You have moved the qgis_mapserv.fcgi binary into a subdirectory, so
its @executable_path/../../Framew...etc
load path fails. The
qgis_mapserv.fcgi binary needs to stay in the
/Applications/QGIS.app/Contents/MacOS/fcgi-bin/
directory because it has 'relative' load paths that point to
libraries/frameworks in the QGIS.app bundle.

You can symlink qgis_mapserv.fcgi elsewhere, if Apache's user has rights to
that location and directives have been set up for the symlink's directory
to allow following symlinks. Symlinking is not necessary, though. You do
need to make sure the Apache user has read access to the directory of your
projects and data, in the same way it needs access to HTML files, etc.

You can place the project directories where you like, but initially try at
the root of your file system, e.g. /qgis, then set the permissions
appropriately for the server user's access. When doing this, you will then
need to pass the whole path to your project via the MAP parameter, e.g.
MAP=/qgis/my-project/project.qgs.

There are certainly better, more secure setups, but that should get you
started.

Regards

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


 ...



 This is it. Any ideas?

 Best regards, Tobias






 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS-Server write log on stdoutput ?

2014-06-21 Thread Larry Shaffer
Hi Andrea,

You can set the QGIS_LOG_FILE environment variable to have the
qgis_mapserv.fcgi process log to a file. It needs to be set within the
server process environment (if it has a loadable FCGI module) or within the
FCGI-spawning process environment, e.g. uWSGI or spawn-fcgi.

For Apache:

IfModule mod_fastcgi.c  (or mod_fcgid.c)
  ...
  SetEnv QGIS_LOG_FILE /path/to/qgis_server.log
/IfModule

Of course, the log needs to be writable by your Apache or FCGI-spawning
process user.

NOTE: if using latest master builds (or upcoming 2.4 release), the env var
is now QGIS_SERVER_LOG_FILE, with the new env var QGIS_SERVER_LOG_LEVEL to
define verbose level [0,1].

I haven't tested this, but the amount of debug output is usually relative
to the CMake build type, e.g. Release vs. RelWithDebInfo or Debug, like is
the case for the QGIS desktop output. Pretty sure that is always a
compile-time choice, and can't be be overridden at run-time. Your
qgis_mapserv.fcgi binary may need to be (re)built as RelWithDebInfo or
Debug to trigger enough output to debug your issue.

[0]
https://github.com/qgis/QGIS/commit/29c39b9f0209ddedd0d51eda1dc926e6e0f2ea9e
[1]
https://github.com/qgis/QGIS/commit/bdf1ac8d46d89869e58884c5f55ff711a1f5f76d

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Sat, Jun 21, 2014 at 9:25 AM, Andrea Peri aperi2...@gmail.com wrote:

 Hi,

 Our qgis-server is crashing on a project .
 This is quite strange because on the same project on a qi-desktop (on
 another machine) it run without any problem.
 And also the qgis-server run without any problem with another different
 project.

 I try to read from the log of server web to see any useful information
 but the log none report of qgis.
 The web server ,og come from the stdout so perhaps there is some
 specific setting to say to QS to output to stdout log ?

 Thx,


 --
 -
 Andrea Peri
 . . . . . . . . .
 qwerty àèìòù
 -
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS-Server write log on stdoutput ?

2014-06-21 Thread Larry Shaffer
Hi Andrea,

I suggest posting this to the dev list and asking Marco Hugentobler for
assistance. I personally do not know enough about threading on Linux to
help with that issue. Sorry.

You could also create an issue ticket and assign to Marco, though posting
to the dev list should probably be the first step.

On a side note: is the log file populated with output when running the
server with the OK project file?

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Sat, Jun 21, 2014 at 1:36 PM, Andrea Peri aperi2...@gmail.com wrote:

 Hi, Larry.

 Thx for hint.

 I set the two variables and the log file is create.
 :)

 But unfortunately it is absolutely empty.
 :(

 It seem the qgis-server will crash quite istantaneously.

 As I report before , I Guess this is something due to the qgis project
 because another project will work without any problem.

 So I set a local environment and run the qgis-server from a shell with
 a gdb debug to see effectively what it send to stdout.

 This is what it report:

 ...
 [Thread debugging using libthread_db enabled]
 Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
 Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
 environment variable.
 Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
 environment variable.
 Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
 environment variable.
 Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
 environment variable.
 Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
 environment variable.
 [New Thread 0x7fffe307c700 (LWP 823)]
 [New Thread 0x7fffe27ea700 (LWP 824)]

 Program received signal SIGSEGV, Segmentation fault.
 0x70e50421 in __dynamic_cast ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 (gdb)
 ..

 I see the version my linux run is the
 libstdc++.so.6 (libc6,x86-64) =
 /usr/lib/x86_64-linux-gnu/libstdc++.so.6

 There is some know issue of qgis-server with the libstdc++.so.6
 ?

 2014-06-21 20:53 GMT+02:00 Larry Shaffer lar...@dakotacarto.com:
  Hi Andrea,
 
  You can set the QGIS_LOG_FILE environment variable to have the
  qgis_mapserv.fcgi process log to a file. It needs to be set within the
  server process environment (if it has a loadable FCGI module) or within
 the
  FCGI-spawning process environment, e.g. uWSGI or spawn-fcgi.
 
  For Apache:
 
  IfModule mod_fastcgi.c  (or mod_fcgid.c)
...
SetEnv QGIS_LOG_FILE /path/to/qgis_server.log
  /IfModule
 
  Of course, the log needs to be writable by your Apache or FCGI-spawning
  process user.
 
  NOTE: if using latest master builds (or upcoming 2.4 release), the env
 var
  is now QGIS_SERVER_LOG_FILE, with the new env var QGIS_SERVER_LOG_LEVEL
 to
  define verbose level [0,1].
 
  I haven't tested this, but the amount of debug output is usually
 relative to
  the CMake build type, e.g. Release vs. RelWithDebInfo or Debug, like is
 the
  case for the QGIS desktop output. Pretty sure that is always a
 compile-time
  choice, and can't be be overridden at run-time. Your qgis_mapserv.fcgi
  binary may need to be (re)built as RelWithDebInfo or Debug to trigger
 enough
  output to debug your issue.
 
  [0]
 
 https://github.com/qgis/QGIS/commit/29c39b9f0209ddedd0d51eda1dc926e6e0f2ea9e
  [1]
 
 https://github.com/qgis/QGIS/commit/bdf1ac8d46d89869e58884c5f55ff711a1f5f76d
 
  Regards,
 
  Larry Shaffer
  Dakota Cartography
  Black Hills, South Dakota
 
 
  On Sat, Jun 21, 2014 at 9:25 AM, Andrea Peri aperi2...@gmail.com
 wrote:
 
  Hi,
 
  Our qgis-server is crashing on a project .
  This is quite strange because on the same project on a qi-desktop (on
  another machine) it run without any problem.
  And also the qgis-server run without any problem with another different
  project.
 
  I try to read from the log of server web to see any useful information
  but the log none report of qgis.
  The web server ,og come from the stdout so perhaps there is some
  specific setting to say to QS to output to stdout log ?
 
  Thx,
 
 
  --
  -
  Andrea Peri
  . . . . . . . . .
  qwerty àèìòù
  -
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 



 --
 -
 Andrea Peri
 . . . . . . . . .
 qwerty àèìòù
 -

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Fwd: QGIS 2.3- problem with labels

2014-05-28 Thread Larry Shaffer
Hi Lorenzo,

Confirmed here on Mac that there is an issue with the new combobox, which
doesn't work right in the Layer Properties dialog, after clicking Apply.
Does work right (and Apply) when used in the standalone Labeling dialog.

Please file an issue ticket: http://issues.qgis.org

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Wed, May 28, 2014 at 4:29 AM, lorenz lor...@gmail.com wrote:


 Goodmorning everybody,
 i'm using 2.3 version and i noticed this problem:
 when I create Labels il Layer properties, if I confirm all the choices
 with OK buttun, labels disappear in my map. To confirm my labels I've to
 click APPLY and then close the windows.


 Regards,

 Lorenzo Potè



 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Qgis 2.3 nightly build in Mavericks

2014-05-28 Thread Larry Shaffer
Hi Sergio,

Thank you for reporting.

On Wed, May 28, 2014 at 1:20 PM, Sergio Zárate aca...@gmail.com wrote:

 Hello all, I tried to open the nightly build of Qgis 2.3 in MacBookPro
 using OS X 10.9.3  and got the following message of error:
 Process: QGIS_2.3-dev [1348]
 Path:/Applications/QGIS_2.3-dev.app/Contents/MacOS/QGIS_2.3-dev
 Identifier:  org.qgis.qgis-dev
 Version: ???
 Code Type:   X86-64 (Native)
 Parent Process:  launchd [271]
 Responsible: QGIS_2.3-dev [1348]
 User ID: 501

 Date/Time:   2014-05-28 14:16:53.882 -0500
 OS Version:  Mac OS X 10.9.3 (13D65)
 Report Version:  11
 Anonymous UUID:  362E5C02-C39F-AF3E-4664-86A62C4FD245

 Sleep/Wake UUID: 916C2639-55E0-45CB-B785-748DD2E48979

 Crashed Thread:  0

 Exception Type:  EXC_BREAKPOINT (SIGTRAP)
 Exception Codes: 0x0002, 0x

 Application Specific Information:
 dyld: launch, loading dependent libraries

 Dyld Error Message:
   Library not loaded: /Library/Frameworks/GDAL.framework/Versions/1.11/GDAL


As this error indicates, you need to update to the latest GDAL 1.11
Complete framework from Kyngchaos.com [0]. Sorry, I finished upgrading the
build server with that framework yesterday, but did not have time to update
the nightly website with this information. Will do so today.

[0] http://www.kyngchaos.com/software/frameworks

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

  Referenced from:
 /Applications/QGIS_2.3-dev.app/Contents/MacOS/QGIS_2.3-dev
   Reason: image not found

 Binary Images:
 0x7fff68c1c000 - 0x7fff68c4f817  dyld (239.4)
 042C4CED-6FB2-3B1C-948B-CAF2EE3B9F7A /usr/lib/dyld

 Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5,
 2.3 GHz, 4 GB, SMC 1.68f99
 Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
 Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE,
 0x4D34373142353737334448302D4348392020
 Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE,
 0x4D34373142353737334448302D4348392020
 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6),
 Broadcom BCM43xx 1.0 (5.106.98.100.22)
 Bluetooth: Version 4.2.4f1 13674, 3 services, 23 devices, 1 incoming
 serial ports
 Network Service: AirPort, AirPort, en1
 Serial ATA Device: Hitachi HTS545032B9A302, 320.07 GB
 Serial ATA Device: MATSHITADVD-R   UJ-898
 USB Device: FaceTime HD Camera (Built-in)
 USB Device: Hub
 USB Device: Apple Internal Keyboard / Trackpad
 USB Device: BRCM2070 Hub
 USB Device: Bluetooth USB Host Controller
 USB Device: Hub
 USB Device: IR Receiver
 Thunderbolt Bus: MacBook Pro, Apple Inc., 22.1

 So, I can not try it!

 Regards

 Sergio Zárate

 --
 Dr. Sergio Zárate Pedroche
 José María Arroyo 228
 Col. 22 de octubre
 Morelia, Michoacán
 C.P. 58341
 México
 Teléfono: (443) 352-5307
 Celular: (443)  438-6212

 ...
 http://independent.academia.edu/SergioZ%C3%A1ratePedroche

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Qgis 2.3 nightly build in Mavericks

2014-05-28 Thread Larry Shaffer
Hi,

The Mac QGIS nightly site has been updated:

http://qgis.dakotacarto.com/

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Wed, May 28, 2014 at 4:57 PM, Larry Shaffer lar...@dakotacarto.comwrote:

 Hi Sergio,

 Thank you for reporting.

 On Wed, May 28, 2014 at 1:20 PM, Sergio Zárate aca...@gmail.com wrote:

 Hello all, I tried to open the nightly build of Qgis 2.3 in MacBookPro
 using OS X 10.9.3  and got the following message of error:
 Process: QGIS_2.3-dev [1348]
 Path:
  /Applications/QGIS_2.3-dev.app/Contents/MacOS/QGIS_2.3-dev
 Identifier:  org.qgis.qgis-dev
 Version: ???
 Code Type:   X86-64 (Native)
 Parent Process:  launchd [271]
 Responsible: QGIS_2.3-dev [1348]
 User ID: 501

 Date/Time:   2014-05-28 14:16:53.882 -0500
 OS Version:  Mac OS X 10.9.3 (13D65)
 Report Version:  11
 Anonymous UUID:  362E5C02-C39F-AF3E-4664-86A62C4FD245

 Sleep/Wake UUID: 916C2639-55E0-45CB-B785-748DD2E48979

 Crashed Thread:  0

 Exception Type:  EXC_BREAKPOINT (SIGTRAP)
 Exception Codes: 0x0002, 0x

 Application Specific Information:
 dyld: launch, loading dependent libraries

 Dyld Error Message:
   Library not loaded:
 /Library/Frameworks/GDAL.framework/Versions/1.11/GDAL


 As this error indicates, you need to update to the latest GDAL 1.11
 Complete framework from Kyngchaos.com [0]. Sorry, I finished upgrading the
 build server with that framework yesterday, but did not have time to update
 the nightly website with this information. Will do so today.

 [0] http://www.kyngchaos.com/software/frameworks

 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota

   Referenced from:
 /Applications/QGIS_2.3-dev.app/Contents/MacOS/QGIS_2.3-dev
   Reason: image not found

 Binary Images:
 0x7fff68c1c000 - 0x7fff68c4f817  dyld (239.4)
 042C4CED-6FB2-3B1C-948B-CAF2EE3B9F7A /usr/lib/dyld

 Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core
 i5, 2.3 GHz, 4 GB, SMC 1.68f99
 Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
 Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE,
 0x4D34373142353737334448302D4348392020
 Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE,
 0x4D34373142353737334448302D4348392020
 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6),
 Broadcom BCM43xx 1.0 (5.106.98.100.22)
 Bluetooth: Version 4.2.4f1 13674, 3 services, 23 devices, 1 incoming
 serial ports
 Network Service: AirPort, AirPort, en1
 Serial ATA Device: Hitachi HTS545032B9A302, 320.07 GB
 Serial ATA Device: MATSHITADVD-R   UJ-898
 USB Device: FaceTime HD Camera (Built-in)
 USB Device: Hub
 USB Device: Apple Internal Keyboard / Trackpad
 USB Device: BRCM2070 Hub
 USB Device: Bluetooth USB Host Controller
 USB Device: Hub
 USB Device: IR Receiver
 Thunderbolt Bus: MacBook Pro, Apple Inc., 22.1

 So, I can not try it!

 Regards

 Sergio Zárate

 --
 Dr. Sergio Zárate Pedroche
 José María Arroyo 228
 Col. 22 de octubre
 Morelia, Michoacán
 C.P. 58341
 México
 Teléfono: (443) 352-5307
 Celular: (443)  438-6212

 ...
 http://independent.academia.edu/SergioZ%C3%A1ratePedroche

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] GDAL extension, filegdb, in QGIS

2014-05-20 Thread Larry Shaffer
Andre,

Thanks for adding that request! A feature I have wanted for quite some
time, but always forgot to make the ticket.  :-)

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Tue, May 20, 2014 at 12:08 PM, Andre Joost andre+jo...@nurfuerspam.dewrote:

 Am 20.05.2014 19:13, schrieb Etienne Tourigny:

  This would be a nice feature - you should file a feature request for this.


 Done: http://hub.qgis.org/issues/10313

 I doubt it can make it into QGIS 2.4, but maybe for the next hackfest...


 Greetings,
 André Joost

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Text size expression

2014-05-12 Thread Larry Shaffer
Hi Liam,

Having multiple font sizes per label is not supported yet.

You will have to duplicate the layer, create an expression for the each
row, set each layer's font size accordingly and play with the vertical
offset (or quadrant) to get the desired effect.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Mon, May 12, 2014 at 6:05 PM, Liam Anderson hokim...@gmail.com wrote:

 I would like to make a label with two different text sizes in it( see
 below).  It needs to be one label with an expression using two fields.  Can
 someone give me an expression for defining font size?

 Site: 3
 12.1 Ha
 Thanks, Liam.

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Installation problem with QGIS

2014-04-06 Thread Larry Shaffer
Hi Alex,

Please provide more details, like what platform you are trying to install
on, and the location/repository from which you acquired the 'packages'.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Sun, Apr 6, 2014 at 4:59 PM, Alex Riggs alexriggs...@gmail.com wrote:

 Hi,

 I'm new to QGIS, but must use it in school for my Cartography Lab. I've
 installed the GDAL and NumPy packages (inc. Python 2.7) and Matplotlib, yet
 when  try to install QGIS it says I must have Matplotlib installed, which
 it already is. Any help would be appreciated.

 Alex Riggs
 Is trying his best
 alexriggs...@gmail.com



 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] lots of log messages after label appllication

2014-03-28 Thread Larry Shaffer
Hi Pietro,

On Fri, Mar 28, 2014 at 6:06 AM, Pietro Rossin pieri...@gmail.com wrote:

 Hello
 I have a multipolygon (postgis) that has complex geometries in it.
 It loads with no problem and I can apply a style without issues.
 When I try to label it I get a lot of messages in qgis log, like the below
 ones:

 Eccezione: IllegalArgumentException: Invalid number of points in LinearRing
 found 3 - must be 0 or = 4
 Eccezione: IllegalArgumentException: holes must not contain null elements

 St_isvalid returns true for all geometries..


What version of QGIS are you using? There are possibly related fixes to
this in master and backported to the release-2_2 branch [0,1].

Try turning off 'Simplify geometry' under Rendering in Layer Properties
dialog, and see if that suppresses the error. While your data has valid
geometries, the simplification process may have generated invalid ones
(what the commits are intended to fix).

[0] https://github.com/qgis/QGIS/commit/1f21273
[1] https://github.com/qgis/QGIS/commit/5b824ac

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota



 What can it be?
 Thanks
 Pietro



 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/lots-of-log-messages-after-label-appllication-tp5131788.html
 Sent from the Quantum GIS - User mailing list archive at Nabble.com.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] lidar visualization in qgis

2014-03-25 Thread Larry Shaffer
Hi Antonio,

You may wish to review this recent discussion on the developer mailing list
concerning how to best implement it [0]. I believe there may be a Google
Summer of Code project as well [1].

[0] http://osgeo-org.1560.x6.nabble.com/Lidar-data-into-QGIS-td5100547.html
[1]
http://hub.qgis.org/wiki/quantum-gis/Google_Summer_of_Code_2014#LiDAR-support-for-QGIS

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Tue, Mar 25, 2014 at 2:08 PM, antonio valanzano anval...@gmail.comwrote:

 I would like to start a discussion about the minimal functionalities that
 a new lidar plugin or a  core function  should present.

 Based on my experience the minimal requirements are:

 - to read data in LAS format
 - to visualize points based on classification or intensity
 - to allow the filtering of points based on classification
 - to allow the selection of points with spatial relationship with other
 layers
 - to export filtered points or selected points in LAS format

 Antonio Valanzano





 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Missing labels in polygons

2014-03-19 Thread Larry Shaffer
Hi David,

On Wed, Mar 19, 2014 at 1:33 PM, Chrest, David dav...@rti.org wrote:

 This is in QGIS 2.2. When I label a polygon layer, in my case a very
 simple shapefile of just a few sates, only 2 of the 8 labels appear and the
 rest are missing. When I go into edit layer mode, I see all labels, then
 turn off edit mode, and only the same two labels appear. When I zoom so far
 out that my group of U.S. states are nothing but a dot, the rest of the
 labels appear. Very strange. I see that this is some kind of logged bug
 with the new label engine, correct? Is there some kind of fix planned since
 this pretty much causes the inability to label polygons?


Try turning off Simplify geometry for the layer.

See (should be fixed in master):
http://hub.qgis.org/issues/9655
http://hub.qgis.org/issues/9673

Please do not cross-post to multiple mailing lists, i.e. to QGIS User and
Dev, unless absolutely necessary.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota



 Thanks for any help that can be provided.

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] FOSS4G 2014 Workshop submissions

2014-03-14 Thread Larry Shaffer
Hi Tim, et al.,

I am currently working on a presentation and workshop for the upcoming
inaugural QGIS user group meeting in DC [0]. The concept is on how to
become a QGIS developer. There is an obvious dearth of developers in the US
compared to around the globe, though most certainly not because there is a
lack of potential developers.

The focus will be on the many avenues one can gain working knowledge and
apply their ideas to help the project and themselves or their business,
whether it be with writing plugins, standalone apps, documentation or
tutorials, or submitting code pull requests. The goal is to get potential
US developers excited about and involved in the project.

The presentation/workshop covers taking the first steps from user to
developer and an overview of the project's structure and organization. It
includes an overview of the technologies used and recommends tools and
workflows for working with and managing both QGIS and Python/plugin source
code. It is not about how to specifically write code, but how to gain the
knowledge and set up the development environment to do so, regardless of
platform, and what to do with the working and finished code/plugin/app.

Additionally, it covers the benefits of becoming a developer, or sponsoring
one as a business.

I think this would make a good FOSS4G workshop, especially once the
presentation/workshop has been trial-run at the US user meeting. I've done
smaller, similar presentations for the local GIS community here in the past.

If others agree this would be a good workshop, I'll submit something today.

[0] http://qgis.us/#meetings

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Fri, Mar 14, 2014 at 12:11 PM, Tim Sutton li...@linfiniti.com wrote:

 Hi All

 I was just wondering if anyone has made submissions to run QGIS workshops
 at the upcoming FOSS4G 2014 event. As I write this it is about 13 hours to
 the closing event. It would be great if those planning to submit workshop
 proposals coordinate a little to avoid duplication. I know Jeffrey Johnson
 is putting in to do a QGIS Analysis workshop. Is anyone planning to offer
 an introductory workshop (or anything else)?

 It would be great if the US folks could pool effort - perhaps also giving
 a quick start guide to writing QGIS plugins would be nice!

 Regards

 Tim

 --
 Tim Sutton - QGIS Project Steering Committee Member
 ==
 Please do not email me off-list with technical
 support questions. Using the lists will gain
 more exposure for your issues and the knowledge
 surrounding your issue will be shared with all.

 Irc: timlinux on #qgis at freenode.net
 ==

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] What does the Automated Placement Settings do for labels?

2014-03-14 Thread Larry Shaffer
Hi David,

On Fri, Mar 14, 2014 at 3:07 PM, Chrest, David dav...@rti.org wrote:

 In the Labels section of a layer properties window, there is a button in
 the upper left called Automated placement settings (apply to all layers).

 What exactly does this do? Search method, Number of candidates, show all
 labels and features for all layers, show candidates (for debugging), show
 shadow rectangles (for debugging)? I couldn't find much documentation on
 this. Thanks for any help.


All of those settings relate to the automated label placement (PAL) library
[0] used to automatically derive optimal label (and diagram) placements,
except 'Show shadow rectangles' which is just for debugging. There are
definitely some missing descriptions in the online docs for these settings.

* Search method - is the method (i.e. algorithm) used by PAL to arrive at a
placement solution. Play around with these to see possibly different
results or performance by placement engine.

* Number of candidates - are the total possible candidates for a
label/diagram placement (per spatial geometry type) before cost analysis is
applied and overlaps calculated. More candidates will decrease performance,
but provide a wider range of placements, with less candidates resulting in
the opposite. The defaults may not be adequate for your project.

* Show partial labels - is a newer setting (QGIS 2.0+) that allows labels
that extend beyond the map canvas extent (i.e. partially showing inside it)
to be drawn. If unchecked, any label touched by the extent will not be
shown. This aids the production of map raster tiles, where you don't want a
partial label to show up on different part of different tiles. However, the
current implementation does not increase the number of candidates, i.e. it
will not move a extent-bisecting label to just within the extent; so, those
labels will just not be shown, resulting in fewer labels.

* Show all labels and features for all layers - will turn off PAL's hiding
of labels deemed of low cost or that have too many overlaps. All labels,
regardless of whether they collide (overlap) will be shown. Sometimes you
just want to show all labels. This is also available as a per-layer option
in the Labeling dialog of QGIS 2.0+.

* Show candidates - will show the rectangles of possible label placement
candidates (relative to number chosen). With curved labels this shows
rectangles per character. When labeling doesn't work as expected, turn this
on to see where labels might show up. There is currently no means of
forcing a label to use a particular candidate however. You can 'pin' the
label and/or move it to a preferred location when using data defined
labeling tools.

* Show shadow rectangles - is a newer setting (QGIS 2.0+) that will draw
the bounding box of any drop shadow created for a label component. This
helps debug the code that creates the shadows, which are auto-generated
raster images. If your drop shadows exhibit odd artifacts or are unduly
clipped, turning this on and providing a screenshot will help debug the
error.

Note that prior to QGIS 2.0 these settings were global (app-wide), then
with 2.0 and 2.2 they are capable of being saved with the project (as well
as global), and with 2.3+ they are only per project, since there is no
longer an app-wide QgsPalLabeling instance (only instantiated when a
sequential or parallel rendering job is run with the new multi-threaded
rendering engine).

[0] https://github.com/qgis/QGIS/tree/master/src/core/pal

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


 David Chrest

 Research GIS Analyst

 RTI International

 3040 Cornwallis Rd, PO Box 12194

 Research Triangle Park, NC  27709-2194



 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Installerpackage QGIS 2.2 OSX 10.6?

2014-03-08 Thread Larry Shaffer
Hi Gene, et al.,

Apologies for the cross-post to dev list.

On Sat, Mar 8, 2014 at 12:45 AM, gene martin.lal...@gmail.com wrote:

 You can still use the masters versions of Larry Shaffer,
 http://qgis.dakotacarto.com/ http://qgis.dakotacarto.com/  : every day a
 new Snow Leopard version


While this is true, both the 10.7+ and 1.0.6 nightlies are currently built
against William's frameworks. In the event his supporting frameworks will
not install for 10.6, that nightly will be suspended. The nightlies are
very 'bare bones' for running unit test suites and for testers to help
debug the core application. They are a far cry from the out-of-the-box,
heavily bundled installers from William, and the nightlies should not be
considered, or recommended, as a production tool.

On the brighter side, the OSGeo4Mac project [0] (a 'tap' for Homebrew) is
coming along nicely, with about a 90% feature parity with William's
framework builds. I have not tested a full build (QGIS and Processing
supporting installs) under 10.6 yet, but it looks like I should do this
ASAP. If anyone knows how to use Homebrew, they can give it a try
themselves, basically without having to read QGIS's INSTALL doc.

These are the pending changes that will affect future nightlies:

1)  Move to using OSGeo4Mac as the basis for 10.6 and 10.7+ nightly builds
2)  Continue an additional 10.7+ nightly built off of William's frameworks
3)  Add new modules to QGIS (in parallel to current) to leverage CMake's
built-in bundling utilities
4)  Implement pull request #1804: Add objective-c++ interface to Mac Cocoa
libraries [1]
5)  Add Sparkle framework (hopefully goes well) to allow for in-app,
auto-download/install updates

Reasoning for these steps:

1) Since Homebrew offers support for 'bottled' builds (pre-built binaries),
the nightly 'downloads' can be just moved to bottles, and Homebrew can
automate their installation. Such bottles, especially for supporting libs,
can also be used to sustain a Travis (or possibly Jenkins) continuous
integration server [2].

The Homebrew setup offers an additional testing facet to nightlies: testers
can readily build and use the latest versions of supporting libs, like
GDAL, to test against the latest QGIS. This will help the QGIS project stay
ahead of possible incompatibility issues.

2) Since William's installers are so mature, widely-used and known, it
makes sense to continue to offer nightlies for testers that don't want to
(or can't) compile anything. This helps debug releases and subsequent
fixes, and makes it as simple as possible for users to work with a nightly.
However, this setup requires the most bandwidth, which is another reason
why I'll be dropping it for 10.6.

3) CMake's BundleUtilites [3, 4] are considerably more mature now than when
William tackled the large effort of creating QGIS's current bundling setup.
Leveraging CMake's toolset will allow for quicker adoption of bundling ever
more Processing supporting libs/executables and allow to future-proof
complete bundling of QGIS off of the OSGeo4Mac installation (as well as
others).

4) and 5) An embedded auto-updater will allow for testers to just launch
QGIS and choose to download and auto-install the latest nightly, regardless
of its build backend or supporting lib setup. This will also test the
auto-updater itself, which, when found to be stable, can be incorporated
into release versions.

I do all of this nightly build stuff on borrowed CPU time and disk space
from my gracious employer. It would be really nice to do this on hardware
provided by the QGIS project or OSGeo, but this means purchasing at least
one highend Mac, since legally virtualizing or installing any Mac OS X
requires Mac hardware. A minimum of 4 (ideally 8) CPU cores would be
necessary.

Anyone have $1000-1200 USD they can donate to the QGIS project, for their
very own decent Mac Mini? (That would include AppleCare.) I'd donate my
time and know-how.

[0] https://github.com/dakcarto/homebrew-osgeo4mac
[1] https://github.com/qgis/QGIS/pull/1084
[2]
http://osgeo-org.1560.x6.nabble.com/Failing-tests-consider-blockers-td5103837.html#a5104123
[3] http://www.cmake.org/Wiki/BundleUtilitiesExample
[4]
http://www.cmake.org/cmake/help/v2.8.11/cmake.html#module:BundleUtilities

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota




 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/Installerpackage-QGIS-2-2-OSX-10-6-tp5108184p5127856.html
 Sent from the Quantum GIS - User mailing list archive at Nabble.com.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Python error using OpenLayers plugin, problem with mapRenderer

2014-03-02 Thread Larry Shaffer
Hi Joshua,

On Sun, Mar 2, 2014 at 11:35 AM, Joshua Arnott j...@snorfalorpagus.netwrote:


 Hello,

 I'm getting the error below when I try to add a layer from the OpenLayers
 plugin.

 I think this is the same issue as here:
 http://lists.osgeo.org/pipermail/qgis-developer/2013-December/029682.html

 I'm using a version of QGIS I compiled myself (33a8b63) on OpenSUSE 12.3
 (32-bit). I've not had problems using this previously.

 The error seems to be coming from the mapRenderer function, as I get the
 same if I try to enter iface.mapCanvas().mapRenderer() in the Python
 console.


You are using the current 2.3-dev version, which includes the new
multi-threaded renderer. The OpenLayers plugin evidently has not been
updated to work with the new renderer setup. Please create a new issue
ticket on the plugin's tracker [0].

On Mac, using latest 2.3-dev, I actually get a segfault, but that is due (I
think) to the excessive log output crashing the app.

Debug output in Terminal (please add to ticket):

OpenlayersLayer draw
Warning: QPixmap: It is not safe to use pixmaps outside the GUI thread
src/core/qgsmessagelog.cpp: 45: (logMessage) 2014-03-02T18:25:20 Qt[1]
QPixmap: It is not safe to use pixmaps outside the GUI thread
Segmentation fault: 11

If you really need the OpenLayers plugin, try dropping back to the latest
release version, QGIS 2.2.


Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


 I have tried recompiling, but there is no change. Other than this QGIS
 functions as expected.

 Josh

 An error has occured while executing Python code:

 Traceback (most recent call last):
   File
 /home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py,
 line 50, in addLayer
 self.__plugin.addLayer(self)
   File
 /home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py,
 line 202, in addLayer
 self.__setMapSrsGoogle()
   File
 /home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py,
 line 253, in __setMapSrsGoogle
 mapCanvas.mapRenderer().setProjectionsEnabled(True)
 TypeError: C++ type 'const QgsMapLayer*' is not supported as  type

 Python version:
 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]


 QGIS version:
 2.3.0-Master Master, 33a8b63

 Python path: ['/home/snorf/.qgis2/python/plugins/processing',
 '/home/snorf/apps/share/qgis/python', u'/home/snorf/.qgis2/python',
 u'/home/snorf/.qgis2/python/plugins',
 '/home/snorf/apps/share/qgis/python/plugins',
 '/usr/lib/python2.7/site-packages/elementtree-1.2.7_20070827_preview-py2.7.egg',
 '/usr/lib/python2.7/site-packages/Sphinx-1.2b3-py2.7.egg',
 '/usr/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg',
 '/usr/lib/python2.7/site-packages/docutils-0.11-py2.7.egg',
 '/usr/lib/python2.7/site-packages/Pygments-1.6-py2.7.egg',
 '/usr/lib/python2.7/site-packages/MarkupSafe-0.18-py2.7-linux-i686.egg',
 '/usr/lib/python2.7/site-packages/sphinx_intl-0.9.3-py2.7.egg',
 '/usr/lib/python2.7/site-packages/polib-1.0.3-py2.7.egg',
 '/usr/lib/python2.7/site-packages/sphinx_bootstrap_theme-0.3.2-py2.7.egg',
 '/usr/lib/python2.7/site-packages/colormath-1.0.8-py2.7.egg',
 '/usr/lib/python2.7/site-packages/webcolors-1.4-py2.7.egg',
 '/usr/lib/python2.7/site-packages/termcolor-1.1.0-py2.7.egg',
 '/home/snorf/apps/share/qgis/python',
 '/home/snorf/apps/share/qgis/python/plugins', '/home/snorf',
 '/usr/lib/python27.zip', '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7/site-packages',
 '/usr/local/lib/python2.7/site-packages',
 '/usr/lib/python2.7/site-packages/gst-0.10',
 '/usr/lib/python2.7/site-packages/gtk-2.0',
 '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info',
 '/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode',
 '/home/snorf/apps/share/qgis/python/plugins/fTools/tools',
 '/home/snorf/.qgis2/python/plugins/mmqgis/forms', '~/.qgis/python']


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS shutdown python script

2014-02-04 Thread Larry Shaffer
Hi Ross,

On Tue, Feb 4, 2014 at 9:32 AM, Etienne Tourigny etourigny@gmail.comwrote:

 You could place your code in your plugin's unload() method.  But I'm not
 sure this would work, because some things might not be available at that
 time (e.g. layers, etc.).

 See this page for a simple example
 http://www.qgis.org/en/docs/pyqgis_developer_cookbook/plugins.html


 On Tue, Feb 4, 2014 at 7:41 AM, McDonaldR mcdona...@angus.gov.uk wrote:

Hi List



 Is it possible for QGIS to run a (python) script on shutdown?  There is a
 feature on the QGIS issues list about startup scripts (
 http://hub.qgis.org/issues/6297) - can shutdown scripts be used in the
 same way?


Have your tried putting that Python code in the closeProject() Python
Project Macro (in Project Properties dialog in QGIS 2.0+)? Not global to
the app, but it is already implemented, just at the per-project level.

Regards,

Larry


Say, for example, I have a project in which I am editing a dataset in a
 spatialite database. At the end of the edit session I save my work and
 shutdown QGIS. Before shutdown actually happens a python script/batch file
 runs which zips the spatialite database and copies it to a remote server
 location ready for processing by some other software.



 Thanks



 Ross



 *Ross McDonald *| GIS Data Coordinator | Resources Department, IT
 Division | Angus Council, Angus House, Orchardbank Business Park, Forfar,
 DD8 1AT

 T: *01307 476419* | F: 01307 476401 | E: mcdona...@angus.gov.uk | W: *Angus
 Maps http://www.angus.gov.uk/maps/map_home.cfm*




 This message is strictly confidential. If you have received this in
 error, please inform the sender and remove it from your system. If received
 in error you may not copy, print, forward or use it or any attachment in
 any way. This message is not capable of creating a legal contract or a
 binding representation and does not represent the views of Angus Council.
 Emails may be monitored for security and network management reasons.  
 Messages
 containing inappropriate content may be intercepted. Angus Council does not
 accept any liability for any harm that may be caused to the recipient
 system or data on it by this message or any attachment.

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user



 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 2.0 label problem

2014-02-01 Thread Larry Shaffer
Hi Lester,

On Sat, Feb 1, 2014 at 2:16 AM, Lester Anderson arctica1...@gmail.comwrote:

 There should be a proper solution. In my work, I often have clipped raster
 layers which are contoured and labelled, and I wish to compare these with a
 larger dataset (also contoured and labelled). If the vector contour layer
 is covered by the opaque overlying raster, then so to should the labels for
 that vector layer - this is just common logic.

 I think this labelling issue needs to be addressed by the developers as it
 is clearly a flaw. Take it to the extreme and have the top raster totally
 covering the lower one that has a vector contour layer labelled, and you
 immediately see the incosistency.

 Adding this feature (already logged as issue ticket #3257 [0]) will
require a considerable amount of work and possibly a large refactoring of
the labeling engine. This is not to say the request should not be
addressed, but simply that it is not so simple to implement. The feature
you request has certainly been brought up before.

The difficulty lies with PAL, the automated labeling library, which
provides a solution *only after* duplicates of all features to be labeled
have been registered with it. This is why labels are drawn on top of
everything else, because the layers are rendered in 'render order' and any
vector features to be labeled registered with the labeling engine, which
finally does its canvas drawing last.

There are several considerations to implementing this feature (let's call
it 'label obstacles'):

1) Individual layers need a setting to turn on label obstacles. (Not the
same concept as the current Discourage... setting.) This should allow all
vector features or raster extents to be obstacles and also include support
for defining a vector expression or raster calculation. There could also be
data defined support for vector layer feature attributes, e.g. a
'label_obstacle' column.

2) All calculated obstacle geometries would then be registered as obstacles
to avoid in PAL, with any polygons also subtracted from the clipping mask
used to clip feature geometries prior to input to PAL.

While this seems pretty straightforward, there are some definite hurdles:

* Raster layers are not currently part of the the labeling process at all.
On-the-fly calculation for figuring not just the extent, but also the
extent clipped of nodata, or even defined transparent, pixels would
significantly slow rendering down. The workaround is to not do so; instead,
requiring users to generate vector layers from the rasters to be used as
proxy obstacle layers. There should probably be a setting for whether the
obstacle features are rendered or not, i.e. invisible obstacles, without
turning off their parent layer's rendering.

* To truly be obstacles, this means individual label extents should never
intersect the obstacle, i.e. auto-placement label candidates are always
calculated to lie outside the obstacle, taking into account *all* label
characteristics/components. This will require a large refactoring of the
way final label output is calculated, currently with some label aspects
before PAL solution and some after. The entire, final label needs
calculated prior to input into PAL. However, this is something that already
needs done, so label components won't overlap other labels.

* If implemented, this still means labels are drawn on top of everything
else, just not over obstacles. Cartographically speaking vector and raster
layers should be able to 'mask' labels, i.e. labels can be drawn just
above, or even below their layer, with layers rendered above capable of
showing the labels underneath, if they have semi-transparency or a specific
blending mode. This would require a large refactoring of how the labeling
engine interacts with rendering. It is doable, but was voted down last time
it came up in developer discussions.

Please add your comments or testing results to feature #3257's ticket.

[0] http://hub.qgis.org/issues/3257

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


There is no workaround for this problem from what I can see.

 Cheers

 Lester


 On 1 February 2014 08:13, Harish harry.om2...@gmail.com wrote:

 There should be solution when user user does not want labels of
 underlying layers to be shown, without making the labels invisible.
  Regards


 On Sat, Feb 1, 2014 at 12:27 AM, Nathan Woodrow madman...@gmail.comwrote:

 Hey Lester,

 Labels always render above all other layers.

 - Nathan


 On Sat, Feb 1, 2014 at 9:55 AM, Lester Anderson 
 arctica1...@gmail.comwrote:


 Hello

 I have a issue with labels. If I have a base raster, overlay a contour
 layer with labels, and then a top raster, the labels from the underlying
 contour vector layer show when they should be covered - why should that be 
 ?

 Cheers

 Lester

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] archivos Kmz

2014-01-27 Thread Larry Shaffer
Hello Teresa,

These answers may help you:
http://gis.stackexchange.com/search?q=qgis+kmz

Specifically:
http://gis.stackexchange.com/questions/32082/can-qgis-open-kmz-files

Regards,

Larry


2014-01-27 Teresa Arias tarias...@gmail.com

 Como abrir un archivo kmz, y colocarle escala
 agradecida por su informacion
 teresa arias

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Current version of QGIS

2014-01-25 Thread Larry Shaffer
Hi,

On Wed, Jan 22, 2014 at 10:11 AM, Jonathan Moules 
jonathanmou...@warwickshire.gov.uk wrote:

 It occurs to me - this is a prime example of how this numbering system is
 confusing to users. Quite a few folks are talking about using 2.1 and how
 something is fixed in it, yet the QGIS webpage only has 2.0 on it. I know I
 always hate it when projects do that and wonder why they're not keeping
 their web-page updated.
 What was the reasoning behind using odd numbers for development versions?

 https://en.wikipedia.org/wiki/Software_versioning#Odd-numbered_versions_for_development_releases-
  suggests that it only works well for long-release cycles which QGIS
 doesn't have any more.


I don't see anything wrong with the new versioning setup. Just that it's
not spelled out for users. If the user's download page [0] just had a link
with the text similar to QGIS versions and release schedules that sent
the visitor to the developers page that already outlines the versioning
concept [1], wouldn't that be enough?

[0] http://qgis.org/en/site/forusers/download.html
[1] http://qgis.org/en/site/getinvolved/development/index.html

Regards,

Larry


 Cheers,
 Jonathan


 On 20 January 2014 14:27, Richard Duivenvoorde rdmaili...@duif.netwrote:

 On 20-01-14 15:24, Lester Anderson wrote:
  Hi all,
 
  Just a quick query, but what is the current version of QGIS as the
  forums/discussion refer to a versions 2.1 or 2.2 (as due out soon) -
  gets a little confusing? The download option is for 2.0.1

 Hi Lester,

 see http://qgis.org/en/site/getinvolved/development/index#road-map

 Current version is 2.0.1
 2.1 is the testing/development version
 next stable version will be 2.2

 Regards,

 Richard Duivenvoorde

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user



 This transmission is intended for the named addressee(s) only and may
 contain sensitive or protectively marked material up to RESTRICTED and
 should be handled accordingly. Unless you are the named addressee (or
 authorised to receive it for the addressee) you may not copy or use it, or
 disclose it to anyone else. If you have received this transmission in error
 please notify the sender immediately. All email traffic sent to or from us,
 including without limitation all GCSX traffic, may be subject to recording
 and/or monitoring in accordance with relevant legislation.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] In lieu of a QGIS 2.0 Homebrew formula ...

2013-11-26 Thread Larry Shaffer
Hi Robert,

Nice work on that! Concerning the Homebrew QGIS formula, I have been
working on a major update. I've added several new formula as well, to
achieve a *complete and stable* working environ for the user, as well as
PyQGIS and QGIS developers.

Notably, there is now support for:

* QGIS Server
* Globe plugin (with latest osgEarth 2.5)
* Many of the Processing extras (R, OrfeoToolbox, Saga)
* Spatialite access in DB Manager
* Required Python modules
* Local API doc generation
* Debug output builds for master branch (HEAD)
* Current PostgreSQL access client
* GPSBabel, for GPS Tools plugin
* Separate Lwgeom library/formula for third-party Processing plugin

From scratch, the entire formula, with all options, will take several hours
or more to compile on a fast Mac. The build can be in the normal Homebrew
prefix of `/usr/local` as well as custom prefixes.

Currently the work is in a 'tap' here [0]. Some of the new formula have
been accepted as pull requests, while others are in pull request limbo.
Until many of the base formulae are committed (maybe) upstream, any formula
in my tap will do the trick. There are duplicates of `gdal` and `grass`
that will be *ignored* when updating the tap. I'm currently keeping them in
sync with the main Homebrew tap while we work out the 10.9 upgrade bugs.
You can manually use them if you are familiar with editing formulae and
managing your local Homebrew git repository on the main tap.

The QGIS 2.0 formula [1] is in a 'beta' state, and requires a good
understanding of Homebrew to tinker with right now. It is about 85%
complete, though does currently compile fine on OS X 10.7-8, while 10.9 is
a work-in-progress and 10.6 is completely untested.

Any help or testing, or pull requests to my tap's repo, would be gladly
appreciated. Thanks to John Tull for his help on this and for his many pull
requests to the upstream Homebrew project. Feel free to contact me for help
if you embark on using the formula in the tap.

[0] https://github.com/dakcarto/homebrew-osgeo4mac
[1]
https://github.com/dakcarto/homebrew-osgeo4mac/blob/master/Formula/qgis-20.rb

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Tue, Nov 26, 2013 at 8:08 PM, Robert Nix rob...@urban4m.com wrote:

 Here's a link to a Gist i wrote today to build QGIS 2 from source against
 Homebrew-only packages.

 https://plus.google.com/+nicerobot/posts/cvAUMoSVVWN

 ref: https://gist.github.com/nicerobot/7664605
 ref: http://lists.osgeo.org/pipermail/qgis-user/2013-September/024129.html

 Hope you find it useful ... and working :)


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Open KMZ in QGIS 2.0

2013-11-21 Thread Larry Shaffer
Hi Lene,

On Thu, Nov 21, 2013 at 3:00 AM, Lene Fischer l...@ign.ku.dk wrote:


Hi,
 I´m trying to open a KMZ-file in QGIS 2.0 - but get an error - Datasource
 is invalid.
 It is possible to open a KMZ in version 1.8


Please see: http://hub.qgis.org/issues/5242

Basically, the underlying data provider, GDAL/OGR in this case, needs to be
compiled with support for Google's libkml, which has routines for unzipping
the .kmz using the Minizip library. I did not see libkml in the current
package listings for OSGeo4W (assuming you are using that), in either the
32- or 64-bit installers [0].

There is a ticket already, requesting libkml support for OSGeo4W [1]. There
are also workarounds noted in the answers on gis.stackexchange.com [2]
(basically unzip the .kmz first).

[0] http://trac.osgeo.org/osgeo4w/wiki/PackageListing
[1] http://trac.osgeo.org/osgeo4w/ticket/291
[2] http://gis.stackexchange.com/search?q=qgis+kmz

Regards,

Larry



 Has there been any changes - or is it a bug I must report ?
 Regards
 Lene Fischer



 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Python Imaging Library for Mac and Python 2.7

2013-11-03 Thread Larry Shaffer
Hello Manuel,

Kyngchaos.com site has a PIL installer:
http://www.kyngchaos.com/software/python

Regards,

Larry


On Sun, Nov 3, 2013 at 12:00 PM, Manuel Spínola mspinol...@gmail.comwrote:

 Dear list members,

 I am using QGIS 2.0.1 Dufour in Mac OSX Mavericks and the Lecos plug-in
 ask me for PIL (Python Imaging Library). I tried to install de the source
 kit (http://effbot.org/downloads/Imaging-1.1.7.tar.gz) apparently the
 only available for Python 2.7, but I cannot install it.

 The last lines form my terminal:

 In file included from _imagingtk.c:19:

 */usr/local/include/tk.h:71:13: **fatal error: **'X11/Xlib.h' file not
 found*

 #   include X11/Xlib.h

 *^*

 1 error generated.

 error: command '/usr/bin/clang' failed with exit status 1

 MacBook-Pro-de-Manuel:Imaging-1.1.7 manuelspinola$


 How can I install PIL in my mac without use the source kit?


 Manuel
 --
 *Manuel Spínola, Ph.D.*
 Instituto Internacional en Conservación y Manejo de Vida Silvestre
 Universidad Nacional
 Apartado 1350-3000
 Heredia
 COSTA RICA
 mspin...@una.ac.cr
 mspinol...@gmail.com
 Teléfono: (506) 2277-3598
 Fax: (506) 2237-7036
 Personal website: Lobito de ríohttps://sites.google.com/site/lobitoderio/
 Institutional website: ICOMVIS http://www.icomvis.una.ac.cr/

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Display label only selected features in QGIS 2.0

2013-10-14 Thread Larry Shaffer
Hi,

On Mon, Oct 14, 2013 at 12:01 AM, chingchai humhong
chingcha...@gmail.comwrote:

 Hi QGIS User

 How to display label only selected features in QGIS 2.0


There is no current function of choosing to show labels (in a temporal
fashion) for the current selection. However, there are new tools in QGIS
2.0 to help show only the labels you want. Depending upon your desired
workflow, consider using 'Show Label' data defined option (under Vector
Layer Properties Dialog - Labels - Rendering section). You can map an
attribute field for your layer, or define an expression.

[Show Label data definition description]
  Expected input:bool [1=True|0=False]
  Valid input types:  string, int, double

If not using an expression, but instead mapping an attribute field, you can
then either edit the attribute table accordingly (e.g. create a selection
and update existing field values using the Attribute Table Editor), use the
Show/Hide Label tool, or toggle the check box in the Change Label
Properties dialog.

Manipulating the attribute table allows for different expressions to be
applied, while the Show/Hide Label allows you to interactively work with
the labels on the map canvas:

[Show/Hide Labels tool tip]
  Click or marquee on feature to show label
  Shift+click or marquee on label to hide it
  Acts on currently active editable layer

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


 thank you


 --
 Chingchai  Humhong (chingchai by famous)
 Regional Center of Geo-Informatics and
 Space Technology, Lower Northern Region
 Naresuan University Phitsanulok 65000
 Mobile: 08-4624-6278
 Blog: http://nu-gis.blogspot.com
 Website: http://www.map.nu.ac.th http://map.nu.ac.th/
 Website: http://www.cgistln.nu.ac.th http://www.cgistln.nu.ac.th/web/

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] configuring 2.1 server on MAC/OSX

2013-10-11 Thread Larry Shaffer
Hi Chris,

On Thu, Oct 10, 2013 at 4:14 PM, Chris Nicholas chrisgnicho...@att.netwrote:

 hi - wondering if anyone has actually gotten the 2.1 qgis_server stuff to
 work on MAC/OSX ...

 I've gotten it to work on Ubuntu like a champ, and oh-so-close on OSX ...

 I followed all the directions at:
 http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial

 nothing worked at first;  I tried to to unravel things using dtrace(1) to
 see what it was looking for, and for some reason, either hard-coded or by
 defaults, it looks for a lot of stuff  in /Users/larrys/ ...

 so, I put in a symlink from
 /Users/larrys/QGIS/nightly/QGIS_Apps/QGIS_2.1-dev.app -
 /Applications/QGIS_2.1-dev.app , and since it was apparently built in debug
 mode, the QGIS_LOG_FILE shows it actually rendering things to /private .


This is an oversight on my part with regards to a hard-coded path
(CMAKE_INSTALL_PREFIX, saved in qgisconf.h) established during the build
process. This is then referenced in qgis_map_serv.cpp and used if the
environment variable QGIS_PREFIX_PATH is not set [0].

For the nightly builds, in qgisconf.h, it is:
#define CMAKE_INSTALL_PREFIX
/Users/larrys/QGIS/nightly/QGIS_Apps/QGIS_2.1-dev.app/Contents/MacOS

since I (obviously) do not install the nightly to /Applications. Ideally,
Mac apps should be able to move about the filesystem and still function.
This is the only hard-coded path remaining, that I know of. So, the fix is
to set QGIS_PREFIX_PATH *before* qgis_mapserv.fcgi is spawned at Apache
launch. To do this I adjusted FastCgiConfig:

IfModule mod_fastcgi.c
  SetEnv QGIS_LOG_FILE /test-projects/qgis_wms_server.log
  FastCgiConfig -appConnTimeout 60 -idle-timeout 60 \
  -init-start-delay 1 -startDelay 5 -minProcesses 2 -maxClassProcesses 20 \
  -initial-env
QGIS_PREFIX_PATH=/Users/larrys/Applications/QGIS_2.1-dev.app/Contents/MacOS
\
  -initial-env
DYLD_FRAMEWORK_PATH=/Users/larrys/Applications/QGIS_2.1-dev.app/Contents/Frameworks
  ... more config ...
/IfModule

Couple of things to note about this config:

* Notice QGIS_LOG_FILE env var is set at the Apache level, not for, or
passed to, the FCGI process, where (for some reason) it doesn't work. QGIS
has to be a debug variant build for output to file.

* /Users/larrys/Applications/QGIS_2.1-dev.app is where my download of the
nightly resides - denoted even though the qgis_mapserv.fcgi binary is
inside it. I now know of some Mac-specific C++ code to find the absolute
path to a launched binary (from inside itself) and can probably nix the
need for setting QGIS_PREFIX_PATH in the future.

* DYLD_FRAMEWORK_PATH is set because I have several versions/installs of Qt
on my Mac. When dynamically loading Qt frameworks, you will often see
warnings or errors about multiple copies being found and maybe get a crash.
Use DYLD_FRAMEWORK_PATH to append the app's embedded Qt frameworks' path.
These errors can also occur when the PyQt4 modules used by QGIS and QGIS
itself differ in found Qt frameworks as well. ANY Qt framework in a
standard location, beyond that found in the app, will cause the issue.

* DYLD_FRAMEWORK_PATH is still necessary if you are using the
qgis_mapserv.fcgi binary directly from the build directory of a locally
built QGIS source, and you have multiple Qt installs, as noted above.

These fixes should not be needed with a standard Kyngchaos.com QGIS.app
install into /Applications, unless maybe you move the .app bundle, or have
extra Qt installs.

Also of note, you should not move the qgis_mapserv.fcgi binary out of the
QGIS.app bundle, as it links to many resources/libs from that location. You
can set its directory up in Apache, a la the Server Tutorial [1], or
symlink it to a fcgi-bin and set 'Options FollowSymLinks' for the fcgi-bin
directory. However, you *can* relocate/copy the qgis_mapserv.fcgi binary
from the build/output/bin directory, as it is not bundle-specific, just
be sure to adjust the env vars to non-bundle resources accordingly, if
necessary.

Finally, after getting Server to work from the relocated nightly bundle, I
noticed there seems to be a rendering issue with latest master, where
layers would randomly not show up. It is unrelated to this issue because it
happens on other installs as well.

Please let me know if your test results differ. I will be adding these
notes to the nightly download site, its README, and probably the Server
tutorial page.

[0]
https://github.com/qgis/QGIS/blob/master/src/mapserver/qgis_map_serv.cpp#L163
[1] http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


 rc/core/qgsmaprenderer.cpp: 625: (render) Done rendering map layers
 rc/core/qgsvectorlayer.cpp: 328: (drawLabels) Starting draw of labels:
 world_shapes20130924190607981
 rc/core/qgsmaprenderer.cpp: 692: (render) Rendering completed in
 (seconds): 0.021
 rc/mapserver/qgswmsserver.cpp: 689: (getMap) clearing filters
 rc/mapserver/qgis_map_serv.cpp: 554: (main

Re: [Qgis-user] UI - Double clicking a layer to add it

2013-09-26 Thread Larry Shaffer
Hi Jonathan,

On Thu, Sep 26, 2013 at 10:19 AM, Jonathan Moules 
jonathanmou...@warwickshire.gov.uk wrote:

 Hi List,
   I've noted some inconsistency in what happens when you double click a
 layer in an effort to add it to QGIS.

 One of several possible things happens:
 Add Vector Layer:
  - Double clicking a file closes the Open an OGR supported Vector Layer
 dialog but keeps open the Add vector layer dialog.

 Add Raster Layer:
  - Double clicking a raster closes the dialog and adds the file
 immediately to QGIS.

 Add Oracle / SpatiaLite tables (maybe the other databases too?)
  - Double clicking a table brings up a Query Builder for that table.

 Add WMS and Add WCS
  - Double clicking does nothing.

 Add WFS
  - Opens up Expression string builder dialog

 To me at least this is very wrong. They should all behave in the exact
 same way when I double click something. Personally I'd say the raster way
 is the correct one - that's how all other applications work when I double
 click something to add, be it a GIS or a text editor or anything.

 I appreciate why opening query/expression builders may be useful, but I
 don't think it should be the default action on double-clicking.


 Does anyone else have an opinion on this?


Yes, this is inconsistent and needs addressed. Please create a new bug
issue ticket [0], if one does not already exist.

Thank you for reporting on this.

[0] http://hub.qgis.org/wiki/quantum-gis/Bugreports

Regards,

Larry


 Cheers,
 Jonathan

 This transmission is intended for the named addressee(s) only and may
 contain sensitive or protectively marked material up to RESTRICTED and
 should be handled accordingly. Unless you are the named addressee (or
 authorised to receive it for the addressee) you may not copy or use it, or
 disclose it to anyone else. If you have received this transmission in error
 please notify the sender immediately. All email traffic sent to or from us,
 including without limitation all GCSX traffic, may be subject to recording
 and/or monitoring in accordance with relevant legislation.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 2.0 - OSX - georeferencing plugin missing ?

2013-09-23 Thread Larry Shaffer
Hello Teo,

On Mon, Sep 23, 2013 at 9:52 AM, Teodoro Laino teodoro.la...@gmail.comwrote:

 well.. that's precisely my problem..
 In the OSX build, in the Plugins - manage and install plugins, there is
 no Georeferences GDAL

 ---8--snip

 That's the reason I'm thinking that something must be screwed up with the
 OSX build distribution. Or, again, something terribly obvious that I'm
 missing..


I just double-checked both 10.7-8 and 10.6 nightly builds and there are no
issues with the 2.1 apps, with regards to the Georeferencer (that I can
tell).

However, I did notice that there was still a 2.0.1 app in the 10.6 download
archive folder (10.7-8 archive is fine). This happened during the switch
from 1.9 to 2.0.1 to 2.1.0, and I forgot to prune it. If you have installed
the 2.0.1 app, please remove it, as it is NOT a release distribution.

It is unclear what Mac OS X version you are using. If you are running
10.7-8, download the 2.0.1 release installer from kyngchaos.com. Then
please make sure to remove ANY accidental 2.0.1 nightly installed, as the
Kyngchaos.com installer will try to install into that application bundle
instead of /Applications (this is also noted in the README).

If you are using Mac OS X 10.6, and are not needing to test the nightly
builds, please wait until kyngchaos.com produces a 10.6 installer for the
2.0.1 branch. The nightlies are not 2.0.1 releases, but builds of the 2.1.0
master branch.

If the Georeferencer plugin still does not show up, then it is probably an
issue with your supporting frameworks, which would need upgraded.

Please report on success or failure, either way. Thanks.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


 Teo


 On Sep 23, 2013, at 5:33 PM, skampus stefano.cam...@regione.piemonte.it
 wrote:

  in Plugins--manage and install plugins, check Georeferencer GDAL
 
  s.
 
 
 
  --
  View this message in context:
 http://osgeo-org.1560.x6.nabble.com/QGIS-2-0-OSX-georeferencing-plugin-missing-tp5079279p5079298.html
  Sent from the Quantum GIS - User mailing list archive at Nabble.com.
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Qgis 2.0 Mac

2013-09-20 Thread Larry Shaffer
Hi,

On Fri, Sep 20, 2013 at 4:46 AM, Julian Bogdani julian.bogd...@unibo.itwrote:

 Hi,
 The nightly build version is already available here:
 http://qgis.dakotacarto.com/
 And it works fine on Snow Leopard!


Please note that the nightly build at this time is not a full install (at
maybe ~90% functionality), relative to what William Kyngesburye is
packaging for the 2.0 release. In the meantime, I recommend waiting until
William finishes his Snow Leopard work before migrating any = 1.8 projects
to 2.0+.

The following are not included in the nightly:

* Globe plugin (still has crashing issues on Mac)
* Third-party external programs to support Processing algorithms (e.g.
Saga, etc.)

Third-party external programs will eventually be supplied with the nightly,
but for now the user is required to install them from source, or via a
package manager.

Also very important to note, the nightly is not the 2.0.1 release branch.
It is the master branch, which is now being hacked on in various areas. I
highly suggest not relying upon the nightly for any type of production work.

Best regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota



  -
 Julian Bogdani
 jbogd...@gmail.com
 http://bradypus.net





 On 20 Sep 2013, at 12:39 , Jesús wrote:

 Any idea when we will have QGis 2.0 available for Snow Leopard?
 I'm waiting anxiously...

 Thanks in advance.


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user



 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Can't seem to import qgis.core in OSX 10.8

2013-09-07 Thread Larry Shaffer
Hi Nick,

Welcome to using QGIS.

In Terminal, you'll want to set the following:

  export PYTHONPATH=/Applications/QGIS.app/Contents/Resources/python

Or, when importing from within a Python module, or at Python console's
prompt in Terminal, you can append that path to the Python executable's
sys.path:

  import sys
  sys.path.append('/Applications/QGIS.app/Contents/Resources/python')

Alternatively, and more to the benefit of understanding PyQGIS, you can use
the Python Console within a running QGIS app, which uses QGIS's embedded
Python executable.

Here are the current docs for the upcoming 2.0 release, though much of it
works fine for 1.8:
http://docs.qgis.org/2.0/html/en/docs/pyqgis_developer_cookbook/

Regards,

Larry


On Sat, Sep 7, 2013 at 11:28 AM, Nick Eubank nickeub...@gmail.com wrote:

 Hi All,

 I'm very new to qgis (moving over from Arc), and I'm having trouble
 importing qgis 1.8.0.

 It seems I'm successfully setting the environment variable correctly to
 /Applications/QGIS.app/Contents/Resources/python (I can get it to echo
 back), and when I look in that folder I can see core.so, but I keep
 getting *ImportError:* 'No module named qgis.core'.

 Any suggestions?

 Thanks for helping the noob.

 Nick

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] CRS for new layers - Weekly 31

2013-08-11 Thread Larry Shaffer
Hi Lene,

On Sun, Aug 11, 2013 at 8:12 AM, Lene Fischer l...@life.ku.dk wrote:

  Hi

  In *SettingsOptionsCRS  *I´ve set up a *Use default CRS displayed
 below,* and choosen *EPSG:25832 - ETRS89 / UTM zone 32N*

  But when I create a new layer by using *LayerNew New shapefile layer,*
 CRS for the new layer is set to EPSG:4326 - WGS 84

  I´m pretty sure this is an error.


Indeed. It does it if creating a new Spatialite layer as well. Please make
a new issue ticket.

Thanks,

Larry



  Regards
 Lene Fischer






 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Label using $area and decimals

2013-08-07 Thread Larry Shaffer
Hi Lene,

On Wed, Aug 7, 2013 at 9:09 PM, Lene Fischer l...@life.ku.dk wrote:

   Hello
 In Master I´m trying to set a label with the function $area. This works
 fine.
 But I´m trying to use the formatting for numbers with only 1 decimal -  no
 succes.


Hmm. I just tried setting the expression to $area and using the 'Formatted
numbers' option for the layer: worked. I also used just an expression:

 format_number( $area, 3)


and that worked too, even where the area result was a whole integer, i.e.
label was 12.000. I tested with precision of '1' and both worked fine. Can
you share the data, even if it is just a file containing the individual
feature that is not labeling properly?


 It works fine if I use a coloumn containing the area.

But this is not a solution because the $area is not dynamic in the coloum
 of the attribut table.

  Secondly - how do I activate the functions in the Labeltoolbar -ex Move
 or Show/Hide


New documentation for labeling canvas map tools is forthcoming. For now,
you can reference:
http://gis.stackexchange.com/questions/67408

Regards,

Larry


 Regards
 Lene Fischer


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problems installing nightly build on Mac OS X 10.6.8 (Snow Leopard)

2013-08-06 Thread Larry Shaffer
Hi Julian and Sergio,

On Tue, Aug 6, 2013 at 9:04 AM, Sergio Zárate aca...@gmail.com wrote:

 Hi all,

 had same problem today in Mountain Lion. Seems to be a GDAL issue. Will
 try to update GDAL an see if it solves the problem.


If the dialog, noted by Julian, pops up again, please click the Show
Details button and send the results to me directly (or link to a cleaned
version here). Contacting me directly is the best means for addressing an
issue with the nightly build(s), since I manage them and the Macs they are
built on.

I will test the builds on the machines today and see if I can reproduce the
issue.


 I have noticed that OS X Qgis has been somewhat orphaned. In the past few
 months I have asked for solutions to problems but did not get any answers
 (had issues with Print Composer not displaying/printing GRASS rasters in
 Master).


Sergio, QGIS for OS X is not at all orphaned. In fact, it has had lots of
active development for the platform in the past 1.5 years. It just so
happens that the current development cycle, 1.8 - 2.0, is taking longer
than previous version updates.

Concerning your reported issues, it may be that your issues are difficult
to fix, or maybe not even related to the Mac build. If you note which
issues you are referring to, I can give you an opinion on maybe why they
have not been addressed yet.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota



 Looking forward to the release of Master.
  Regards

 Sergio Zarate

 2013/8/6 qgis-user-requ...@lists.osgeo.org

 Send Qgis-user mailing list submissions to
 qgis-user@lists.osgeo.org

 To subscribe or unsubscribe via the World Wide Web, visit
 http://lists.osgeo.org/mailman/listinfo/qgis-user
 or, via email, send a message with subject or body 'help' to
 qgis-user-requ...@lists.osgeo.org

 You can reach the person managing the list at
 qgis-user-ow...@lists.osgeo.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Qgis-user digest...


 Today's Topics:

1. Problems installing nightly build on Mac OS X 10.6.8  (Snow
   Leopard) (Julian Bogdani)


 --

 Message: 1
 Date: Tue, 6 Aug 2013 16:28:18 +0200
 From: Julian Bogdani jbogd...@gmail.com
 To: qgis-user qgis-user@lists.osgeo.org
 Subject: [Qgis-user] Problems installing nightly build on Mac OS X
 10.6.8  (Snow Leopard)
 Message-ID: 6fbb34af-c130-4912-b343-c1acfc988...@gmail.com
 Content-Type: text/plain; charset=us-ascii

 Hello all,
 I'm having problems getting QGIS nightly build run on MacOS X 10.6.8
 (Snow Leopard).
 I downloaded the ZIP file qgis-mac-nightly_snoleo.zip from
 http://qgis.dakotacarto.com/ and installed it in the Application folder,
 but when I try to run it I get the following error: QGIS_2.0-dev_SnoLeo
 cannot be opened because of a problem. Check with the developer to make
 sure QGIS_2.0-dev_SnoLeo works with this version of Mac OS X.
 I had a old version of the 2.0 branch correctly running, but I erased it
 to install the most recent development version.
 I installed, removed and reinstalled everything10 days ago and today but
 I'm having the same problem.
 Is this a known issue? How can i get a working of the development build?

 Thank you


 -
 Julian Bogdani
 jbogd...@gmail.com
 http://bradypus.net




 -- next part --
 A non-text attachment was scrubbed...
 Name: Screen shot 2013-08-06 at 16.16.09 .png
 Type: image/png
 Size: 49128 bytes
 Desc: not available
 URL: 
 http://lists.osgeo.org/pipermail/qgis-user/attachments/20130806/045c373c/attachment.png
 

 --

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


 End of Qgis-user Digest, Vol 90, Issue 13
 *




 --
 Dr. Sergio Zárate Pedroche
 José María Arroyo 228
 Col. 22 de octubre
 Morelia, Michoacán
 C.P. 58341
 México
 Teléfono: (443) 352-5307
 Celular: (443)  438-6212

 ...
 http://independent.academia.edu/SergioZ%C3%A1ratePedroche

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problems installing nightly build on Mac OS X 10.6.8 (Snow Leopard)

2013-08-06 Thread Larry Shaffer
Hi,

I had no issues doing a fresh install of the latest nightly on Mac 10.7.5.
QGIS had never been installed on that Mac before. Make sure you have the
latest Kyngchaos.com frameworks installed (minimum for QGIS):

GSL_Framework-1.15-2.dmg
GDAL_Complete-1.10_2013-07-19.dmg

If you want to use the GRASS tools inside QGIS (still uses
GDAL_Complete-1.9):

GDAL_Complete-1.9_2013-03-01.dmg
FreeType_Framework-2.4.10-1.dmg
cairo_Framework-1.12.2-1.dmg
PIL-1.1.7-4.dmg
GRASS-6.4.2-5-Snow.dmg

GDAL_Complete-1.9 and 1.10 can be installed side-by-side without issue.

If you still get an error please post details.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


On Tue, Aug 6, 2013 at 12:30 PM, Larry Shaffer lar...@dakotacarto.comwrote:

 Hi Julian and Sergio,

 On Tue, Aug 6, 2013 at 9:04 AM, Sergio Zárate aca...@gmail.com wrote:

 Hi all,

 had same problem today in Mountain Lion. Seems to be a GDAL issue. Will
 try to update GDAL an see if it solves the problem.


 If the dialog, noted by Julian, pops up again, please click the Show
 Details button and send the results to me directly (or link to a cleaned
 version here). Contacting me directly is the best means for addressing an
 issue with the nightly build(s), since I manage them and the Macs they are
 built on.

 I will test the builds on the machines today and see if I can reproduce
 the issue.


 I have noticed that OS X Qgis has been somewhat orphaned. In the past few
 months I have asked for solutions to problems but did not get any answers
 (had issues with Print Composer not displaying/printing GRASS rasters in
 Master).


 Sergio, QGIS for OS X is not at all orphaned. In fact, it has had lots of
 active development for the platform in the past 1.5 years. It just so
 happens that the current development cycle, 1.8 - 2.0, is taking longer
 than previous version updates.

 Concerning your reported issues, it may be that your issues are difficult
 to fix, or maybe not even related to the Mac build. If you note which
 issues you are referring to, I can give you an opinion on maybe why they
 have not been addressed yet.

 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota



 Looking forward to the release of Master.
  Regards

 Sergio Zarate

 2013/8/6 qgis-user-requ...@lists.osgeo.org

 Send Qgis-user mailing list submissions to
 qgis-user@lists.osgeo.org

 To subscribe or unsubscribe via the World Wide Web, visit
 http://lists.osgeo.org/mailman/listinfo/qgis-user
 or, via email, send a message with subject or body 'help' to
 qgis-user-requ...@lists.osgeo.org

 You can reach the person managing the list at
 qgis-user-ow...@lists.osgeo.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Qgis-user digest...


 Today's Topics:

1. Problems installing nightly build on Mac OS X 10.6.8  (Snow
   Leopard) (Julian Bogdani)


 --

 Message: 1
 Date: Tue, 6 Aug 2013 16:28:18 +0200
 From: Julian Bogdani jbogd...@gmail.com
 To: qgis-user qgis-user@lists.osgeo.org
 Subject: [Qgis-user] Problems installing nightly build on Mac OS X
 10.6.8  (Snow Leopard)
 Message-ID: 6fbb34af-c130-4912-b343-c1acfc988...@gmail.com
 Content-Type: text/plain; charset=us-ascii

 Hello all,
 I'm having problems getting QGIS nightly build run on MacOS X 10.6.8
 (Snow Leopard).
 I downloaded the ZIP file qgis-mac-nightly_snoleo.zip from
 http://qgis.dakotacarto.com/ and installed it in the Application
 folder, but when I try to run it I get the following error:
 QGIS_2.0-dev_SnoLeo cannot be opened because of a problem. Check with the
 developer to make sure QGIS_2.0-dev_SnoLeo works with this version of Mac
 OS X.
 I had a old version of the 2.0 branch correctly running, but I erased it
 to install the most recent development version.
 I installed, removed and reinstalled everything10 days ago and today but
 I'm having the same problem.
 Is this a known issue? How can i get a working of the development build?

 Thank you


 -
 Julian Bogdani
 jbogd...@gmail.com
 http://bradypus.net




 -- next part --
 A non-text attachment was scrubbed...
 Name: Screen shot 2013-08-06 at 16.16.09 .png
 Type: image/png
 Size: 49128 bytes
 Desc: not available
 URL: 
 http://lists.osgeo.org/pipermail/qgis-user/attachments/20130806/045c373c/attachment.png
 

 --

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


 End of Qgis-user Digest, Vol 90, Issue 13
 *




 --
 Dr. Sergio Zárate Pedroche
 José María Arroyo 228
 Col. 22 de octubre
 Morelia, Michoacán
 C.P. 58341
 México
 Teléfono: (443) 352-5307
 Celular: (443)  438-6212

Re: [Qgis-user] Label missing in Weekly

2013-08-01 Thread Larry Shaffer
Hi Lene,

On Thu, Aug 1, 2013 at 2:25 PM, Lene Fischer l...@life.ku.dk wrote:

 Hi Goyo
 The geometries is OK.
 I have a combined label Ex.
 Areatype || '\n' ||  $Area   || ' m2'
 Now I found that if one field is empty (Even if there is NULL in the
 field), then the entire label will not be displayed.


When the expression-based label text was introduced, NULL values supposedly
where just converted to empty strings [0], i.e. if Areatype was NULL, one
would expect at least 'm2' to be present in the label.

Try enclosing your field name Areatype in double quotes. Also, try without
the $Area function, but still with the || concatenation. If the label still
does not contain any text, then it is probably a bug in how QgsExpression
handles NULL values from the data provider. If so, please create an issue
ticket [1]. Include a test project file, and try to list reproducible
steps, if you can.

[0]
http://osgeo-org.1560.x6.nabble.com/Expression-based-labeling-tp4100735p4100736.html
[1] http://hub.qgis.org/projects/quantum-gis/issues

Regards,

Larry


 Regards
 Lene



 
 Fra: Goyo [goyod...@gmail.com]
 Sendt: 1. august 2013 20:40
 Til: Lene Fischer
 Cc: qgis-user@lists.osgeo.org
 Emne: Re: [Qgis-user] Label missing in Weekly

 2013/8/1 Lene Fischer l...@life.ku.dk:
  Hello
  I´m using the new labelfunction - it is great!! - but som of the labels
 are
  missing. I have a small project with only 9 polygons, but only 7 labels
 is
  visible.
  I´ve tried:
 
  Settings to View all labels in all layers
  change attributefield and size
 
  Same result. Any suggestions?
  Regards
  Lene Fischer

 You might have invalid geometries. They are not labelled IIRC.

 Goyo


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Download Weekly to MAC

2013-07-29 Thread Larry Shaffer
Hi Lene,

On Mon, Jul 29, 2013 at 12:30 AM, Lene Fischer l...@life.ku.dk wrote:

  Hi
 I´m starting a 3 week summercourse next monday. The students are going to
 install the weekly build, but I´m not sure about the MAC version.

  Can anyone help.


There is no weekly build of the Mac version; however, there are nightly
builds of the current master branch [0].

The link noted in that section resolves to a single page website, where I
host two nightly builds: one for 10.7-8 and another for 10.6. Both require
the same Kyngchaos.com supporting framework installs as for the stable
release. You can run both the nightly build and the latest stable version
(1.8) at the same time, and they will not interfere with each other.

Please note, there are still bugs in the master branch, though most should
be squashed within a couple of weeks, in preparation for 2.0 version
release. If you find any bugs first search the issue tracker [1], if you
can't find a related issue, post to the developer mailing list [2] to see
if it is a known issue. Finally, please promptly create a new issue for any
unknown bugs so that it can be squashed ASAP.

[0]
http://hub.qgis.org/projects/quantum-gis/wiki/Download#421-Nightly-Builds
[1] http://hub.qgis.org/projects/quantum-gis/issues
[2] http://lists.osgeo.org/mailman/listinfo/qgis-developer

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


 Regards
 Lene Fischer


 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Mac QGIS nightly builds updated

2013-07-11 Thread Larry Shaffer
Hi,

Just a quick note about recent updates for both 10.6 and 10.7-8 Mac nightly
builds [0]:

* Note: Both nightlies now using SpatiaLite 4.0.0
* Kyngchaos.com GDAL Complete-1.10 (2013-05-01, must update your local
install) [1]
* Qt 4.8.5 / sip 4.14.7 / PyQt4 4.10.2 / QScintilla2 2.7.2 (bundled)
* MySQL Client 5.6.12 Qt plugin (for core eVis plugin support, bundled)
* libspatialindex 1.8.1 (bundled)
* 10.6-only: Qwt 6.0.2 (bundled)

Both builds are now basically using the same supporting libraries (Postgres
client is still 9.1 on 10.6).

If you have the time, please test nightly builds for QGIS 2.0 (they will
not mess up an existing 1.8 install). If you find any bugs, please search
for open issues first [2]. If no similar issue exists, please post to the
developers list or make a new issue, so developers can try to incorporate
the fix before 2.0 is released. Some developers also regularly hang out on
#qgis channel at irc.freenode.net

[0] http://qgis.dakotacarto.com
[1] http://www.kyngchaos.com/software/frameworks
[2] http://hub.qgis.org/projects/quantum-gis/issues

Thanks,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

'dakcarto' on #qgis channel at irc.freenode.net
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user