Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added library of land use classification color maps. #2073

Merged
merged 3 commits into from Mar 24, 2017
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
70 changes: 35 additions & 35 deletions proj4/src/test/scala/geotrellis/proj4/io/wkt/WKTParserTest.scala
Expand Up @@ -9,7 +9,7 @@ class WKTParserTest extends FunSpec {
parseAll(string, """"EPSG"""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -21,7 +21,7 @@ class WKTParserTest extends FunSpec {
parseAll(string, """"Barbados 1938 / Barbados National Grid"""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -33,7 +33,7 @@ class WKTParserTest extends FunSpec {
parseAll(string, """"RGR92 (3D deg)"""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -45,7 +45,7 @@ class WKTParserTest extends FunSpec {
parseAll(comma, """,""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -57,7 +57,7 @@ class WKTParserTest extends FunSpec {
parseAll(comma, """, """) match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -69,7 +69,7 @@ class WKTParserTest extends FunSpec {
parseAll(double, "-220.3") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -81,7 +81,7 @@ class WKTParserTest extends FunSpec {
parseAll(int, "12") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -93,7 +93,7 @@ class WKTParserTest extends FunSpec {
parseAll(int, "-12") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -105,7 +105,7 @@ class WKTParserTest extends FunSpec {
parseAll(value, "12") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -117,7 +117,7 @@ class WKTParserTest extends FunSpec {
parseAll(value, "12.123") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -129,7 +129,7 @@ class WKTParserTest extends FunSpec {
parseAll(value, """"helloWorld"""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -141,7 +141,7 @@ class WKTParserTest extends FunSpec {
parseAll(value, """"Barbados 1938 / Barbados National Grid"""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -153,7 +153,7 @@ class WKTParserTest extends FunSpec {
parseAll(authority, """AUTHORITY["EPSG","7019"]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -166,7 +166,7 @@ class WKTParserTest extends FunSpec {
parseAll(spheroid, """SPHEROID["GRS 1980", 6378137.0, 298.257222101, AUTHORITY["EPSG","7019"]]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -178,7 +178,7 @@ class WKTParserTest extends FunSpec {
parseAll(spheroid, """SPHEROID["GRS 1980", 6378137.0, 298.257222101]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -190,7 +190,7 @@ class WKTParserTest extends FunSpec {
parseAll(toWgs, """TOWGS84[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -206,7 +206,7 @@ class WKTParserTest extends FunSpec {
parseAll(datum, """DATUM["NAD83 Canadian Spatial Reference System", SPHEROID["GRS 1980", 6378137.0, 298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[-0.991, 1.9072, 0.5129, 0.0257899075194932, -0.009650098960270402, -0.011659943232342112, 0.0], AUTHORITY["EPSG","6140"]]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -221,7 +221,7 @@ class WKTParserTest extends FunSpec {
parseAll(datum, """DATUM["NAD83 Canadian Spatial Reference System", SPHEROID["GRS 1980", 6378137.0, 298.257222101, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6140"]]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -236,7 +236,7 @@ class WKTParserTest extends FunSpec {
parseAll(datum, """DATUM["NAD83 Canadian Spatial Reference System", SPHEROID["GRS 1980", 6378137.0, 298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[-0.991, 1.9072, 0.5129, 0.0257899075194932, -0.009650098960270402, -0.011659943232342112, 0.0]]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -249,7 +249,7 @@ class WKTParserTest extends FunSpec {
parseAll(primeM, """PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -262,7 +262,7 @@ class WKTParserTest extends FunSpec {
parseAll(primeM, """PRIMEM["Greenwich", 0.0]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -276,7 +276,7 @@ class WKTParserTest extends FunSpec {
parseAll(twinAxis, """AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -288,7 +288,7 @@ class WKTParserTest extends FunSpec {
parseAll(unitField, """UNIT["degree", 0.017453292519943295]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -312,7 +312,7 @@ class WKTParserTest extends FunSpec {
parseAll(geogcs, geo) match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -325,7 +325,7 @@ class WKTParserTest extends FunSpec {
parseAll(projection, """PROJECTION["Lambert_Conformal_Conic_2SP", AUTHORITY["EPSG","9802"]]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -337,7 +337,7 @@ class WKTParserTest extends FunSpec {
parseAll(parameter, """PARAMETER["central_meridian", 3.0]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -353,7 +353,7 @@ class WKTParserTest extends FunSpec {
parseAll(parameterList, """PARAMETER["central_meridian", 3.0], PARAMETER["latitude_of_origin", 42.0], PARAMETER["standard_parallel_1", 42.75], PARAMETER["false_easting", 1700000.0]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand Down Expand Up @@ -393,7 +393,7 @@ class WKTParserTest extends FunSpec {
parseAll(projcs, projcsString) match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -410,7 +410,7 @@ class WKTParserTest extends FunSpec {
parseAll(vertcs, """VERT_CS["EVRF2007 height", VERT_DATUM["European Vertical Reference Frame 2007", 2005, AUTHORITY["EPSG","5215"]], UNIT["m", 1.0], AXIS["Gravity-related height", UP], AUTHORITY["EPSG","5621"]]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -424,7 +424,7 @@ class WKTParserTest extends FunSpec {
parseAll(getAxisList, """AXIS["x", EAST], AXIS["y", NORTH]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -436,7 +436,7 @@ class WKTParserTest extends FunSpec {
parseAll(localDatum, """LOCAL_DATUM["Unknown", 0]""") match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -456,7 +456,7 @@ class WKTParserTest extends FunSpec {
parseAll(localcs, localCSString) match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand All @@ -480,7 +480,7 @@ class WKTParserTest extends FunSpec {
parseAll(geoccs, geoCCSString) match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand Down Expand Up @@ -524,7 +524,7 @@ class WKTParserTest extends FunSpec {
parseAll(compdcs, geoCCSString) match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand Down Expand Up @@ -560,7 +560,7 @@ class WKTParserTest extends FunSpec {
parseAll(projcs, projcsString) match {
case Success(n, _) =>
assert(n == expected)
case Failure(msg, _) =>
case NoSuccess(msg, _) =>
info(msg)
fail()
}
Expand Down