Hi,<div><br></div><div>perhaps you didn't catch the previous discussion on this list (subject "Raster colours"), or you  didn't read this thread closely. Admittedly the subject of this thread does not mention cpt-city, but...</div>
<div><br></div><div>This is EXACTLY about using the cpt-city files (although their svg variant) to make color ramps.</div><div><br></div><div>Tomorrow this should be in the linux and windows developpment builds, if you want to check it out - it is in qgis master git.</div>
<div><br></div><div>Etienne<br><br><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 4:29 PM,  <span dir="ltr"><<a href="mailto:pcreso@pcreso.com" target="_blank">pcreso@pcreso.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">How about the ability to import/read/use cpt files from CPT city?<br><br>
<a href="http://soliton.vm.bytemark.co.uk/pub/cpt-city/" target="_blank">http://soliton.vm.bytemark.co.uk/pub/cpt-city/</a><br><br>There is a huge number of cartographic (& other) colour ramps/palettes for users to tap into from many authors & packages.<br>
<br>Providing an easy way for QGIS users to make use of these would be a valuable asset.<br><br>Cheers,<br><br>Brent Wood<br><br><br>--- On <b>Sat, 8/4/12, Paolo Cavallini <i><<a href="mailto:cavallini@faunalia.it" target="_blank">cavallini@faunalia.it</a>></i></b> wrote:<br>
<blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><br>From: Paolo Cavallini <<a href="mailto:cavallini@faunalia.it" target="_blank">cavallini@faunalia.it</a>><br>Subject: Re: [Qgis-developer] color ramps improvements<br>
To: "Etienne Tourigny" <<a href="mailto:etourigny.dev@gmail.com" target="_blank">etourigny.dev@gmail.com</a>><br>Cc: "qgis-developer" <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>><br>
Date: Saturday, August 4, 2012, 3:16 AM<br><br><div><div><div class="h5">Il 03/08/2012 16:52, Etienne Tourigny ha scritto:<br>> is there an existing
 infrastructure for this in qgis/qt to do the following?<br>><br>> 1) download the file<br>> 2) unzip - I have added the GDAL funcitons to read zips, but not sure<br>> if it's easy to unzip a file.<br>quite the same as for plugins: I guess having the same widgets for<br>
installing plugins, styles, and ramps would be a great plus, both for<br>users and for developers.<br>> where would you get the metadata from? There is metadata for author,<br>> group, but not for each gradient. Do you mean the gradient name? <br>
yes, name is often descriptive enough - when not, we can probably add tags?<br>> Someone would have to step in, select a few and propose them. These<br>> would be part of the symbols available by default.<br>ok, let's start:<br>
- at least one DEM<br>- one batymetry<br>- a red, a green,and a blue scale<br>- one "semaphore" (green to red through yellow)<br>- two other diverging<br>- more?<br>Maybe we could make a poll? I'm
 sure specific sectors have their<br>requirements.<br><br>NB: palettes with transparency are not previewed in a meaningful way.<br>><br>> I think that this will be easier once Arun's work on symbology<br>> grouping and "social styles" is merged.<br>
agreed - see my other thread on GSoC, who was triggered by this issue.<br>> Are you talking about clutter in the style manager or the cpt-city<br>> dialog? <br>in the style manager: we have now a long list of gradients, and the New<br>
ramp entry could be easily overlooked.<br>> If the latter - In this case you have about 3-4 groups which are<br>> duplicated, out of more than 100, so I don't see how it adds to<br>> clutter. I thought about removing the ColorBrewer option(as they are<br>
> available in cpt-city), but it is still relevant because there are<br>> fewer options to choose from and it is simpler (and nicer) to work with. <br>I think adding only the default ones (see
 above), and letting the users<br>build the others, should be ok.<br>> This topic is more related to how the gradient is applied to the<br>> raster/vector, so this sort of lies outside of the cpt-city dialog (I<br>
> think) - unless those classification methods are tied to specific<br>> gradients?<br>some of them yes. some gradients should be applied on absolute numbers,<br>not relatively (e.g. slopes, DEM).<br>><br>> Another functionality from 1-band plugin that is missing is the<br>
> possibility to invert colors and palette. This would be very useful,<br>> but should it be inside the style manager or in the vector/raster<br>> layer dialogs?<br>IMHO, in the layer dialog.<br>>> - the raster layer property dialog should be made more clear, and more<br>
>> homogeneous with that of vectors.<br>> I agree - perhaps you can submit a mock-up?<br>perhaps someone with better designing skills is more suitable.<br>IMHO the
 default interpolation should be linear, not discrete.<br>>> One more: I think the default listing should be by theme, not by author.<br>> hmm do you mean the selection view? Because aside from that there is<br>
> no "theme" grouping yet.<br>I mean in the cpt-city color ramp dialog (View is by default switched to<br>All by author, should be Selections by theme?)<br>All the best.<br><br>-- <br>Paolo Cavallini - Faunalia<br>
<a href="http://www.faunalia.eu" target="_blank">www.faunalia.eu</a><br>Full contact details at <a href="http://www.faunalia.eu/pc" target="_blank">www.faunalia.eu/pc</a><br>Nuovi corsi QGIS e PostGIS: <a href="http://www.faunalia.it/calendario" target="_blank">http://www.faunalia.it/calendario</a><br>
<br></div></div><div class="im">_______________________________________________<br>Qgis-developer mailing list<br><a href="http://mc/compose?to=Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></div></div></blockquote></td></tr></tbody></table><br>_______________________________________________<br>

Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><br></div>