Eamonn Linehan a écrit :

1: CRSFactory crsFactory = FactoryFinder.getCRSFactory(null);
2: crsFactory.createFromWKT(wkt);

The second line above is causing an exception that I can't figure out how to
fix. According to any snippets I can find and the API this appears to be OK.
What should I check?
[...snip...]

Caused by: java.util.MissingResourceException: Can't find resource for bundle 
java.util.PropertyResourceBundle, key 2
        at java.util.ResourceBundle.getObject(Unknown Source)
        at java.util.ResourceBundle.getString(Unknown Source)
        at 
org.geotools.util.ResourceInternationalString.toString(ResourceInternational 
String.java:91)
        at 
org.geotools.referencing.NamedIdentifier.<init>(NamedIdentifier.java:218)
        at 
org.geotools.referencing.operation.transform.ProjectiveTransform$ProviderAffine.<clinit>(ProjectiveTransform.java:509)
        ... 14 more

gt2-referencing.jar is looking for a localized resources in one of *.utf files, and doesn't find it. Are the *.utf files included in the gt2-referencing.jar file? If they are not there, does the JAR come from a download from Geotools web site or a Maven build (in which case there would be a bug in our build that need to be fixed)?

        Martin.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to