Re: [Qgis-developer] Raster colours

2012-08-01 Thread jjg
Hi all,

I'm the maintainer of cpt-city, mentioned above.  Perhaps of interest is the
API for the full package of gradients.  I quote API because it is really
just an XML file which lists the current version and names of the package
files -- the idea being that software which want to keep an up-to-date copy
of the archive can check this file and download the latest version if it is
newer than the version it has already.  Info at the bottom of the page 
http://soliton.vm.bytemark.co.uk/pub/cpt-city/pkg/ here .



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992348.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster colours

2012-08-01 Thread Paolo Cavallini
Il 01/08/2012 11:30, jjg ha scritto:
 I'm the maintainer of cpt-city, mentioned above.  Perhaps of interest is the
 API for the full package of gradients.  I quote API because it is really
 just an XML file which lists the current version and names of the package
 files -- the idea being that software which want to keep an up-to-date copy
 of the archive can check this file and download the latest version if it is
 newer than the version it has already.  Info at the bottom of the page 
 http://soliton.vm.bytemark.co.uk/pub/cpt-city/pkg/ here .
Hi.
Thanks for stepping in. This seems the way to go. As for the licences,
are we OK including all your sources in QGIS?
All the best.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


Re: [Qgis-developer] mmqgis error?

2012-08-01 Thread Paolo Cavallini
Il 31/07/2012 23:11, Salvatore Larosa ha scritto:
 Hi Paolo, here works fine with r324!

thanks, it was a leftover from previous versions (mmqgis dir, with pyc
files).
sorry for the noise.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


Re: [Qgis-developer] Raster colours

2012-08-01 Thread jjg
Hi Paolo,

 Thanks for stepping in. This seems the way to go. As for 
 the licences,  are we OK including all your sources in QGIS? 

Any of *my* sources, yes (GPL or public domain), but the gradients 
on cpt-city are under various licences (as listed in the files
COPYING.xml). Many of these licences do not permit 3rd party
redistribution or contain conditions which would be incompatible 
with GPL etc.  One could select a GPL compatible subset, but it
would miss some of the best ones and take quite a bit of work
(volunteers invited!)

This is why I have implemented the user download-friendly
API, so that users can avoid the hassle of downloading and
installing the gradients if they have a bit of software 
support, without software developers redistributing the
gradients themselves (something similar was done with 
the MS Core Fonts)

Incidentally, if you were thinking of adding support for 
reading SVG gradients, then I have some C code which will
do that 

  http://soliton.vm.bytemark.co.uk/pub/jjg/en/code/cptutils.html

(see src/common/svg*) all GPLv2, or you can have a copy under
any reasonable free licence if you prefer

Cheers

Jim



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992375.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster colours

2012-08-01 Thread Paolo Cavallini
Il 01/08/2012 13:27, jjg ha scritto:
 This is why I have implemented the user download-friendly API, so
 that users can avoid the hassle of downloading and installing the
 gradients if they have a bit of software support, without software
 developers redistributing the gradients themselves (something similar
 was done with the MS Core Fonts)
even more interesting! would you be willing to submit a patch/pull
request for main qgis?
thanks a lot.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


[Qgis-developer] Software developer mainly for QGIS

2012-08-01 Thread Saber Razmjooei
Anyone who might be interested:

http://www.lutraconsulting.co.uk/employment

Cheers
Saber






--
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately 
by e-mail if you have received this e-mail by mistake and delete this e-mail 
from your system. If you are not the intended recipient you are notified 
that disclosing, copying, distributing or taking any action in reliance on the 
contents of this information is strictly prohibited.

Whilst reasonable care has been taken to avoid virus transmission, no 
responsibility for viruses is taken and it is your responsibility to carry out 
such checks as you feel appropriate.

Saber Razmjooei and Peter Wells trading as Lutra Consulting.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster colours

2012-08-01 Thread jjg

Paolo Cavallini wrote
 
 even more interesting! would you be willing to submit a patch/pull
 request for main qgis?
 

I'm afraid I couldn't commit to that at the moment as I have so much else to
do, but here is an outline: Assume that $user is a user's local data
repostory
(~/.qgis on unix or whatever)

- have a file $user/cpt-city.urls containing a list of location of the
cpt-city pkg/ directory
- have a file $user/cpt-city.version containing the installed $version1
- periodically (in the background on program startup, or via user cronjob)
  - read the first url, $url1, from the urls file 
  - try to fetch $url1/package.xml
  - if sucessful 
   extract the $url2 from package.xml, if it is different to $url1, push
it into  $user/cpt-city.urls
   extract the $version2 from package.xml
   if $version2  $version1
  download and install $url2/cpt-city-svg-$version2.zip
  update $user/cpt-city.version with $version2
else try with the next url from the urls file, ...

Here the idea is that if/when the site moves, I can inform users via the
package.xml
file without intervention.

The package is updated irregularly (when contributions arrive), but
typically once
a month.






--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992393.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Migration of SEXTANTE repository

2012-08-01 Thread Victor Olaya
Hi all,

We have finally decided to move the SEXTANTE repo (the QGIS part of
it) to the QGIS repository. The Java part will stay in the googlecode
SVN as it is right now.

The repo will be frozen Aug20th, so please commit your changes before
that date. Once the code is migrated, we will update links in the
SEXTANTE website and the site at hub.qgis, so you know how to update
your copies

Thanks for your understanding, and we all hope this will boost the
development of SEXTANTE and make it easier for both QGIS users and
developers to work with SEXTANTE.

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


Re: [Qgis-developer] Raster colours

