From: sgebh <ste...@gm...> - 2008-07-15 13:36:01
|
Hallo. I tried iwth everything in the tutorials but i get only errors. I use the gt2.5-m0 jars. I read the CRS from shapefile and need the epsg code for it. when trying: CRS.lookupIdentifier(mycrs, true); i get the subsequent errors. i tried with all the different epsg* jars in the classpath without success. only with the postgres version (i installed the epsg database) i get som more errors (e.g. password authentification for user geotools failed). can anyone please help me with that. org.opengis.referencing.FactoryException: Geotools extension required for "getIdentifiedObjectFinder" operation. at org.geotools.referencing.factory.AuthorityFactoryAdapter.getGeotoolsFactory(AuthorityFactoryAdapter.java:503) at org.geotools.referencing.factory.AuthorityFactoryAdapter.access$000(AuthorityFactoryAdapter.java:74) at org.geotools.referencing.factory.AuthorityFactoryAdapter$Finder.<init>(AuthorityFactoryAdapter.java:894) at org.geotools.referencing.factory.FallbackAuthorityFactory$Finder.<init>(FallbackAuthorityFactory.java:833) at org.geotools.referencing.factory.FallbackAuthorityFactory.getIdentifiedObjectFinder(FallbackAuthorityFactory.java:816) at org.geotools.referencing.factory.ManyAuthoritiesFactory$Finder.next(ManyAuthoritiesFactory.java:836) at org.geotools.referencing.factory.ManyAuthoritiesFactory$Finder.findIdentifier(ManyAuthoritiesFactory.java:893) at org.geotools.referencing.factory.ThreadedAuthorityFactory$Finder.findIdentifier(ThreadedAuthorityFactory.java:1058) at org.geotools.referencing.CRS.lookupIdentifier(CRS.java:736) at tests.wkttest.main(wkttest.java:17) -- View this message in context: http://www.nabble.com/CRS.lookupIdentifier-does-not-work-tp18465489p18465489.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. |
From: Cédric B. <ced...@ge...> - 2008-07-15 13:56:09
|
Hi , sgebh a écrit : > Hallo. > I tried iwth everything in the tutorials but i get only errors. > I use the gt2.5-m0 jars. I read the CRS from shapefile and need the epsg > code for it. when trying: CRS.lookupIdentifier(mycrs, true); i get the > subsequent errors. i tried with all the different epsg* jars in the > classpath without success. you should only have the epsg-hsql jar in your classpath. Please try again keeping only the epsg-hsql jar. I hope this one will do the job you want to ... Cheers, Cédric. > only with the postgres version (i installed the > epsg database) i get som more errors (e.g. password authentification for > user geotools failed). > can anyone please help me with that. > > org.opengis.referencing.FactoryException: Geotools extension required for > "getIdentifiedObjectFinder" operation. > at > org.geotools.referencing.factory.AuthorityFactoryAdapter.getGeotoolsFactory(AuthorityFactoryAdapter.java:503) > at > org.geotools.referencing.factory.AuthorityFactoryAdapter.access$000(AuthorityFactoryAdapter.java:74) > at > org.geotools.referencing.factory.AuthorityFactoryAdapter$Finder.<init>(AuthorityFactoryAdapter.java:894) > at > org.geotools.referencing.factory.FallbackAuthorityFactory$Finder.<init>(FallbackAuthorityFactory.java:833) > at > org.geotools.referencing.factory.FallbackAuthorityFactory.getIdentifiedObjectFinder(FallbackAuthorityFactory.java:816) > at > org.geotools.referencing.factory.ManyAuthoritiesFactory$Finder.next(ManyAuthoritiesFactory.java:836) > at > org.geotools.referencing.factory.ManyAuthoritiesFactory$Finder.findIdentifier(ManyAuthoritiesFactory.java:893) > at > org.geotools.referencing.factory.ThreadedAuthorityFactory$Finder.findIdentifier(ThreadedAuthorityFactory.java:1058) > at org.geotools.referencing.CRS.lookupIdentifier(CRS.java:736) > at tests.wkttest.main(wkttest.java:17) > |
From: Jody G. <jga...@re...> - 2008-07-15 18:20:17
|
I wonder if we can do a check for multiple epsg jars on the classpath and die with a sensible error message? Cédric Briançon wrote: > Hi , > > sgebh a écrit : > >> Hallo. >> I tried iwth everything in the tutorials but i get only errors. >> I use the gt2.5-m0 jars. I read the CRS from shapefile and need the epsg >> code for it. when trying: CRS.lookupIdentifier(mycrs, true); i get the >> subsequent errors. i tried with all the different epsg* jars in the >> classpath without success. >> > you should only have the epsg-hsql jar in your classpath. Please try > again keeping only the epsg-hsql jar. I hope this one will do the job > you want to ... > Cheers, > > Cédric. > >> only with the postgres version (i installed the >> epsg database) i get som more errors (e.g. password authentification for >> user geotools failed). >> can anyone please help me with that. >> >> org.opengis.referencing.FactoryException: Geotools extension required for >> "getIdentifiedObjectFinder" operation. >> at >> org.geotools.referencing.factory.AuthorityFactoryAdapter.getGeotoolsFactory(AuthorityFactoryAdapter.java:503) >> at >> org.geotools.referencing.factory.AuthorityFactoryAdapter.access$000(AuthorityFactoryAdapter.java:74) >> at >> org.geotools.referencing.factory.AuthorityFactoryAdapter$Finder.<init>(AuthorityFactoryAdapter.java:894) >> at >> org.geotools.referencing.factory.FallbackAuthorityFactory$Finder.<init>(FallbackAuthorityFactory.java:833) >> at >> org.geotools.referencing.factory.FallbackAuthorityFactory.getIdentifiedObjectFinder(FallbackAuthorityFactory.java:816) >> at >> org.geotools.referencing.factory.ManyAuthoritiesFactory$Finder.next(ManyAuthoritiesFactory.java:836) >> at >> org.geotools.referencing.factory.ManyAuthoritiesFactory$Finder.findIdentifier(ManyAuthoritiesFactory.java:893) >> at >> org.geotools.referencing.factory.ThreadedAuthorityFactory$Finder.findIdentifier(ThreadedAuthorityFactory.java:1058) >> at org.geotools.referencing.CRS.lookupIdentifier(CRS.java:736) >> at tests.wkttest.main(wkttest.java:17) >> >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
From: Martin D. <mar...@ge...> - 2008-07-16 07:31:38
|
> I wonder if we can do a check for multiple epsg jars on the classpath > and die with a sensible error message? Actually there is an other possible approach: we could just set a lower priority to epsg-wkt compared to other factories. Currently it has no priority setting at all, thus leading to random behavior. I didn't do that because I though that epsg-wkt was to be removed in this release, but if we need to keep it around a little bit more I will look at that. Martin |
From: sgebh <ste...@gm...> - 2008-07-21 09:59:22
|
Hi, yes, this is what i tried. but without success. i tested with all jars exclusively in the classpath (there was always only one epsg jar). i actually want to compare the projection of a shapefile to a self defined one and wanted to do that via epsg code. is it possible to check the mathtransform instead of comparing epsg codes (since lookupidentifier doesn't work)? Cédric Briançon-2 wrote: > > Hi , > > sgebh a écrit : >> Hallo. >> I tried iwth everything in the tutorials but i get only errors. >> I use the gt2.5-m0 jars. I read the CRS from shapefile and need the epsg >> code for it. when trying: CRS.lookupIdentifier(mycrs, true); i get the >> subsequent errors. i tried with all the different epsg* jars in the >> classpath without success. > you should only have the epsg-hsql jar in your classpath. Please try > again keeping only the epsg-hsql jar. I hope this one will do the job > you want to ... > Cheers, > > Cédric. >> only with the postgres version (i installed the >> epsg database) i get som more errors (e.g. password authentification for >> user geotools failed). >> can anyone please help me with that. >> >> org.opengis.referencing.FactoryException: Geotools extension required for >> "getIdentifiedObjectFinder" operation. >> at >> org.geotools.referencing.factory.AuthorityFactoryAdapter.getGeotoolsFactory(AuthorityFactoryAdapter.java:503) >> at >> org.geotools.referencing.factory.AuthorityFactoryAdapter.access$000(AuthorityFactoryAdapter.java:74) >> at >> org.geotools.referencing.factory.AuthorityFactoryAdapter$Finder.<init>(AuthorityFactoryAdapter.java:894) >> at >> org.geotools.referencing.factory.FallbackAuthorityFactory$Finder.<init>(FallbackAuthorityFactory.java:833) >> at >> org.geotools.referencing.factory.FallbackAuthorityFactory.getIdentifiedObjectFinder(FallbackAuthorityFactory.java:816) >> at >> org.geotools.referencing.factory.ManyAuthoritiesFactory$Finder.next(ManyAuthoritiesFactory.java:836) >> at >> org.geotools.referencing.factory.ManyAuthoritiesFactory$Finder.findIdentifier(ManyAuthoritiesFactory.java:893) >> at >> org.geotools.referencing.factory.ThreadedAuthorityFactory$Finder.findIdentifier(ThreadedAuthorityFactory.java:1058) >> at org.geotools.referencing.CRS.lookupIdentifier(CRS.java:736) >> at tests.wkttest.main(wkttest.java:17) >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > -- View this message in context: http://www.nabble.com/CRS.lookupIdentifier-does-not-work-tp18465489p18565479.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. |