[Qgis-developer] Raster colours

Etienne Tourigny etourigny.dev at gmail.com
Wed Aug 1 10:30:46 PDT 2012


On Wed, Aug 1, 2012 at 1:04 PM, jjg <j.j.green at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list