2012-08-01 Thread Paolo Cavallini
Il 01/08/2012 14:12, jjg ha scritto:

 I'm afraid I couldn't commit to that at the moment as I have so much else to
 do, but here is an outline: Assume that $user is a user's local data
 repostory

ok, thanks. Maybe this can be done while rearranging the color ramps
(Etienne, you there?) or more generally the symbology (arun, interested?).
anyway, a good solution to a long standing QGIS limitation is within
sight now, great.
All the best.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


Re: [Qgis-developer] Raster colours

2012-08-01 Thread Paolo Cavallini
Il 01/08/2012 15:42, Etienne Tourigny ha scritto:
 I have a doubt regarding licences though - it would not be ok for use
 to supply the files, but it would be OK to write software to fetch the
 data automatically?
It should be: this has been for years the solution adopted by Debian,
for MS fonts, flash plugin, etc.
Of course this depends on the licence of data, so an advice from a
lawyer (FSF?) would be preferable.
All the best, and thanks.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


Re: [Qgis-developer] Raster colours

2012-08-01 Thread jjg

Etienne Tourigny-3 wrote
 
 I have a doubt regarding licences though - it would not be ok for use
 to supply the files, but it would be OK to write software to fetch the
 data automatically?
 

I believe this is correct.  I accept contribution to the site on the
explicit
condition that they be free to use, i.e., that anyone can download and
use them in their own work, possibly with attribution etc.

I try my hardest to get people to specify a licence, but sometimes they
are impossible to contact, and sometimes they just have a text like this:

  http://soliton.vm.bytemark.co.uk/pub/cpt-city/es/copying.html

(this particularly true on deviantArt) Rather than exclude the gradients I 
just post the licence that they have specified.


Etienne Tourigny-3 wrote
 
 Also, I was wondering if you would mind that the use of this automatic
 downloading in QGis could impose a burden on your site... could we
 host a mirror copy on qgis.org, or would that infringe on the
 licences?
 

If a fetch when updated script as posted earlier is used, then there
will not be a problem -- the package.xml file is very small (for the 
checks) and the zipfiles are a couple of MB, I can handle a few hundred
downloads before I reach bandwidth limits.

Formally, I think that mirroring these files would be 3rd party 
redistribution, so would be suspect.


Etienne Tourigny-3 wrote
 
 Attached is a screenshot of the interface I made to cpt-city
 gradients. There are some things to improve, but it's functional.
 

That's very nice.  Let me know if there is anything I can do to the
packages that would make this easier (eg, metadata in directories
etc) and I will see what I can do

Jim




--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992434.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster colours

2012-08-01 Thread Etienne Tourigny
OK will merge, unless someone dissagrees today.

For the meantime, integration of this work with Arun's will be
identical to other color ramps. It is based on the ColorBrewer ramps -
the cpt-city color ramp dialog creates a new color ramp, after which
it is available in the Style Manager.

It could be better integrated with Arun's work by managing the
available color ramps, instead of the saved color ramps.

Etienne

On Wed, Aug 1, 2012 at 10:56 AM, Nathan Woodrow madman...@gmail.com wrote:
 +1 to merge it.  I would like to see how we can integrate it with the
 work Arun is doing.

 - Nathan

 On Wed, Aug 1, 2012 at 11:48 PM, Etienne Tourigny
 etourigny@gmail.com wrote:
 On Wed, Aug 1, 2012 at 10:30 AM, Paolo Cavallini cavall...@faunalia.it 
 wrote:
 Il 01/08/2012 14:12, jjg ha scritto:

 I'm afraid I couldn't commit to that at the moment as I have so much else 
 to
 do, but here is an outline: Assume that $user is a user's local data
 repostory

 ok, thanks. Maybe this can be done while rearranging the color ramps
 (Etienne, you there?) or more generally the symbology (arun, interested?).
 anyway, a good solution to a long standing QGIS limitation is within
 sight now, great.
 All the best.

 Like I said in my other email - this is a pretty close reality.
 Should I merge my branch to master now, or let some interested parties
 check it out from my branch?

 https://github.com/etiennesky/Quantum-GIS/tree/coloramp

 There are some kinks to work out - but mostly needs feedback from others.

 Main points to improve

 1) downloading of cpt-city archive, ideally automatically uwing
 cpt-city's maintainer's suggestion (what's your name BTW?)
 2) better organisation of the ColorRamp classes
 3) perhaps a selection of palettes for QGis
 4) organisation of gradients - this needs the work of Arun

 Cheers
 Etienne


 --
 Paolo Cavallini - Faunalia
 www.faunalia.eu
 Full contact details at www.faunalia.eu/pc
 Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


Re: [Qgis-developer] Raster colours

2012-08-01 Thread Etienne Tourigny
Hi Jim,

On Wed, Aug 1, 2012 at 11:02 AM, jjg j.j.gr...@gmx.fr wrote:

 Etienne Tourigny-3 wrote

 I have a doubt regarding licences though - it would not be ok for use
 to supply the files, but it would be OK to write software to fetch the
 data automatically?


 I believe this is correct.  I accept contribution to the site on the
 explicit
 condition that they be free to use, i.e., that anyone can download and
 use them in their own work, possibly with attribution etc.

ok this is great


 I try my hardest to get people to specify a licence, but sometimes they
 are impossible to contact, and sometimes they just have a text like this:

   http://soliton.vm.bytemark.co.uk/pub/cpt-city/es/copying.html

 (this particularly true on deviantArt) Rather than exclude the gradients I
 just post the licence that they have specified.


 Etienne Tourigny-3 wrote

 Also, I was wondering if you would mind that the use of this automatic
 downloading in QGis could impose a burden on your site... could we
 host a mirror copy on qgis.org, or would that infringe on the
 licences?


 If a fetch when updated script as posted earlier is used, then there
 will not be a problem -- the package.xml file is very small (for the
 checks) and the zipfiles are a couple of MB, I can handle a few hundred
 downloads before I reach bandwidth limits.

Yes your .xml file is indeed small, so having the app querying once a
week for updates would not be a burden.

However, you might find more than a hundred downloads of the zip file,
when the next main stable QGis version (2.0) is released, with this
feature.


 Formally, I think that mirroring these files would be 3rd party
 redistribution, so would be suspect.

I guess the .deb packages are only available from your site?



 Etienne Tourigny-3 wrote

 Attached is a screenshot of the interface I made to cpt-city
 gradients. There are some things to improve, but it's functional.


 That's very nice.  Let me know if there is anything I can do to the
 packages that would make this easier (eg, metadata in directories
 etc) and I will see what I can do

In fact - I found that things that were missing:
1) a list of gradients and their variants (e.g. ColorBrewer)
2) names associated to the various directories/authors
3) metadata of your Selections.

 I have taken care of those points already: I read the folders and
search for files with similar endings to detect variants of the same
gradient. For the authors and selections I copied the information from
your main page and the collections pages.

But in the future it would be useful to others to have this
information in xml files. If you like I could send you the code, and
you could integrate it into your work - although it's c++ with QT. Or
I could generate an xml file and send it to you.

Etienne


 Jim




 --
 View this message in context: 
 http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992434.html
 Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [Qgis-user] Python Plugin utilising SOAP

2012-08-01 Thread James Stott
Thanks for the responses.

I will concentrate on telling the users they need it for now and let
them decide how best to manage that.

I am having problems with suds though. 

I point it to the wsdl and all I get back is an error as below:

RuntimeError: maximum recursion depth exceeded while pickling an object

May try one of the other libraries that are out there.


James Stott BSc (Hons) MSc | Senior Professional
Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN
T: 01225 445548 | M: -
http://www.npaconsult.co.uk/ 
-Original Message-
From: qgis-user-boun...@lists.osgeo.org
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Alexandre Badez
Sent: 31 July 2012 18:36
To: t...@wildintellect.com
Cc: qgis-u...@lists.osgeo.org; qgis-developer
Subject: Re: [Qgis-user] Python Plugin utilising SOAP

James,

I'm using suds in my plugin on windows 7 64bits.

The problem as you mention it, is how to include it in your plugin.
For my self I didn't bother because I made a setup.exe that install suds
and the plugin where they need to be.

I suppose you can copy it in your plugin dir and do something like:
from my_plugin import suds
suds.blabla

It should work.



On Tue, Jul 31, 2012 at 6:25 PM, Alex Mandel
tech_...@wildintellect.com wrote:
 James,

 This discussion would be better for the qgis-developer mailing list.

 To get started, are you talking about a C++ or a python plugin, and 
 what language is the Suds library in?

 Thanks,
 Alex


 On 07/31/2012 07:12 AM, James Stott wrote:
 I would like to write a plugin which retrieves data using web
services.

 It would appear I need to use SOAP to send and receive  requests. How

 would I go about setting up soap? I have OSGeo4W installed on Windows

 7
 64 bit.

 Could anyone advise me on what the best method to go about this would

 be? I am using OSGEO4W but I cannot find a SOAP library in the 
 package listing.

 I have found the Suds library which looks promising. How would I go 
 about making sure this would be usable in a plugin in QGIS on all 
 platforms - is there a way to include the suds library with my
plugin?

 James





 James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson 
 Associates | 30 Brock Street | Bath | BA1 2LN
 T: 01225 445548 | M: -
 http://www.npaconsult.co.uk/

 http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.as
 p

 http://www.npaconsult.co.uk/terms.asp
 This Electronic Transmission is intended only for the attention of
the addressee. It may contain privileged and confidential information.
If you are not the person for whom it is intended, you must not copy,
distribute or take any action in reliance on it. If you have received
this electronic transmission in error please notify us immediately by
telephone, delete the transmission and destroy any hard copies.
 Nicholas Pearson Associates has used all reasonable efforts to ensure
that this message and any attachments are free from viruses.
 Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel: 
 +44 (0) 01225 445548, Fax: +44 (0) 01225 312387, Website: 
 http://www.npaconsult.co.uk/ 
 ___
 Qgis-user mailing list
 qgis-u...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


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



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


[Qgis-developer] New Plugin - Edit Any Layer

2012-08-01 Thread Rob Nickerson
Hi All,

It seemed a little bit odd to me that QGIS is able to open many file types
but you can only edit a couple of them. Being new to the world of GIS and
therefore not understanding any of its history, this seemed as odd as
photoshop being able to open but not edit jpeg files!

In part of my work looking at adapting fTools / SEXTANTE to write to memory
layer / any ogr format, I have created a standalone plugin that converts
any vector layer to a memory layer (and therefore allows you to edit the
layer). This plugin is hosted at [1], if you like I will move it to a more
permanent location.

Notes:

* Filters for just vector layers (but could be further filtered to vector
layers that cannot be edited in their current format).
* No progress bar at the moment (at 1000's of features the plugin can take
a little while so will add a progress bar at a later date).

[1] http://ubuntuone.com/3Zl1ojo3ZMUJxMqj2kcZaX

Regards,
Rob
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] New Plugin - Edit Any Layer

2012-08-01 Thread Paolo Cavallini
Il 01/08/2012 17:39, Rob Nickerson ha scritto:

 In part of my work looking at adapting fTools / SEXTANTE to write to
 memory layer / any ogr format, I have created a standalone plugin that
 converts any vector layer to a memory layer (and therefore allows you
 to edit the layer). This plugin is hosted at [1], if you like I will
 move it to a more permanent location.
thanks for this. of course the right place for it is
http://plugins.qgis.org/
from there, everybody can install and check it.
looking forward to see it there.
all the best.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


Re: [Qgis-developer] Raster colours

2012-08-01 Thread jjg
Hi Etienne


Etienne Tourigny-3 wrote
 
 In fact - I found that things that were missing:
 1) a list of gradients and their variants (e.g. ColorBrewer)
 2) names associated to the various directories/authors
 3) metadata of your Selections.
 

1) the list of gradients is just the list of their file names, so no
problem there. Variants is problematic, since who is to say
what is a variant of what?  This is very subjective (and what
actually is the point of it?)

2) The author of each gradient can be found from COPYING.xml.
If you start from a path like a/b/c/d.svg then there will be 
one COPYING.xml file corresponding to it, and it is in one of

a/b/c/COPYING.xml
a/b/COPYING.xml
a/COPYING.xml

i.e, a COPYING.xml applies to that directory and all subdirectories.

I can see it might be useful to have a description for each 
subdirectory.  Say
- short name (same as directory name)
- long name (essentialy the text in the directory link on parent
directory)
- description (essentially the first sentence of the page text)
so 
seq
sequential
Sequential colour schemes designed by Cynthia Brewer
This info in a file called DESC.xml in the directory cpt-city/cb/seq/

I'm open to suggestions on this.

3) is a different matter altogether, some of these selections are updated 
every day (most popular downloads etc), so I suggest we do the above
first an learn the lesson before trying this ...

Jim



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992477.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster colours

2012-08-01 Thread jjg
Hi Etienne


Etienne Tourigny-3 wrote
 
 In fact - I found that things that were missing:
 1) a list of gradients and their variants (e.g. ColorBrewer)
 2) names associated to the various directories/authors
 3) metadata of your Selections.
 

1) the list of gradients is just the list of their file names, so no
problem there. Variants is problematic, since who is to say
what is a variant of what?  This is very subjective (and what
actually is the point of it?)

2) The author of each gradient can be found from COPYING.xml.
If you start from a path like a/b/c/d.svg then there will be 
one COPYING.xml file corresponding to it, and it is in one of

a/b/c/COPYING.xml
a/b/COPYING.xml
a/COPYING.xml

i.e, a COPYING.xml applies to that directory and all subdirectories.

I can see it might be useful to have a description for each 
subdirectory.  Say
- short name (same as directory name)
- long name (essentialy the text in the directory link on parent
directory)
- description (essentially the first sentence of the page text)
so 
seq
sequential
Sequential colour schemes designed by Cynthia Brewer
This info in a file called DESC.xml in the directory cpt-city/cb/seq/

I'm open to suggestions on this.

3) is a different matter altogether, some of these selections are updated 
every day (most popular downloads etc), so I suggest we do the above
first an learn the lesson before trying this ...

Jim



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992478.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] New Plugin - Edit Any Layer

2012-08-01 Thread John C. Tull
On Aug 1, 2012, at 8:42 AM, Paolo Cavallini cavall...@faunalia.it wrote:

 Il 01/08/2012 17:39, Rob Nickerson ha scritto:
 
 In part of my work looking at adapting fTools / SEXTANTE to write to
 memory layer / any ogr format, I have created a standalone plugin that
 converts any vector layer to a memory layer (and therefore allows you
 to edit the layer). This plugin is hosted at [1], if you like I will
 move it to a more permanent location.
 thanks for this. of course the right place for it is
 http://plugins.qgis.org/
 from there, everybody can install and check it.
 looking forward to see it there.
 all the best.

+1

Do you think you can host in through the qgis plugins repo referenced by Paolo?

Cheers,
John
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SVG-Icons instead of PNGs?

2012-08-01 Thread Larry Shaffer
Hi,

Well, after lots more testing and head-scratching, I came to realize
the QSvgIconEngine plugin was not being bundled with the Mac builds.
This was why SVG icons were being rendered but scaled like rasters.
This skewed my previous SVG icon Qt scaling test. Sorry for that. I've
included the plugin for Mac bundling [0].

This changes my previous results in two ways:

- I no longer see any issues with down- or up-scaling with any of the
test SVG icons on Mac.
- Robert's 24x24 SVG icons scale OK to 32x32. I have not tested the
scaling up to 48x48. Since it is a straight 200% I expect it will
render even better.

To test up-scaling, I have reverted mActionPanToSelected.svg back to
Robert's original 24x24 design [1]. Set the icon preference to 32x32
to test.

Since my testing on Mac was not up-scaling SVG icons before I did not
notice the issue with the Default theme's switched-out SVGs with
embedded rasters. They are now up-scaling very poorly to 32x32, where
such embedded rasters were originally PNGs at 24x24
(mActionPanToSelected and mActionRotateLabel).

Second Test Conclusions

- 48x48 base icon size would probably still be ideal as a single icon
set base size, since it could be rasterized at that size (or lower) if
PNGs are required for something. However, 24x24 base size may work
well when scaled and rasterized (further tests needed here).

