Ciao Martin, you should be missing jsr-275-1.0-beta-2 jar as well as vecmath-1.3.1.jar.
Ciao, Simone. ------------------------------------------------------- Ing. Simone Giannecchini GeoSolutions S.A.S. Owner - Software Engineer Via Carignoni 51 55041 Camaiore (LU) Italy phone: +39 0584983027 fax: +39 0584983027 mob: +39 333 8128928 http://www.geo-solutions.it http://simboss.blogspot.com/ http://www.linkedin.com/in/simonegiannecchini ------------------------------------------------------- On Fri, Feb 13, 2009 at 7:28 AM, Martin STRIZ <st...@chmi.cz> wrote: > Dear Users, > I'm very beginner in GeoTools and Java.I try to write very simple java > program with will transform coordinates from WGS84 to Gauss-Kruger > coordinates. So, on the beginning I would like to define some coordinate > system by using this method: > > public CoordinateReferenceSystem SetC() throws IOException { > String wkt = > "PROJCS[\"UTM_Zone_10N\", " + "GEOGCS[\"WGS84\", " + > "DATUM[\"WGS84\", " + > "SPHEROID[\"WGS84\", 6378137.0, 298.257223563]], " + > "PRIMEM[\"Greenwich\", 0.0], " + > "UNIT[\"degree\",0.017453292519943295], " + > "AXIS[\"Longitude\",EAST], " + "AXIS[\"Latitude\",NORTH]], " + > "PROJECTION[\"Transverse_Mercator\"], " + > "PARAMETER[\"semi_minor\", 6356752.314245179], " + > "PARAMETER[\"central_meridian\", -123.0], " + > "PARAMETER[\"latitude_of_origin\", 0.0], " + > "PARAMETER[\"scale_factor\", 0.9996], " + > "PARAMETER[\"false_easting\", 500000.0], " + > "PARAMETER[\"false_northing\", 0.0], " + > "UNIT[\"metre\",1.0], " + > "AXIS[\"x\",EAST], " + "AXIS[\"y\",NORTH]]"; > > try { > CoordinateReferenceSystem crs = CRS.parseWKT(wkt1); > return crs; > } catch (FactoryException parse) { > throw (IOException)new IOException("Unabled to parse WKTEXT > into a CRS:" + > wkt).initCause(parse); > } > } > > In line ...CRS.parseWKT(wkt1) was catched exception. > > WARNING: Can't load a service for category "MathTransformFactory". Cause > is "NoClassDefFoundError: javax/measure/converter/ConversionException". > Exception in thread "AWT-EventQueue-0" > org.geotools.factory.FactoryNotFoundException: No factory of kind > "MathTransformFactory" found. > at > org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:374) > at > org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:143) > at > org.geotools.referencing.ReferencingFactoryFinder.getFactory(ReferencingFactoryFinder.java:193) > > atorg.geotools.referencing.ReferencingFactoryFinder.getMathTransformFactory(ReferencingFactoryFinder.java:503) > at > org.geotools.referencing.factory.ReferencingObjectFactory.getMathTransformFactory(ReferencingObjectFactory.java:152) > at > org.geotools.referencing.factory.ReferencingObjectFactory.createFromWKT(ReferencingObjectFactory.java:1084) > at org.geotools.referencing.CRS.parseWKT(CRS.java:435) > ....... > ....... > > > > How I said I'm beginner and I don't know exactly which jar's from > geotools I need. I used this library from geotools : > gt-api-2.5.2.jar, > gt-metadata-2.5.2.jar;gt-referencing-2.5.2.jar,gt-epsg-wkt-2.5.2.jar; > geoapi-2.2-M1.jar > > Thank you for any king of help > > Martin > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Geotools-gt2-users mailing list > Geotools-gt2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users