Hello!

I'm experiencing an odd error that I can find no references to in this
mailing list or on the wider web that I hope someone can clear up for me.

While attempting to execute the following (in Scala):

val wkt = """
PROJCS["Albers_Conical_Equal_Area",
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.2572221010002,
AUTHORITY["EPSG","7019"]],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4269"]],
PROJECTION["Albers_Conic_Equal_Area"],
PARAMETER["standard_parallel_1",29.5],
PARAMETER["standard_parallel_2",45.5],
PARAMETER["latitude_of_center",23],
PARAMETER["longitude_of_center",-96],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]]]
"""
org.geotools.referencing.CRS.parseWKT(wkt)

I am encountering the following exception:
  java.lang.NoSuchFieldError: METER

This is happening in this example, with a different WKT string, and
irrespective of the spelling of meter or even the presence of a UNIT field
at all.  Is there a solution to this problem?

My build.sbt file includes the following library dependencies:
libraryDependencies ++= Seq(
  "javax.measure"         %% "jsr-275"          % "0.9.2" from "
http://central.maven.org/maven2/javax/measure/jsr-275/0.9.2/jsr-275-0.9.2.jar
",
  "java3d"                %% "vecmath"          % "1.5.2" from "
http://maven.geotoolkit.org/java3d/vecmath/1.5.2/vecmath-1.5.2.jar";,
  "org.geotools"          %% "gt-data"          % "14.3",
  "org.geotools"          %% "gt-shapefile"     % "14.3",
  "org.geotools"          %% "gt-api"           % "14.3",
  "org.geotools"          %% "gt-main"          % "14.3",
  "org.geotools"          %% "gt-metadata"      % "14.3",
  "org.geotools"          %% "gt-opengis"       % "14.3",
  "org.geotools"          %% "gt-referencing"   % "14.3",
  "org.geotools"          %% "gt-epsg-wkt"      % "14.3"
)

Any help would be greatly appreciated!

Thanks.

-Justin
------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to