From: Bryce L N. <bno...@fs...> - 2005-05-04 18:35:01
|
Scott, Ok, we started quite a discussion on geotools-devel about this yesterday. If you are on Windows, the quickest (and ironically, the most complete) fix for you is to download and install the EPSG database as per the instructions on: http://modules.geotools.org/main/apidocs/org/geotools/referencing/factory/epsg/package-summary.html in the section concerning installation on Windows. You will also need the epsg-access plugin. If you are not on windows, I fear you have caught Geotools with it's pants down. In this case, the quickest fix is for me to make a modification to the GeoTIFF source such that it can use the epsg-wkt plugin (which I will be doing anyway). This approach, however, severely reduces the number of projections the Geotiff reader can read. In the future, there will be a way to access the full epsg database from non-Windows platforms. So: If you're on windows, try the above. If you're not on windows, download the new Geotiff code when it gets done. (Hopefully today). Bryce Scott Pezanowski <spe...@ps...> wrote on 05/04/2005 08:12:44 AM: > Bryce, > > Attached are the files you requested. Also, I am running code I checked > out of SVN yesterday. > > Thanks, > Scott > > > Bryce L Nordgren wrote: > > >Scott, > > > >Um.. I meant files that start with "org.opengis.referencing" not > >"org.geotools.referencing." sorry. > > > >Scott Pezanowski <spe...@ps...> wrote on 05/03/2005 09:46:04 AM: > > > > > > > >>Bryce, > >> > >>I thought I'd elaborate more about this previous email. I am getting the > >>following exception message when I try to run the GeoTiffReader: > >> > >> [java] Exception in thread "main" > >>org.geotools.factory.FactoryNotFoundException: No factory found for > >>category "CSAuthorityFactory". > >> [java] at > >>org.geotools.factory.FactoryRegistry. > >>getServiceProvider(FactoryRegistry.java:193) > >> [java] at > >> > >> > >> > >org.geotools.factory.FactoryCreator. > getServiceProvider(FactoryCreator.java:85) > > > > > > > >> [java] at > >>org.geotools.referencing.FactoryFinder. > >>getCSAuthorityFactory(FactoryFinder.java:394) > >> [java] at > >>org.geotools.gce.geotiff.GeoTiffCoordinateSystemAdapter. > >><init>(GeoTiffCoordinateSystemAdapter.java:185) > >> [java] at > >>org.geotools.gce.geotiff.GeoTiffReader.read(GeoTiffReader.java:183) > >> [java] at > >>edu.psu.geovista.sp.MapToolViewer.mapPane(MapToolViewer.java:169) > >> [java] at > >>edu.psu.geovista.sp.MapToolViewer.main(MapToolViewer.java:147) > >> [java] [ERROR] Java Result: 1 > >> > >> > >>I thought it might have to do with the hints but I'm not positive about > >>this. Do you know what might be causing this exception? This is my code: > >> > >> URL tifURL = new URL("file:///d:/NeoCITIESData/9233a.tif"); > >> > >> AbstractGridFormat creator = new GeoTiffFormat(); > >> GeoTiffReader reader = new GeoTiffReader(creator, tifURL, null); > >> GridCoverage gc = reader.read(null); > >> > >> > >>Thanks, > >>Scott > >> > >> > >> > >> > >>-------- Original Message -------- > >>Subject: Re: GeoTiffReader > >>Date: Tue, 03 May 2005 10:53:45 -0400 > >>From: Scott Pezanowski <spe...@ps...> > >>Reply-To: spe...@ps... > >>Organization: Penn State University > >>To: Bryce L Nordgren <bno...@fs...> > >>References: > >> > >> > >> > ><OF1...@no...> > > > > > >> > >>Bryce, > >> > >>The constructor for the GeoTiffReader takes Hints as one of its > >>parameters. What should the Hints consist of? > >> > >>Thanks, > >>Scott > >> > >> > >>Bryce L Nordgren wrote: > >> > >> > >> > >>>Scott, > >>> > >>>You should be able to cd into the top level geotiff directory > >>>(gt/plugin/geotiff) and type maven jar:install. > >>> > >>>The notices from the automated builds since I've checked this code in > >>> > >>> > >have > > > > > >>>been breaking at "main" due to other people fiddling with things. My > >>> > >>> > >DNS > > > > > >>>server is broken this morning due to a power outage last night. > >>> > >>> > >Apparently > > > > > >>>Lotus Notes ignores DNS because I'm still getting email. But for the > >>>moment, I can't get at the servers... > >>> > >>>Bryce > >>> > >>> > >>> > >>> > >>> > > > > > > > >>> Scott Pezanowski > >>> > >>> > > > > > > > >>> <spezanowski@psu. > >>> > >>> > > > > > > > >>> edu> > >>> > >>> > >To > > > > > >>> Bryce L Nordgren > >>> > >>> > > > > > > > >>> 04/27/2005 07:09 <bno...@fs...> > >>> > >>> > > > > > > > >>> AM > >>> > >>> > >cc > > > > > > > > > > > >Subject > > > > > >>> Please respond to Re: GeoTiffReader > >>> > >>> > > > > > > > >>> spezanowski@psu.e > >>> > >>> > > > > > > > >>> du > >>> > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>> > >>> > >>>Bryce, > >>> > >>>Thanks for the update. I did an update of Geotools from Subversion and > >>>did a build. The Geotiff module simply said cleaned and compiled but > >>>didn't say tested or Installed. Because the jar file was not created, > >>>can I do development without it? > >>> > >>>Thanks, > >>>Scott > >>> > >>> > >>> > >>>Bryce L Nordgren wrote: > >>> > >>> > >>> > >>> > >>> > >>>>If you're still interested, the Geotiff reader is compiled and working. > >>>> > >>>> > >>>> > >>>> > >>>It > >>> > >>> > >>> > >>> > >>>>won't do "user defined" projections (yet), but if your coordinate > >>>> > >>>> > >system > > > > > >>>>has an EPSG code it should work for you. > >>>> > >>>>You'll have to check it out of the Subversion repository (or download a > >>>>nightly build) to get it. It's not included in any of the milestone > >>>>releases (yet). > >>>> > >>>>If you use it, let me know if it's working for you and email me > >>>> > >>>> > >anything > > > > > >>>>that breaks it. :) > >>>> > >>>>Bryce > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>> Scott Pezanowski > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>> <spezanowski@psu. > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>> edu> > >>>> > >>>> > >To > > > > > >>>> > >>>> > >>> > >>> > >>> > >>>> bno...@fs... > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>> 03/23/2005 11:07 > >>>> > >>>> > >cc > > > > > >>>> > >>>> > >>> > >>> > >>> > >>>> AM > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >Subject > > > > > >>>> > >>>> > >>> > >>> > >>> > >>>> GeoTiffReader > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>> Please respond to > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>> spezanowski@psu.e > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>> du > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>>>Bryce, > >>>> > >>>>I was told your the person to talk to about this. I was wondering > >>>> > >>>> > >what's > > > > > >>>>the current state of the GeoTiffReader for Geotools? I would like to > >>>> > >>>> > >use > > > > > >>>>aerial imagery in a project and I'm trying to decide what format to > >>>> > >>>> > >use. > > > > > >>>>Would you recommend using GeoTiff? > >>>> > >>>>Thanks, > >>>>Scott > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> > > > > > > > > > > > > org.geotools.referencing.operation.MathTransformFactory > org.geotools.referencing.factory.epsg.DefaultFactory > org.geotools.referencing.factory.epsg.FactoryFromWKT > org.geotools.referencing.factory.GeotoolsFactory > org.geotools.referencing.factory.epsg.DefaultFactory > org.geotools.referencing.factory.epsg.FactoryFromWKT > org.geotools.referencing.factory.GeotoolsFactory > org.geotools.referencing.factory.epsg.DefaultFactory > org.geotools.referencing.factory.epsg.FactoryFromWKT > org.geotools.referencing.factory.GeotoolsFactory > org.geotools.referencing.factory.DatumAliases > org.geotools.referencing.operation.CoordinateOperationFactory |