|
From: Rahul... हम पंछी उन्मुक्त ग. के <rah...@gm...> - 2009-06-04 07:19:37
|
*add the projection provider entry in * * \modules\library\referencing\src\main\resources\META-INF\services\org.geotools.referencing.operation.MathTransformProvider. Only extending the MapProjection won't work. * ---------- Forwarded message ---------- From: Rahul... हम पंछी उन्मुक्त गगन के <rah...@gm...> Date: 2009/6/4 Subject: Re: Problem building geotools To: Jody Garnett <jod...@gm...> Cc: "geo...@li..." < geo...@li...> Sorry I forgot to mention that.. ;-( .. Actually earlier I was trying to build the snapshot code from GT-referencing M1, may be therefore I was getting errors at runtime. But when I builts the latest code from SVN, it was working. Thanks again for your help. Now I will try to add a new projection to it. 2009/6/4 Jody Garnett <jod...@gm...> Glad to hear, remember when we talk on the email lists we need to send > answers to the email lists (for the next people who get stuck with the > same questions). > What did you do differently? or was my check list sufficient? > > Jody > > 2009/6/3 Rahul... हम पंछी उन्मुक्त गगन के <rah...@gm...>: > > Thanks Jody.. Its working now. > > > > 2009/6/3 Jody Garnett <jod...@gm...> > >> > >> Just to confirm: > >> 1. you have checked out geotools src on your machine (not downloaded > >> 2.6-M1 that is too old) > >> 2. you have copied the jars in; or better yet run the refresh.xml > >> script to slurp the jars out of your local maven repository (ie > >> C:\users\rahul\.m2\repository) into the udig libs folder > >> 3. you have hit refresh so udig notices the new jars > >> > >> Jody > >> > >> 2009/6/3 Rahul... हम पंछी उन्मुक्त गगन के <rah...@gm...>: > >> > > >> > There is no problem in building geotools. I have built it and the > >> > referencing module. The problem occurs when I replace it with the > Udig's > >> > referencing jar. My custom Application doesn't start. Even there is no > >> > error > >> > in my workspace. > >> > 2009/6/3 Jody Garnett <jod...@gm...> > >> >> > >> >> We should keep this on the geotools list my friend; no need to tag in > >> >> everyone :-) > >> >> > >> >> Can I ask you to check out the source code rather than download > >> >> 2.6-M1? I made 2.6-M1 a while a go mostly to ensure that releasing > was > >> >> possible on the "new" 2.6.x branch. > >> >> > >> >> The build steps for geotools are in the developers guide (not the > user > >> >> guide) .. should be here: > >> >> - http://docs.codehaus.org/display/GEOT/2+Building > >> >> > >> >> It really looks like udig is distressed with working with this older > >> >> copy of 2.6.x ... the console.log has the following: > >> >> - 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) > >> >> > >> >> Without a MathTransform factory is is not going to be very happy. > >> >> > >> >> Can I ask you to follow the instructions for checking out geotools > >> >> from svn and building; if you jump on IRC #geotools channel I can try > >> >> and answer some questions. > >> >> > >> >> Traditionally you have needed a Java 5 for building geotools from > >> >> scratch; I tried today on both windows with Java 5 and linux with > Java > >> >> 6 and was successful. > >> >> > >> >> Jody > >> >> > >> >> 2009/6/3 Rahul... हम पंछी उन्मुक्त गगन के <rah...@gm... > >: > >> >> > Hi Jody, > >> >> > I am trying to add a new projection into geotools. For that I need > >> >> > to > >> >> > make > >> >> > changes in gt-referencing package. I have downloaded geotools-2.6M1 > >> >> > from > >> >> > SVN. The referencing jar that is used in my udig is > >> >> > gt-referencing-2.6-SNAPSHOT. I am following the building steps as > in > >> >> > geotools user guide. > >> >> > > >> >> > First of all I unzipped the source(org) of > >> >> > gt-referencing-2.6-SNAPSHOTsrc.zip to > >> >> > geotools-2.6-M1\modules\library\referencing\src\main\java and > >> >> > META-INF > >> >> > to > >> >> > geotools-2.6-M1\modules\library\referencing\src\main\resources. > >> >> > > >> >> > Then I built the module using the pom.xml of that module which > >> >> > created > >> >> > gt-referencing-2.6-M1.jar in the target. So far so good, build > >> >> > successful. > >> >> > > >> >> > Then I replaced the jar into \net.refractions.udig.libs\lib and > >> >> > changed > >> >> > the > >> >> > manifest.MF of libs plugin(removed the gt-referencing-2.6-snapshot > >> >> > reference > >> >> > and added the new one for gt-referencing-2.6-M1.jar in the > classPath. > >> >> > > >> >> > > >> >> > > >> >> > Now when I try to start the custom Application it gives some errors > >> >> > and > >> >> > exception. I have attached the log of the same. And the messages > that > >> >> > I > >> >> > am > >> >> > getting errors on the console that I have attached as console.log.: > >> >> > > >> >> > I don't think building the gt-referencing-2.6-SNAPSHOTsrc from > >> >> > geotools-2.6-M1's pom.xml makes any changes, or will it? > >> >> > > >> >> > NOTE: Right now I have not made any changes to the > >> >> > gt-referencing-2.6-SNAPSHOT source. I am just trying to see If I > can > >> >> > build > >> >> > it separately from Maven and replace with the one used in UDIG. > >> >> > > >> >> > -- > >> >> > Thanks, > >> >> > Rahul > >> > > >> > > >> > > >> > -- > >> > Thanks, > >> > Rahul > >> > > > > > > > > > -- > > Thanks, > > Rahul > > > -- Thanks, Rahul -- Thanks, Rahul |