From: Cédric B. <ced...@ge...> - 2008-05-28 11:48:25
|
alvaro zabala a écrit : > Sorry, I think Im using an elder version of gsoc-transformation > source code.... No problem. I have the class you specified in the referencing module, in the package org/geotools/referencing/operation/builder. You should have a look to this class. > > I have realized that classes like MapTriangulationFactory have been > removed from project. > > Are these classes in a different geotools project, or TIN based > transformation has been removed? > > Best regards > > > Cédric Briançon escribió: >> alvaro zabala a écrit : >> >>> Hi, >>> >>> Im trying to build gsoc-transformations without maven. >>> To do that, Ive added these dependencies to the class-path: >>> >>> gt2-referencing-2.5-shapshot >>> gt2-main-2.5-snapshot >>> gt2-metadata-2.5-snapshot >>> gt2-coverage-2.5-snapshot >>> gt2-image-2.5-snapshot >>> >>> and JAI jars (vecmath, jai-core) and units.jar. >>> >>> I use gt2-referencing-2.5-snapshot jar version because project >>> pom.xml file references it. >>> >>> Im finding problems with geoapi version. >>> >>> If I use geoapi-2.0.jar I have compilation problems in >>> WarpGridTransform2D class >>> (It is looking for org.opengis.geometry.DirectPosition, but this >>> class in geoapi2.0 is in org.opengis.spatialschema package). >>> >>> org.geotools.referencing.operation.builder.algorithm.Circle doesnt >>> compile for the same reason. >>> The line "*this(new DirectPosition2D(0, 0), 0);*" use >>> DirectPosition2D, which extends org.opengis.geometry.DirectPosition, >>> but geoapi-2.0 doesnt have this class. >>> >>> If I use geoapi-2.2-snapshot instead geoapi2.0, DirectPosition class >>> is in the package org.opengis.geometry, but then I have more mutch >>> compilation problems. A lot of project's classes have imports to >>> org.opengis.spatialschema.geometry.DirectPosition: >>> MapTriangulationFactory. >>> TINTriangle, >>> etc. >>> >>> *So, the problem is that gsoc-transformation projects has references >>> to org.opengis.spatialschema.geometry.DirectPosition and to >>> org.opengis.geometry.DirectPosition. One class is from geoapi-2.0 >>> and the other is from geoapi-2.2.* >>> >>> How can I solve this problem? >>> >> Hi, >> >> the trunk of Geotools uses geoapi-2.2-snapshot, and this module >> should too, since spike is in the trunk directory. >> So you have to use this version of geoapi. >> What are the errors you get when you use this version ? >> If other projects you have need to call DirectPosition too, how about >> moving to the geoapi-2.2-snapshot version for these projects too ? >> >> Regards, >> Cédric. >> >>> Am I doing any mistake? Is there any version of gsoc-transformation >>> project which I could compile? >>> >>> Thanks in advance and best regards! >>> >>> >>> >>> >>> >>> >>> >> >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Geotools-gt2-users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > > |