From: Jan J. <h....@ce...> - 2008-05-28 12:23:08
|
Hi Alvaro > >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. > As far as I can see both modules refers just to geoapi2.2 (looking to the code and there just no org.opengis.spatialschema.geometry.DirectPosition in TINTriangle etc.. ) It is true that the gsoc module is not included into the build of trunk so sometimes it take some time to update the dependencies, but this should work. Did you try the maven build? It should help you to use proper jars. May be the reason also can be that you use old referencing snapshot. Bests, Jan. |