HI I would like to write a plugin.
I understand that the plugins will be discovered by the FactoryRegistry.
So i am trying out the following code to see if i can iterate through the
other providers already there for geotools , but when i get to the second
line of code below i get the a ClassCastException error.
Set categories = Collections.singleton(new Class[]
{MathTransformProvider.class});
FactoryRegistry registry = new FactoryRegistry(categories);
This is the error message:
Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Class;
at
javax.imageio.spi.ServiceRegistry.<init>(ServiceRegistry.java:103)
at
org.geotools.factory.FactoryRegistry.<init>(FactoryRegistry.java:153)
at myfactorytest.Main.main(Main.java:38)
Could any body please help.
Thank you
--
View this message in context:
http://www.nabble.com/FactoryRegistry-ClassCastException-tp16116807p16116807.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users