-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Martin,

I wrote now a testclass a passed the jar gt2-epsg-hsql-SNAPSHOT.jar to
the classpath.
> Is it loaded if you write a small test program that you run from the
> command line?
public class LoadFactoryTest {
    /**
     * @param args
     */
    public static void main(String[] args) {
        FactoryUsingWKT factoryUsingWKT = new FactoryUsingWKT();
        GeometryFactory factory = new GeometryFactory();
        Point point = factory.createPoint(new
Coordinate(673327.1626257898, 5144497.679584979));
        System.out.println("Original coordinates: (" + point.getX() +
", " + point.getY() + ")" );
        point = (Point) JTSUtility.transform(point, "epsg:100003",
"epsg:900913");
        System.out.println("Transformed coordinates: (" + point.getX()
+ ", " + point.getY() + ")" );
    }
}

I guess, I am skipping something, because I still get an error
message. I also realized the cache collection, from where the srsCode
is looked up, is empty?

Original coordinates: (673327.1626257898, 5144497.679584979)
Transformed coordinates: (673327.1626257898, 5144497.679584979)
org.opengis.referencing.NoSuchAuthorityCodeException: Unknown EPSG_NUMBER
    at
org.geotools.referencing.crs.EPSGCRSAuthorityFactory.createCoordinateReferenceSystem(EPSGCRSAuthorityFactory.java:176)
    at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:485)
    at
org.geotools.referencing.factory.FallbackAuthorityFactory.createCoordinateReferenceSystem(FallbackAuthorityFactory.java:524)
    at
org.geotools.referencing.factory.AllAuthoritiesFactory.createCoordinateReferenceSystem(AllAuthoritiesFactory.java:784)
    at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:674)
    at org.geotools.referencing.CRS.decode(CRS.java:340)
    at org.geotools.referencing.CRS.decode(CRS.java:276)
    at
it.unibz.inf.dis.bz10m.util.JTSUtility.transform(JTSUtility.java:54)
    at
it.unibz.inf.dis.bz10m.test.crs.LoadFactory.main(LoadFactory.java:28)

> It would help to know if the issue is specific to servlet environment.
Yes, it is specific to a servlet environment. I am using tomcat as
servlet engine

regards and thanks
 Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHur1PkU/rG1iPYwgRAvq/AKDMh4u/N2JntzjEPoSB+qDxTQ/beQCgocQi
RO5DMOd+4042XZsvhCpqLDI=
=FqIB
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to