add a few cpt-city svg files to tests
@ -254,7 +254,8 @@ void TestQgsRasterLayer::colorRamp2()
|
||||
|
||||
void TestQgsRasterLayer::colorRamp3()
|
||||
{
|
||||
// cpt-city ramp
|
||||
// cpt-city ramp, small selection available in <testdir>/cpt-city
|
||||
QgsCptCityColorRampV2::setBaseDir( mTestDataDir + "cpt-city" );
|
||||
QVERIFY( testColorRamp( "raster_colorRamp3",
|
||||
new QgsCptCityColorRampV2( "gmt/GMT_panoply", "" ),
|
||||
QgsColorRampShader::DISCRETE, 10 ) );
|
||||
|
@ -37,6 +37,7 @@ class TestStyleV2: public QObject
|
||||
private:
|
||||
|
||||
QgsStyleV2 *mStyle;
|
||||
QString mTestDataDir;
|
||||
|
||||
bool testValidColor( QgsVectorColorRampV2 *ramp, double value, QColor expected );
|
||||
|
||||
@ -58,9 +59,10 @@ class TestStyleV2: public QObject
|
||||
// slots
|
||||
void TestStyleV2::initTestCase()
|
||||
{
|
||||
// initialize with test directory so we don't mess with user's stuff
|
||||
// initialize with test settings directory so we don't mess with user's stuff
|
||||
QgsApplication::init( QDir::homePath() + QString( "/.qgis_test" ) );
|
||||
QgsApplication::initQgis();
|
||||
mTestDataDir = QString( TEST_DATA_DIR ) + QDir::separator(); //defined in CmakeLists.txt
|
||||
|
||||
// output test environment
|
||||
QgsApplication::showSettings();
|
||||
@ -79,6 +81,10 @@ void TestStyleV2::initTestCase()
|
||||
}
|
||||
mStyle = QgsStyleV2::defaultStyle();
|
||||
// mStyle->clear();
|
||||
|
||||
// cpt-city ramp, small selection available in <testdir>/cpt-city
|
||||
QgsCptCityColorRampV2::setBaseDir( mTestDataDir + "cpt-city" );
|
||||
QgsCptCityColorRampV2::loadSchemes( "" );
|
||||
}
|
||||
|
||||
void TestStyleV2::cleanupTestCase()
|
||||
@ -119,21 +125,17 @@ void TestStyleV2::testCreateColorRamps()
|
||||
QgsVectorColorBrewerColorRampV2* cb2Ramp = new QgsVectorColorBrewerColorRampV2( "RdYlGn", 6 );
|
||||
QVERIFY( mStyle->addColorRamp( "test_cb2", cb2Ramp ) == true );
|
||||
|
||||
// cpt-city ramp - use gradients that are free to distribute
|
||||
// set base dir because we are using a test home path - change this if we distribute a minimal set with qgis
|
||||
QgsCptCityColorRampV2::setBaseDir( QDir::homePath() + QString( "/.qgis/cpt-city" ) );
|
||||
QgsCptCityColorRampV2::loadSchemes( "" );
|
||||
if ( QgsCptCityColorRampV2::hasBasicSchemes() )
|
||||
{
|
||||
QgsCptCityColorRampV2* cc1Ramp = new QgsCptCityColorRampV2( "jjg/misc/temperature", "" );
|
||||
QVERIFY( mStyle->addColorRamp( "test_cc1", cc1Ramp ) == true );
|
||||
QgsCptCityColorRampV2* cc2Ramp = new QgsCptCityColorRampV2( "cb/div/PiYG", "_10" );
|
||||
QVERIFY( mStyle->addColorRamp( "test_cc2", cc2Ramp ) == true );
|
||||
}
|
||||
else
|
||||
{
|
||||
QWARN( "cpt-city support files not found - skipping cpt-city color ramp tests" );
|
||||
}
|
||||
// if ( QgsCptCityColorRampV2::hasBasicSchemes() )
|
||||
// {
|
||||
QgsCptCityColorRampV2* cc1Ramp = new QgsCptCityColorRampV2( "jjg/misc/temperature", "" );
|
||||
QVERIFY( mStyle->addColorRamp( "test_cc1", cc1Ramp ) == true );
|
||||
QgsCptCityColorRampV2* cc2Ramp = new QgsCptCityColorRampV2( "cb/div/PiYG", "_10" );
|
||||
QVERIFY( mStyle->addColorRamp( "test_cc2", cc2Ramp ) == true );
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// QWARN( "cpt-city support files not found - skipping cpt-city color ramp tests" );
|
||||
// }
|
||||
}
|
||||
|
||||
void TestStyleV2::testLoadColorRamps()
|
||||
@ -154,15 +156,15 @@ void TestStyleV2::testLoadColorRamps()
|
||||
colorTests.insert( "test_cb2", qMakePair( 0.66, QColor( "#d9ef8b" ) ) );
|
||||
|
||||
// cpt-city
|
||||
if ( QgsCptCityColorRampV2::hasAllSchemes() )
|
||||
{
|
||||
colorRampsTest << "test_cc1";
|
||||
colorTests.insert( "test_cc1", qMakePair( 0.25, QColor( "#466fcf" ) ) );
|
||||
colorTests.insert( "test_cc1", qMakePair( 0.66, QColor( "#dbc85b" ) ) );
|
||||
colorRampsTest << "test_cc2";
|
||||
colorTests.insert( "test_cc2", qMakePair( 0.25, QColor( "#de77ae" ) ) );
|
||||
colorTests.insert( "test_cc2", qMakePair( 0.66, QColor( "#b8e186" ) ) );
|
||||
}
|
||||
// if ( QgsCptCityColorRampV2::hasAllSchemes() )
|
||||
// {
|
||||
colorRampsTest << "test_cc1";
|
||||
colorTests.insert( "test_cc1", qMakePair( 0.25, QColor( "#466fcf" ) ) );
|
||||
colorTests.insert( "test_cc1", qMakePair( 0.66, QColor( "#dbc85b" ) ) );
|
||||
colorRampsTest << "test_cc2";
|
||||
colorTests.insert( "test_cc2", qMakePair( 0.25, QColor( "#de77ae" ) ) );
|
||||
colorTests.insert( "test_cc2", qMakePair( 0.66, QColor( "#b8e186" ) ) );
|
||||
// }
|
||||
|
||||
foreach ( QString name, colorRampsTest )
|
||||
{
|
||||
|
64
tests/testdata/cpt-city/cb/COPYING.xml
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<copying>
|
||||
<authors>
|
||||
<author href="http://www.personal.psu.edu/cab38/">
|
||||
<name>Cynthia Brewer</name>
|
||||
<org>Pennsylvania State University</org>
|
||||
</author>
|
||||
<author href="http://www.geography.wisc.edu/~harrower/">
|
||||
<name>Mark Harrower</name>
|
||||
<org>University of Wisconsin-Madison</org>
|
||||
</author>
|
||||
</authors>
|
||||
<license>
|
||||
<informal>Apache-style</informal>
|
||||
<year>2002</year>
|
||||
<text>
|
||||
Apache-Style Software License for ColorBrewer software and ColorBrewer
|
||||
Color Schemes
|
||||
|
||||
Version 1.1
|
||||
|
||||
Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania
|
||||
State University. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions as source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. The end-user documentation included with the redistribution, if any,
|
||||
must include the following acknowledgment:
|
||||
|
||||
"This product includes color specifications and designs developed by
|
||||
Cynthia Brewer (http://colorbrewer.org/)."
|
||||
|
||||
Alternately, this acknowledgment may appear in the software
|
||||
itself, if and wherever such third-party acknowledgments normally appear.
|
||||
|
||||
4. The name "ColorBrewer" must not be used to endorse or promote products derived
|
||||
from this software without prior written permission. For written permission, please
|
||||
contact Cynthia Brewer at cbrewer@psu.edu.
|
||||
|
||||
5. Products derived from this software may not be called "ColorBrewer", nor may "ColorBrewer"
|
||||
appear in their name, without prior written permission of Cynthia Brewer.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CYNTHIA BREWER, MARK HARROWER, OR THE
|
||||
PENNSYLVANIA STATE UNIVERSITY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</text>
|
||||
</license>
|
||||
<src>
|
||||
<format>Excel spreadsheet</format>
|
||||
<link href="http://colorbrewer2.org/">ColorBrewer site</link>
|
||||
<link href="http://www.personal.psu.edu/cab38/ColorBrewer/ColorBrewer_RGB.html">
|
||||
Excel spreadsheet download</link>
|
||||
</src>
|
||||
</copying>
|
11
tests/testdata/cpt-city/cb/DESC.xml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<description>
|
||||
<dir>cb</dir>
|
||||
<name>Colour schemes by Cynthia Brewer</name>
|
||||
<full>
|
||||
Colour schemes were designed by Cynthia Brewer,
|
||||
Associate Professor of Geography at the Pennsylvania
|
||||
State University.
|
||||
</full>
|
||||
<date>01/08/2012</date>
|
||||
</description>
|
9
tests/testdata/cpt-city/cb/div/DESC.xml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<description>
|
||||
<dir>div</dir>
|
||||
<name>Diverging</name>
|
||||
<full>
|
||||
Diverging colour schemes designed by Cynthia Brewer
|
||||
</full>
|
||||
<date>01/08/2012</date>
|
||||
</description>
|
15
tests/testdata/cpt-city/cb/div/PiYG_03.svg
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="PiYG_03" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(233,163,201)" stop-opacity="1.0000"/>
|
||||
<stop offset="33.33%" stop-color="rgb(233,163,201)" stop-opacity="1.0000"/>
|
||||
<stop offset="33.33%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="66.67%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="66.67%" stop-color="rgb(161,215,106)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(161,215,106)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:12:21 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 842 B |
17
tests/testdata/cpt-city/cb/div/PiYG_04.svg
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="PiYG_04" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(208,28,139)" stop-opacity="1.0000"/>
|
||||
<stop offset="25.00%" stop-color="rgb(208,28,139)" stop-opacity="1.0000"/>
|
||||
<stop offset="25.00%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="75.00%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="75.00%" stop-color="rgb(77,172,38)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(77,172,38)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:12:23 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 996 B |
19
tests/testdata/cpt-city/cb/div/PiYG_05.svg
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="PiYG_05" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(208,28,139)" stop-opacity="1.0000"/>
|
||||
<stop offset="20.00%" stop-color="rgb(208,28,139)" stop-opacity="1.0000"/>
|
||||
<stop offset="20.00%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="40.00%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="40.00%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="60.00%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="60.00%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="80.00%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="80.00%" stop-color="rgb(77,172,38)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(77,172,38)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:12:22 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
21
tests/testdata/cpt-city/cb/div/PiYG_06.svg
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="PiYG_06" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="16.67%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="16.67%" stop-color="rgb(233,163,201)" stop-opacity="1.0000"/>
|
||||
<stop offset="33.33%" stop-color="rgb(233,163,201)" stop-opacity="1.0000"/>
|
||||
<stop offset="33.33%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="66.67%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="66.67%" stop-color="rgb(161,215,106)" stop-opacity="1.0000"/>
|
||||
<stop offset="83.33%" stop-color="rgb(161,215,106)" stop-opacity="1.0000"/>
|
||||
<stop offset="83.33%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:12:21 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
23
tests/testdata/cpt-city/cb/div/PiYG_07.svg
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="PiYG_07" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="14.29%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="14.29%" stop-color="rgb(233,163,201)" stop-opacity="1.0000"/>
|
||||
<stop offset="28.57%" stop-color="rgb(233,163,201)" stop-opacity="1.0000"/>
|
||||
<stop offset="28.57%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="42.86%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="42.86%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="57.14%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="57.14%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="71.43%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="71.43%" stop-color="rgb(161,215,106)" stop-opacity="1.0000"/>
|
||||
<stop offset="85.71%" stop-color="rgb(161,215,106)" stop-opacity="1.0000"/>
|
||||
<stop offset="85.71%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:12:23 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
25
tests/testdata/cpt-city/cb/div/PiYG_08.svg
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="PiYG_08" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="12.50%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="12.50%" stop-color="rgb(222,119,174)" stop-opacity="1.0000"/>
|
||||
<stop offset="25.00%" stop-color="rgb(222,119,174)" stop-opacity="1.0000"/>
|
||||
<stop offset="25.00%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="37.50%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="37.50%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="62.50%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="62.50%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="75.00%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="75.00%" stop-color="rgb(127,188,65)" stop-opacity="1.0000"/>
|
||||
<stop offset="87.50%" stop-color="rgb(127,188,65)" stop-opacity="1.0000"/>
|
||||
<stop offset="87.50%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:12:23 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 1.6 KiB |
27
tests/testdata/cpt-city/cb/div/PiYG_09.svg
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="PiYG_09" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="11.11%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="11.11%" stop-color="rgb(222,119,174)" stop-opacity="1.0000"/>
|
||||
<stop offset="22.22%" stop-color="rgb(222,119,174)" stop-opacity="1.0000"/>
|
||||
<stop offset="22.22%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="33.33%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="33.33%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="44.44%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="44.44%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="55.56%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="55.56%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="66.67%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="66.67%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="77.78%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="77.78%" stop-color="rgb(127,188,65)" stop-opacity="1.0000"/>
|
||||
<stop offset="88.89%" stop-color="rgb(127,188,65)" stop-opacity="1.0000"/>
|
||||
<stop offset="88.89%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:12:23 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
29
tests/testdata/cpt-city/cb/div/PiYG_10.svg
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="PiYG_10" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(142,1,82)" stop-opacity="1.0000"/>
|
||||
<stop offset="10.00%" stop-color="rgb(142,1,82)" stop-opacity="1.0000"/>
|
||||
<stop offset="10.00%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="20.00%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="20.00%" stop-color="rgb(222,119,174)" stop-opacity="1.0000"/>
|
||||
<stop offset="30.00%" stop-color="rgb(222,119,174)" stop-opacity="1.0000"/>
|
||||
<stop offset="30.00%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="40.00%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="40.00%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="60.00%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="60.00%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="70.00%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="70.00%" stop-color="rgb(127,188,65)" stop-opacity="1.0000"/>
|
||||
<stop offset="80.00%" stop-color="rgb(127,188,65)" stop-opacity="1.0000"/>
|
||||
<stop offset="80.00%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
<stop offset="90.00%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
<stop offset="90.00%" stop-color="rgb(39,100,25)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(39,100,25)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:12:22 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
31
tests/testdata/cpt-city/cb/div/PiYG_11.svg
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="PiYG_11" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(142,1,82)" stop-opacity="1.0000"/>
|
||||
<stop offset="9.09%" stop-color="rgb(142,1,82)" stop-opacity="1.0000"/>
|
||||
<stop offset="9.09%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="18.18%" stop-color="rgb(197,27,125)" stop-opacity="1.0000"/>
|
||||
<stop offset="18.18%" stop-color="rgb(222,119,174)" stop-opacity="1.0000"/>
|
||||
<stop offset="27.27%" stop-color="rgb(222,119,174)" stop-opacity="1.0000"/>
|
||||
<stop offset="27.27%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="36.36%" stop-color="rgb(241,182,218)" stop-opacity="1.0000"/>
|
||||
<stop offset="36.36%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="45.45%" stop-color="rgb(253,224,239)" stop-opacity="1.0000"/>
|
||||
<stop offset="45.45%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="54.55%" stop-color="rgb(247,247,247)" stop-opacity="1.0000"/>
|
||||
<stop offset="54.55%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="63.64%" stop-color="rgb(230,245,208)" stop-opacity="1.0000"/>
|
||||
<stop offset="63.64%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="72.73%" stop-color="rgb(184,225,134)" stop-opacity="1.0000"/>
|
||||
<stop offset="72.73%" stop-color="rgb(127,188,65)" stop-opacity="1.0000"/>
|
||||
<stop offset="81.82%" stop-color="rgb(127,188,65)" stop-opacity="1.0000"/>
|
||||
<stop offset="81.82%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
<stop offset="90.91%" stop-color="rgb(77,146,33)" stop-opacity="1.0000"/>
|
||||
<stop offset="90.91%" stop-color="rgb(39,100,25)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(39,100,25)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:12:22 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
28
tests/testdata/cpt-city/gmt/COPYING.xml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Id: COPYING.xml,v 1.4 2011/11/16 20:51:07 jjg Exp $ -->
|
||||
<copying>
|
||||
<authors>
|
||||
<author href="http://www.soest.hawaii.edu/pwessel/">
|
||||
<name>Paul Wessel</name>
|
||||
<org>SOEST</org>
|
||||
</author>
|
||||
<author href="http://www.star.nesdis.noaa.gov/star/Smith_WHF.php">
|
||||
<name>Walter Smith</name>
|
||||
<org>NOAA</org>
|
||||
</author>
|
||||
<author>
|
||||
<name>Andreas Trawoeger</name>
|
||||
</author>
|
||||
</authors>
|
||||
<license>
|
||||
<informal>GPLv2</informal>
|
||||
<year>2004, 2010</year>
|
||||
<text href="http://www.gnu.org/licenses/gpl-2.0.html"/>
|
||||
</license>
|
||||
<src>
|
||||
<format>GMT cpt</format>
|
||||
<link href="http://gmt.soest.hawaii.edu/gmt/gmt_download.html">GMT
|
||||
downloads</link>
|
||||
<remark>Files included in the GMT distribution</remark>
|
||||
</src>
|
||||
</copying>
|
9
tests/testdata/cpt-city/gmt/DESC.xml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<description>
|
||||
<dir>gmt</dir>
|
||||
<name>Generic Mapping Tools palettes</name>
|
||||
<full>
|
||||
The palettes distributed with the Generic Mapping Tools (GMT).
|
||||
</full>
|
||||
<date>01/08/2012</date>
|
||||
</description>
|
41
tests/testdata/cpt-city/gmt/GMT_panoply.svg
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="GMT_panoply" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(4,14,216)" stop-opacity="1.0000"/>
|
||||
<stop offset="6.25%" stop-color="rgb(4,14,216)" stop-opacity="1.0000"/>
|
||||
<stop offset="6.25%" stop-color="rgb(32,80,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="12.50%" stop-color="rgb(32,80,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="12.50%" stop-color="rgb(65,150,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="18.75%" stop-color="rgb(65,150,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="18.75%" stop-color="rgb(109,193,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="25.00%" stop-color="rgb(109,193,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="25.00%" stop-color="rgb(134,217,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="31.25%" stop-color="rgb(134,217,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="31.25%" stop-color="rgb(156,238,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="37.50%" stop-color="rgb(156,238,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="37.50%" stop-color="rgb(175,245,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="43.75%" stop-color="rgb(175,245,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="43.75%" stop-color="rgb(206,255,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(206,255,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="50.00%" stop-color="rgb(255,254,71)" stop-opacity="1.0000"/>
|
||||
<stop offset="56.25%" stop-color="rgb(255,254,71)" stop-opacity="1.0000"/>
|
||||
<stop offset="56.25%" stop-color="rgb(255,235,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="62.50%" stop-color="rgb(255,235,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="62.50%" stop-color="rgb(255,196,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="68.75%" stop-color="rgb(255,196,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="68.75%" stop-color="rgb(255,144,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="75.00%" stop-color="rgb(255,144,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="75.00%" stop-color="rgb(255,72,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="81.25%" stop-color="rgb(255,72,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="81.25%" stop-color="rgb(255,0,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="87.50%" stop-color="rgb(255,0,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="87.50%" stop-color="rgb(213,0,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="93.75%" stop-color="rgb(213,0,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="93.75%" stop-color="rgb(158,0,0)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(158,0,0)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:13:38 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
9
tests/testdata/cpt-city/jjg/DESC.xml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<description>
|
||||
<dir>jjg</dir>
|
||||
<name>Technical gradients by J.J. Green</name>
|
||||
<full>
|
||||
Palettes mainly for technical illustration.
|
||||
</full>
|
||||
<date>01/08/2012</date>
|
||||
</description>
|
16
tests/testdata/cpt-city/jjg/misc/COPYING.xml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Id: COPYING.xml,v 1.1 2010/01/05 18:51:51 jjg Exp $ -->
|
||||
<copying>
|
||||
<authors>
|
||||
<author href="http://soliton.vm.bytemark.co.uk/pub/jjg/">
|
||||
<name>J.J. Green</name>
|
||||
</author>
|
||||
</authors>
|
||||
<license>
|
||||
<informal>Public domain</informal>
|
||||
<year>2004</year>
|
||||
</license>
|
||||
<src>
|
||||
<format>GMT colour palette (cpt)</format>
|
||||
</src>
|
||||
</copying>
|
9
tests/testdata/cpt-city/jjg/misc/DESC.xml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<description>
|
||||
<dir>misc</dir>
|
||||
<name>Miscellany</name>
|
||||
<full>
|
||||
Miscellaneous gradients.
|
||||
</full>
|
||||
<date>01/08/2012</date>
|
||||
</description>
|
55
tests/testdata/cpt-city/jjg/misc/temperature.svg
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<linearGradient id="temperature" gradientUnits="objectBoundingBox" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
|
||||
<stop offset="0.00%" stop-color="rgb(19,22,180)" stop-opacity="1.0000"/>
|
||||
<stop offset="4.35%" stop-color="rgb(19,22,180)" stop-opacity="1.0000"/>
|
||||
<stop offset="4.35%" stop-color="rgb(35,49,199)" stop-opacity="1.0000"/>
|
||||
<stop offset="8.70%" stop-color="rgb(35,49,199)" stop-opacity="1.0000"/>
|
||||
<stop offset="8.70%" stop-color="rgb(45,66,201)" stop-opacity="1.0000"/>
|
||||
<stop offset="13.04%" stop-color="rgb(45,66,201)" stop-opacity="1.0000"/>
|
||||
<stop offset="13.04%" stop-color="rgb(55,85,203)" stop-opacity="1.0000"/>
|
||||
<stop offset="17.39%" stop-color="rgb(55,85,203)" stop-opacity="1.0000"/>
|
||||
<stop offset="17.39%" stop-color="rgb(54,95,198)" stop-opacity="1.0000"/>
|
||||
<stop offset="21.74%" stop-color="rgb(54,95,198)" stop-opacity="1.0000"/>
|
||||
<stop offset="21.74%" stop-color="rgb(70,111,207)" stop-opacity="1.0000"/>
|
||||
<stop offset="26.09%" stop-color="rgb(70,111,207)" stop-opacity="1.0000"/>
|
||||
<stop offset="26.09%" stop-color="rgb(80,125,210)" stop-opacity="1.0000"/>
|
||||
<stop offset="30.43%" stop-color="rgb(80,125,210)" stop-opacity="1.0000"/>
|
||||
<stop offset="30.43%" stop-color="rgb(89,141,214)" stop-opacity="1.0000"/>
|
||||
<stop offset="34.78%" stop-color="rgb(89,141,214)" stop-opacity="1.0000"/>
|
||||
<stop offset="34.78%" stop-color="rgb(98,155,217)" stop-opacity="1.0000"/>
|
||||
<stop offset="39.13%" stop-color="rgb(98,155,217)" stop-opacity="1.0000"/>
|
||||
<stop offset="39.13%" stop-color="rgb(126,185,233)" stop-opacity="1.0000"/>
|
||||
<stop offset="43.48%" stop-color="rgb(126,185,233)" stop-opacity="1.0000"/>
|
||||
<stop offset="43.48%" stop-color="rgb(165,215,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="47.83%" stop-color="rgb(165,215,255)" stop-opacity="1.0000"/>
|
||||
<stop offset="47.83%" stop-color="rgb(196,229,183)" stop-opacity="1.0000"/>
|
||||
<stop offset="52.17%" stop-color="rgb(196,229,183)" stop-opacity="1.0000"/>
|
||||
<stop offset="52.17%" stop-color="rgb(180,223,168)" stop-opacity="1.0000"/>
|
||||
<stop offset="56.52%" stop-color="rgb(180,223,168)" stop-opacity="1.0000"/>
|
||||
<stop offset="56.52%" stop-color="rgb(176,215,147)" stop-opacity="1.0000"/>
|
||||
<stop offset="60.87%" stop-color="rgb(176,215,147)" stop-opacity="1.0000"/>
|
||||
<stop offset="60.87%" stop-color="rgb(199,207,116)" stop-opacity="1.0000"/>
|
||||
<stop offset="65.22%" stop-color="rgb(199,207,116)" stop-opacity="1.0000"/>
|
||||
<stop offset="65.22%" stop-color="rgb(219,200,91)" stop-opacity="1.0000"/>
|
||||
<stop offset="69.57%" stop-color="rgb(219,200,91)" stop-opacity="1.0000"/>
|
||||
<stop offset="69.57%" stop-color="rgb(222,189,80)" stop-opacity="1.0000"/>
|
||||
<stop offset="73.91%" stop-color="rgb(222,189,80)" stop-opacity="1.0000"/>
|
||||
<stop offset="73.91%" stop-color="rgb(217,164,73)" stop-opacity="1.0000"/>
|
||||
<stop offset="78.26%" stop-color="rgb(217,164,73)" stop-opacity="1.0000"/>
|
||||
<stop offset="78.26%" stop-color="rgb(211,146,66)" stop-opacity="1.0000"/>
|
||||
<stop offset="82.61%" stop-color="rgb(211,146,66)" stop-opacity="1.0000"/>
|
||||
<stop offset="82.61%" stop-color="rgb(209,133,62)" stop-opacity="1.0000"/>
|
||||
<stop offset="86.96%" stop-color="rgb(209,133,62)" stop-opacity="1.0000"/>
|
||||
<stop offset="86.96%" stop-color="rgb(204,113,57)" stop-opacity="1.0000"/>
|
||||
<stop offset="91.30%" stop-color="rgb(204,113,57)" stop-opacity="1.0000"/>
|
||||
<stop offset="91.30%" stop-color="rgb(202,98,50)" stop-opacity="1.0000"/>
|
||||
<stop offset="95.65%" stop-color="rgb(202,98,50)" stop-opacity="1.0000"/>
|
||||
<stop offset="95.65%" stop-color="rgb(199,69,40)" stop-opacity="1.0000"/>
|
||||
<stop offset="100.00%" stop-color="rgb(199,69,40)" stop-opacity="1.0000"/>
|
||||
</linearGradient>
|
||||
<metadata>
|
||||
<creator name="cptutils" version="1.44"/>
|
||||
<created date="Tue Mar 13 13:14:40 2012"/>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 3.9 KiB |