- Embedding rasters in SVGs (for having Default theme available while
moving to an SVG-only theme) is not a good idea. The rasters up-scale
poorly. I suggest a clean move to a SVG-only set, if QSvgIconEngine is
to be leveraged to solve scaling problems for core icons. PNGs could
still be supported once the getThemeIcon() method is removed, since it
currently chooses the icon based upon file name and extension.


[0] 
https://github.com/qgis/Quantum-GIS/commit/24eb02a99022e31b740f902204727cf1f25973ca
[1] 
https://github.com/qgis/Quantum-GIS/commit/ba575794f8803c80f9defe59ba1a40020ebd2834

Regards,

Larry


On Tue, Jul 31, 2012 at 3:49 PM, Larry Shaffer lar...@dakotacarto.com wrote:
 On Tue, Jul 31, 2012 at 5:49 AM, Andreas Neumann a.neum...@carto.net wrote:
 I think it would be worth a try to use the SVG symbols directly - or at
 least offer the option to use them.

 Hi Andreas, Giovanni, Robert and anyone else interested,

 I have committed to master branch a preliminary test for SVG icon
 scaling based upon Robert's icons. Ideally it should be tested on as
 many platforms and devices as possible [0]. To test, please pull
 latest master branch and compile, or wait for the nightly to come out.


 Here's what I've done:

 - Several PNG icons were switched out with SVG counterparts to test Qt
 scaling on different platforms
 - Added SVG icons to Default theme that are comprised of the regular
 PNG embedded within
 - Added SVG icons to GIS theme, mostly @ 32x32 and one @ 48x48 (note:
 commit message is incorrect about 24x24)
 - Testing with the supplied GIS theme allows for contrasting against
 other similarly designed, preexisting PNG icons.

 GIS theme Icons to test (with document, or page, size and description noted):

 mActionPanToSelected.svg - @32x32 (Pan Map to Selection tool)
 mActionRotateLabel.svg - @32x32 (Advanced labeling Rotate Label tool)
 mActionSelectPolygon.svg - @32x32 (Select Feature by Polygon tool)
 mActionSplitFeatures.svg - @48x48 (Split Feature tool)


 To test:

 1) Set your icon theme to Default. View whether each test icon looks
 as it did before. This will verify whether SVG with embedded PNGs of
 the original icons works with your version of Qt. (QIcon notes Qt 4.2
 or  icon engine supports SVG.) If we wanted to move to all SVG source
 files right now, this would provide an intermediate step for existing
 PNGs that don't have SVG counterparts.

 2) Switch to GIS theme and individually test the above noted icons at
 the 16, 24, and 32 sizes.

 - Test mActionPanToSelected by viewing in main menu, and as a toolbar button
 - To test mActionRotateLabel, you will need a vector layer in edit
 mode, and with data-defined rotation column. View toolbar button.
 - Test mActionSelectPolygon by viewing it in the popup menu, main
 menu, and as a toolbar button.
 - To test mActionSplitFeatures, you will need a polygon vector layer
 in edit mode, with two features selected. Also view in Edit menu
 - Compare your results against mine [1]. Please share screen snaps of
 any different findings.


 My results on Mac, with Qt 4.8.1 and 4.8.2 [1]:

 - Overall IMHO Qt down-scaling is better than that of PNG.
 - SVG document size of 32x32 scaled to 24x24 (75%) showed some blurring.
 - Qt will _not_ up-scale SVG toolbar buttons when setting the
 toolbar's icon size, without doing so preprocessing first. SVG sources
 used by the icon engine appear to be rasterized at their document
 size, then later only scaled down when the icon size of the toolbar is
 adjusted (just like PNGs). So, starting with an appropriate 'largest'
 size for the SVG source seems to be key.
 

Re: [Qgis-developer] New Plugin - Edit Any Layer

2012-08-01 Thread rob . j . nickerson
Yeah, happy to add it to the repo. I posted it here first to see if anyone  
had initial feedback. Will upload it in the next few days.


Rob



On , John C. Tull jct...@gmail.com wrote:

On Aug 1, 2012, at 8:42 AM, Paolo Cavallini cavall...@faunalia.it wrote:





 Il 01/08/2012 17:39, Rob Nickerson ha scritto:







 In part of my work looking at adapting fTools / SEXTANTE to write to



 memory layer / any ogr format, I have created a standalone plugin that



 converts any vector layer to a memory layer (and therefore allows you



 to edit the layer). This plugin is hosted at [1], if you like I will



 move it to a more permanent location.



 thanks for this. of course the right place for it is



 http://plugins.qgis.org/



 from there, everybody can install and check it.



 looking forward to see it there.



 all the best.





+1




Do you think you can host in through the qgis plugins repo referenced by  
Paolo?





Cheers,



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


Re: [Qgis-developer] Raster colours

2012-08-01 Thread Etienne Tourigny
On Wed, Aug 1, 2012 at 1:04 PM, jjg j.j.gr...@gmx.fr wrote:
 Hi Etienne


 Etienne Tourigny-3 wrote

 In fact - I found that things that were missing:
 1) a list of gradients and their variants (e.g. ColorBrewer)
 2) names associated to the various directories/authors
 3) metadata of your Selections.


 1) the list of gradients is just the list of their file names, so no
 problem there. Variants is problematic, since who is to say
 what is a variant of what?  This is very subjective (and what
 actually is the point of it?)

Iif you use a browser interface (like I implemented) it can get very crowded.

For example, the Color Brewer gradients have 7 variants each - no
sense in having 7 entries for the same palette.
I *think* I resolved most variants, they have a same prefix and
usually end with incremental numbers.

