Hello Geotoolers... This String is read from a .PRJ file: PROJCS["WGS_1984_UTM_Zone_31N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",3],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0],UNIT["Meter",1]]
and there is no problem creating a CRS from the string when i run my app out of eclipse. But, when i pack it all up (with fatjar actually - http://fjep.sourceforge.net/ ) to a JAR and run it, i get the following exception: > org.opengis.referencing.NoSuchIdentifierException: No transform for > classification "Transverse_Mercator". at > org.geotools.referencing.operation.DefaultMathTransformFactory.getProvider( >DefaultMathTransformFactory.java:266) at > org.geotools.referencing.operation.DefaultMathTransformFactory.getDefaultPa >rameters(DefaultMathTransformFactory.java:293) at > org.geotools.referencing.wkt.Parser.parseProjection(Parser.java:616) at > org.geotools.referencing.wkt.Parser.parseProjCS(Parser.java:920) at > org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.j >ava:276) at > org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.j >ava:257) at > org.geotools.referencing.factory.GeotoolsFactory.createFromWKT(GeotoolsFact >ory.java:1125) at org.geotools.referencing.CRS.parseWKT(CRS.java:355) * All the gt2 2.3.2 libs are inside the jar... * I even tried to call the jar with: java -cp gt2 myapp.jar where gt2 is a directory with all gt2 libs.... I am aware from http://udig.refractions.net/docs/api-geotools/org/geotools/ct/package-summary.html that Package org.geotools.ct should somehow provide this "Transverse_Mercator" classification name... but why is it not finding it when started from the jar? and which jar does actually contain this package? Any hints are very appreciated! Greetings Stefan Krüger bonn ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
