Steve.Ansari a écrit : > I'm having trouble 'registering' a custom projection with GT2.3. While > following the examples for other projections such as AlbersEqualArea > seems to work, I keep getting an exception such as: > > org.opengis.referencing.NoSuchIdentifierException: No transform for > classification "MyProjection". > > I've been working off of the somewhat dated "How to add new projections" > tutorial ( http://geotools.codehaus.org/How+to+add+new+projections ) and > I'm stuck on Step 9, which may be my problem. The tutorial says to "See > the constructor for org.geotools.ct.proj.Provider, one line of code.", > but I'm unable to find this class. Has this moved in 2.3? I've found > the AbstractProvider inner class in MapProjection but this was no help.
Well, the above link is clearly outdated. I will try to update it when I will have a chance. The last step is to create the following text file: META-INF/services/org.geotools.referencing.operation.MathTransformProvider and put the classname of your projection in this file (one line for each implementation). Example: http://svn.geotools.org/geotools/trunk/gt/modules/library/referencing/src/main/resources/META-INF/services/org.geotools.referencing.operation.MathTransformProvider 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=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