When you present the palettes in a big page (like on your website),
it's ok to show them all, but in an application I find it's easier to
group them.


 2) The author of each gradient can be found from COPYING.xml.
 If you start from a path like a/b/c/d.svg then there will be
 one COPYING.xml file corresponding to it, and it is in one of

 a/b/c/COPYING.xml
 a/b/COPYING.xml
 a/COPYING.xml

 i.e, a COPYING.xml applies to that directory and all subdirectories.

 I can see it might be useful to have a description for each
 subdirectory.  Say
 - short name (same as directory name)
 - long name (essentialy the text in the directory link on parent
 directory)
 - description (essentially the first sentence of the page text)
 so
 seq
 sequential
 Sequential colour schemes designed by Cynthia Brewer
 This info in a file called DESC.xml in the directory cpt-city/cb/seq/

Yes that would be great, especially the description and long name. You
might put all information (description and copyright) in one file
though.


 I'm open to suggestions on this.

 3) is a different matter altogether, some of these selections are updated
 every day (most popular downloads etc), so I suggest we do the above
 first an learn the lesson before trying this ...

ok.  It would be cool to have xml files for those eventually, or a way
to parse the web pages that contain the lists.

Also - Tim also wrote to me that it would be interesting to distribute
within QGis a selection of gradients that allow distribution. Do you
know how I could search the archive for such gradients - except for
the obvious grep?

On your site you write those under GPL, Apache-like, Creative commons
or MIT licences allow distribution (under some conditions) - which
restrictions are those, are they specified per-licence or per-author ?

Thanks
Etienne


 Jim



 --
 View this message in context: 
 http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992477.html
 Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster colours

2012-08-01 Thread Paolo Cavallini
Il 01/08/2012 19:30, Etienne Tourigny ha scritto:
 When you present the palettes in a big page (like on your website),
 it's ok to show them all, but in an application I find it's easier to
 group them.
+1, a long list would be difficult to use.

 Also - Tim also wrote to me that it would be interesting to distribute
 within QGis a selection of gradients that allow distribution. Do you
 know how I could search the archive for such gradients - except for
 the obvious grep?
Agreed, at least a set of important ramps should be included in the
standard distro, for people without internet connection.
All the best, and many thanks.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


Re: [Qgis-developer] Raster colours

2012-08-01 Thread jjg

Etienne Tourigny-3 wrote
 
 Iif you use a browser interface (like I implemented) it can get very
 crowded.
 
 For example, the Color Brewer gradients have 7 variants each - no
 sense in having 7 entries for the same palette.
 

No, there are 12 gradients with 3 segments, 12 gradients with 4,
... No actually there are 38 containing green and 72 not containing 
green... No actually there are ...

Get my point? There are dozens of ways to categorize a set of gradients,
and there is no obvious way to say which is better. How would you categorise
the ds9 collection?


Etienne Tourigny-3 wrote
 
 When you present the palettes in a big page (like on your website),
 it's ok to show them all, but in an application I find it's easier to
 group them.
 

I see this as a problem which needs a creative GUI solution rather
than an artificial and labour intensive categorisation.  How does
PhotoShop solve this problem?  (I'm asking genuinely, I've never
used PS).


Etienne Tourigny-3 wrote
 
 I can see it might be useful to have a description for each
 subdirectory.  Say
 - short name (same as directory name)
 - long name (essentialy the text in the directory link on parent
 directory)
 - description (essentially the first sentence of the page text)
 so
 seq
 sequential
 Sequential colour schemes designed by Cynthia Brewer
 This info in a file called DESC.xml in the directory cpt-city/cb/seq/
 
 Yes that would be great, especially the description and long name. You
 might put all information (description and copyright) in one file
 though.
 

That would not be possible since there must be one DESC for each
directory, but one might not have a COPYING in each directory.


Etienne Tourigny-3 wrote
 
 3) is a different matter altogether, some of these selections are updated
 every day (most popular downloads etc), so I suggest we do the above
 first an learn the lesson before trying this ...
 
 ok.  It would be cool to have xml files for those eventually, or a way
 to parse the web pages that contain the lists.
 

Probably be easiest to have a fixed format XML file rather than trying
to parse the HTML (which may well change)


Etienne Tourigny-3 wrote
 
 Also - Tim also wrote to me that it would be interesting to distribute
 within QGis a selection of gradients that allow distribution. Do you
 know how I could search the archive for such gradients - except for
 the obvious grep?
 
 On your site you write those under GPL, Apache-like, Creative commons
 or MIT licences allow distribution (under some conditions) - which
 restrictions are those, are they specified per-licence or per-author ?
 

Either you can browse the website and look at the copying links at
the bottom of the page, or look at the COPYING.xml in the package
(the latter generates the former).  That file applies to that directory
and all of its subdirectories.

You will need to judge for yourself whether the licence text allows
redistribution,  for GPL, Apache, public domain this is clearly yes; 
for no distribution allowed this is clearly no, but there are some in
the middle.  The distributor take the legal risks and so it is only right
that the distributor makes this judgement.








--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992506.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster colours

2012-08-01 Thread Etienne Tourigny
Jim, thanks for taking the time!

On Wed, Aug 1, 2012 at 2:55 PM, jjg j.j.gr...@gmx.fr wrote:

 Etienne Tourigny-3 wrote

 Iif you use a browser interface (like I implemented) it can get very
 crowded.

 For example, the Color Brewer gradients have 7 variants each - no
 sense in having 7 entries for the same palette.


 No, there are 12 gradients with 3 segments, 12 gradients with 4,
 ... No actually there are 38 containing green and 72 not containing
 green... No actually there are ...

 Get my point? There are dozens of ways to categorize a set of gradients,
 and there is no obvious way to say which is better. How would you categorise
 the ds9 collection?

I would not categorize the ds9 collection - the palettes are all different.

The Color Brewer case is quite simple in my (perhaps
graphically-challenged) mind - group all the Blues_xx together, the
BuPu_xx together.

I am simply talking about variants of the same palette (with varying
number of colors) rather than classification, which can be arbitrary
as you point out.

GnBu_03, GnBu_04, ... , GnBu_09 = GnBu{_03,_04,...,_09}



 Etienne Tourigny-3 wrote

 When you present the palettes in a big page (like on your website),
 it's ok to show them all, but in an application I find it's easier to
 group them.


 I see this as a problem which needs a creative GUI solution rather
 than an artificial and labour intensive categorisation.  How does
 PhotoShop solve this problem?  (I'm asking genuinely, I've never
 used PS).

Again, I am talking about groupping together palettes based on similar
names, it's not really labor intensive but can lead to some cases of
grouping error.



 Etienne Tourigny-3 wrote

 I can see it might be useful to have a description for each
 subdirectory.  Say
 - short name (same as directory name)
 - long name (essentialy the text in the directory link on parent
 directory)
 - description (essentially the first sentence of the page text)
 so
 seq
 sequential
 Sequential colour schemes designed by Cynthia Brewer
 This info in a file called DESC.xml in the directory cpt-city/cb/seq/

 Yes that would be great, especially the description and long name. You
 might put all information (description and copyright) in one file
 though.


 That would not be possible since there must be one DESC for each
 directory, but one might not have a COPYING in each directory.

ok



 Etienne Tourigny-3 wrote

 3) is a different matter altogether, some of these selections are updated
 every day (most popular downloads etc), so I suggest we do the above
 first an learn the lesson before trying this ...

 ok.  It would be cool to have xml files for those eventually, or a way
 to parse the web pages that contain the lists.


 Probably be easiest to have a fixed format XML file rather than trying
 to parse the HTML (which may well change)


 Etienne Tourigny-3 wrote

 Also - Tim also wrote to me that it would be interesting to distribute
 within QGis a selection of gradients that allow distribution. Do you
 know how I could search the archive for such gradients - except for
 the obvious grep?

 On your site you write those under GPL, Apache-like, Creative commons
 or MIT licences allow distribution (under some conditions) - which
 restrictions are those, are they specified per-licence or per-author ?


 Either you can browse the website and look at the copying links at
 the bottom of the page, or look at the COPYING.xml in the package
 (the latter generates the former).  That file applies to that directory
 and all of its subdirectories.

 You will need to judge for yourself whether the licence text allows
 redistribution,  for GPL, Apache, public domain this is clearly yes;
 for no distribution allowed this is clearly no, but there are some in
 the middle.  The distributor take the legal risks and so it is only right
 that the distributor makes this judgement.

ok thanks
Etienne









 --
 View this message in context: 
 http://osgeo-org.1560.n6.nabble.com/Raster-colours-tp4991140p4992506.html
 Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [Qgis-user] Python Plugin utilising SOAP

2012-08-01 Thread Noli Sicad
I don't know what sort of data you want to post and get in web server.

SOAP is a bit old. REST API is the way to go now.

Bottle
http://blog.webspecies.co.uk/2011-06-15/restful-web-services-with-python-the-easy-way.html

Noli

On 8/2/12, James Stott james.st...@npaconsult.co.uk wrote:
 Thanks for the responses.

 I will concentrate on telling the users they need it for now and let
 them decide how best to manage that.

 I am having problems with suds though.

 I point it to the wsdl and all I get back is an error as below:

 RuntimeError: maximum recursion depth exceeded while pickling an object

 May try one of the other libraries that are out there.


 James Stott BSc (Hons) MSc | Senior Professional
 Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN
 T: 01225 445548 | M: -
 http://www.npaconsult.co.uk/
 -Original Message-
 From: qgis-user-boun...@lists.osgeo.org
 [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Alexandre Badez
 Sent: 31 July 2012 18:36
 To: t...@wildintellect.com
 Cc: qgis-u...@lists.osgeo.org; qgis-developer
 Subject: Re: [Qgis-user] Python Plugin utilising SOAP

 James,

 I'm using suds in my plugin on windows 7 64bits.

 The problem as you mention it, is how to include it in your plugin.
 For my self I didn't bother because I made a setup.exe that install suds
 and the plugin where they need to be.

 I suppose you can copy it in your plugin dir and do something like:
 from my_plugin import suds
 suds.blabla

 It should work.



 On Tue, Jul 31, 2012 at 6:25 PM, Alex Mandel
 tech_...@wildintellect.com wrote:
 James,

 This discussion would be better for the qgis-developer mailing list.

 To get started, are you talking about a C++ or a python plugin, and
 what language is the Suds library in?

 Thanks,
 Alex


 On 07/31/2012 07:12 AM, James Stott wrote:
 I would like to write a plugin which retrieves data using web
 services.

 It would appear I need to use SOAP to send and receive  requests. How

 would I go about setting up soap? I have OSGeo4W installed on Windows

 7
 64 bit.

 Could anyone advise me on what the best method to go about this would

 be? I am using OSGEO4W but I cannot find a SOAP library in the
 package listing.

 I have found the Suds library which looks promising. How would I go
 about making sure this would be usable in a plugin in QGIS on all
 platforms - is there a way to include the suds library with my
 plugin?

 James





 James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson
 Associates | 30 Brock Street | Bath | BA1 2LN
 T: 01225 445548 | M: -
 http://www.npaconsult.co.uk/

 http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.as
 p

 http://www.npaconsult.co.uk/terms.asp
 This Electronic Transmission is intended only for the attention of
 the addressee. It may contain privileged and confidential information.
 If you are not the person for whom it is intended, you must not copy,
 distribute or take any action in reliance on it. If you have received
 this electronic transmission in error please notify us immediately by
 telephone, delete the transmission and destroy any hard copies.
 Nicholas Pearson Associates has used all reasonable efforts to ensure
 that this message and any attachments are free from viruses.
 Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel:
 +44 (0) 01225 445548, Fax: +44 (0) 01225 312387, Website:
 http://www.npaconsult.co.uk/
 ___
 Qgis-user mailing list
 qgis-u...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


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



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

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


Re: [Qgis-developer] New Plugin - Edit Any Layer

2012-08-01 Thread Alister Hood
Hi,

 Date: Wed, 1 Aug 2012 16:39:01 +0100
 From: Rob Nickerson rob.j.nicker...@gmail.com
 To: qgis-developer@lists.osgeo.org
 Subject: [Qgis-developer] New Plugin - Edit Any Layer
 Message-ID:
 cak4yqtm9zxsyka8mveh+khhnfrs0zrcosc9ozszbphyyqsg...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1
 
 Hi All,
 
 It seemed a little bit odd to me that QGIS is able to open many file types
 but you can only edit a couple of them. Being new to the world of GIS and
 therefore not understanding any of its history, this seemed as odd as
 photoshop being able to open but not edit jpeg files!
 
 In part of my work looking at adapting fTools / SEXTANTE to write to memory
 layer / any ogr format, I have created a standalone plugin that converts
 any vector layer to a memory layer (and therefore allows you to edit the
 layer). This plugin is hosted at [1], if you like I will move it to a more
 permanent location.
 
 Notes:
 
 * Filters for just vector layers (but could be further filtered to vector
 layers that cannot be edited in their current format).

Please don't restrict it like that.  It is useful to be able to make a memory 
layer copy of even a layer that is writeable.  You might even consider renaming 
it to reflect that - Copy as memory layer perhaps?

What would be useful is an option to only copy the selected features.  And it 
should work even with no selected features - this would provide a quick way to 
create an empty memory layer with the same attribute columns.

 * No progress bar at the moment (at 1000's of features the plugin can take
 a little while so will add a progress bar at a later date).
 
 [1] http://ubuntuone.com/3Zl1ojo3ZMUJxMqj2kcZaX
 
 Regards,
 Rob

Nice plugin - good work!
Alister
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support

2012-08-01 Thread Noli Sicad
Hi,

Has anybody managed to build / compile QGIS in Mac OS X (Mountain Lion
i.e. 10.8)?

Any tips on this?

https://github.com/qgis/Quantum-GIS/blob/master/INSTALL

What are the changes in this instruction?

I want also to include QtSQL support so MSSQL can work as well for Mac OS X.

How do you include QtSQL support (ie. qsql_odbc.h support for MSSQL)
for Mac OS X build?

How do this QtSQL support in Linux?


(I got a decent macbookpro (base) retina 2.3Gh now. I have not build
any QGIS in my slow laptop before).

Thanks.

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


Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support

2012-08-01 Thread Larry Shaffer
Hi Noli,

On Wed, Aug 1, 2012 at 9:25 PM, Noli Sicad nsi...@gmail.com wrote:
 Hi,

 Has anybody managed to build / compile QGIS in Mac OS X (Mountain Lion
 i.e. 10.8)?

 Any tips on this?

 https://github.com/qgis/Quantum-GIS/blob/master/INSTALL

 What are the changes in this instruction?

Unless you're feeling really adventurous and want use a different
route, you'll want to first test whether the Qt and kyngchaos.com
frameworks for 10.6/10.7 install and work as is. Not sure how much
testing William has done with the new Mac OS. I'll probably be trying
to compile QGIS on 10.8 next week.

After those are correctly installed an validated, there are a couple
of optional items you can skip on your first compiling to save
yourself some time:

5.4.10. Optional Dependencies: libfcgi
5.4.11. Optional Dependencies: OSG  osgEarth

You may have compile errors regarding libspatialindex, see this
discussion for additional info:
http://osgeo-org.1560.n6.nabble.com/Config-fails-on-find-of-spatialindex-library-tt4939392.html#a4940948


 I want also to include QtSQL support so MSSQL can work as well for Mac OS X.

 How do you include QtSQL support (ie. qsql_odbc.h support for MSSQL)
 for Mac OS X build?

The Mac QGIS.app includes bundled Qt frameworks (though not their
header files), so Qt ODBC support should be functional if the
libqsqlodbc.dylib plugin is included. I saw the discussion you brought
up about it previously [1], but it is not currently being bundled.
Here is a temporary git patch file you can apply that adds the
bundling [2]. The method I used has redundant code in it, which can be
fixed up once you report back that it actually works (I don't have
access to a MSSQL server to test).

[1] 
http://osgeo-org.1560.n6.nabble.com/Compiling-QGIS-with-iODBC-driver-library-for-MacOS-X-and-Linux-td4987085.html#none
[2] https://dl.dropbox.com/u/4058089/qgis/libqsqlodbc-mac_patch.diff

 How do this QtSQL support in Linux?

I'll let one of the Linux gurus answer that one. :^)


 (I got a decent macbookpro (base) retina 2.3Gh now. I have not build
 any QGIS in my slow laptop before).

 Thanks.

Good luck! Please let us know how your effort fares.


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