From: Jody G. <jga...@re...> - 2006-11-23 00:42:38
|
Hi Martin do you mind adding your instructions as a child of this page? - http://docs.codehaus.org/display/GEOTDOC/05+Advanced Thanks muchly; Jody > Steve.Ansari a =E9crit : > =20 >> I'm having trouble 'registering' a custom projection with GT2.3. Whil= e=20 >> following the examples for other projections such as AlbersEqualArea=20 >> seems to work, I keep getting an exception such as: >> >> org.opengis.referencing.NoSuchIdentifierException: No transform for=20 >> classification "MyProjection". >> >> I've been working off of the somewhat dated "How to add new projection= s"=20 >> tutorial ( http://geotools.codehaus.org/How+to+add+new+projections ) a= nd=20 >> I'm stuck on Step 9, which may be my problem. The tutorial says to "S= ee=20 >> the constructor for org.geotools.ct.proj.Provider, one line of code.",= =20 >> but I'm unable to find this class. Has this moved in 2.3? I've found= =20 >> the AbstractProvider inner class in MapProjection but this was no help= . >> =20 > > > Well, the above link is clearly outdated. I will try to update it when = I will=20 > have a chance. > > The last step is to create the following text file: > > META-INF/services/org.geotools.referencing.operation.MathTransformProvi= der > > and put the classname of your projection in this file (one line for eac= h=20 > implementation). > > Example: > > http://svn.geotools.org/geotools/trunk/gt/modules/library/referencing/s= rc/main/resources/META-INF/services/org.geotools.referencing.operation.Ma= thTransformProvider > > Martin > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > =20 |