|
From: <ji...@co...> - 2004-07-15 18:28:38
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/GEOT-215 Here is an overview of the issue: --------------------------------------------------------------------- Key: GEOT-215 Summary: CoordinateSystemEPSGFactory fails on lookup of GCS_North_American_1983 (4269) Type: Bug Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: GeoTools Components: main Assignee: Reporter: Bryce Nordgren Created: Thu, 15 Jul 2004 2:27 PM Updated: Thu, 15 Jul 2004 2:27 PM Environment: Linux RH7.2 running EPSG database on PostGIS Geotools was checked out (via svn) from scratch on 7/14/04 Description: This error report concerns an "Unsupported Operation Exception" which is thrown by org.geotools.cs.CoordinateSystemEPSGFactory.createParameters(String) because a field in the EPSG database which normally contains data is null. It does this when "createParameters" is called with a value of 1696. This occurs when createWGS84ConversionInfo is iterating over all the possible ways of converting between NAD83 and WGS84. TEST CONTEXT: The exception is thrown by an extremely limited test program which just reads TIFF metadata and attempts to create a coordinate system with CoordinateSystemModifiedEPSGFactory which is successfully connected to my own EPSG database served by a postgis server on localhost. FAILURE MODE: There are only 265 cases (out of 9517) where this code will fail in this particular way. However, the failure mode is such that if any transformation method lookup fails, an exception is thrown by createCoordinateSystem(). In my particular case, (epsg_factory.createCoordinateSystem("4269"), or GCS_North_American_1983), there are 54 registered conversions between WGS84 and GCS_North_American_1983. Because one out of 54 registered conversions failed, the entire operation failed. TO REPRODUCE: 1] create a CoordinateSystemEPSGFactory, or one of it's subclasses, and ensure the connection to the database is successful. 2] call createCoordinateSystem("4269") ; on your factory. CALL STACK: Exception in thread "main" java.lang.UnsupportedOperationException: Not yet implemented at org.geotools.cs.CoordinateSystemEPSGFactory.createParameters(CoordinateSystemEPSGFactory.java:1517) at org.geotools.cs.CoordinateSystemEPSGFactory.createWGS84ConversionInfo(CoordinateSystemEPSGFactory.java:1013) at org.geotools.cs.CoordinateSystemEPSGFactory.createDatum(CoordinateSystemEPSGFactory.java:953) at org.geotools.cs.CoordinateSystemAuthorityFactory.createHorizontalDatum(CoordinateSystemAuthorityFactory.java:191) at org.geotools.cs.CoordinateSystemEPSGFactory.createGeographicCoordinateSystem(CoordinateSystemEPSGFactory.java:1141) at org.geotools.cs.CoordinateSystemEPSGFactory.createCoordinateSystem(CoordinateSystemEPSGFactory.java:1087) at org.geotools.data.geotiff.TiffMetadataOpener.main(TiffMetadataOpener.java:112) SUGGESTION: Would it make sense for createWGS84ConversionInfo() to catch this exception and include all the conversions which successfully read while omitting those which do not? --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |