[Geotools-devel] A tale of Java 6 ... and why DataSource and Connection break our build

2007-07-26 Thread Jody Garnett
I have had to remove WrappedDataSource (used during stress testing to ensure that we are not leaking connections). While I was able to "stub" the new Java 6 methods for DataSource (ie unwrap methods), the WrappedConnection we were implementing simply could not be implemented for both Java 5 and

Re: [Geotools-devel] EPSGCRSAuthorityFactory return null CoordinateReferenceSystem

2007-07-26 Thread Jody Garnett
These pages were getting too long; split up to answer your questions more directly: - http://docs.codehaus.org/display/GEOTDOC/01+CRS+Helper+Class - http://docs.codehaus.org/display/GEOTDOC/09+Referencing+Authority+Factories - http://docs.codehaus.org/display/GEOTDOC/10+Referencing+Factories Jus

Re: [Geotools-devel] EPSGCRSAuthorityFactory return null CoordinateReferenceSystem

2007-07-26 Thread Jody Garnett
Nope that is not how you are supposed to use it. CRSAuthorityFactory is not actually a factory - it is a "builder" that makes use of internal definitions to produce the object defined by the code you defined. The code is usually of the form "EPSG:4326" or some other number - "NAD27/UTM zone 11N

[Geotools-devel] EPSGCRSAuthorityFactory return null CoordinateReferenceSystem

2007-07-26 Thread lareina sun
Does anyone know how to use EPSGCRSAuthorityFactory? In my code, I created a crs in this way: CoordinateReferenceSystem crs; EPSGCRSAuthorityFactory crsFactory = new EPSGCRSAuthorityFactory(); crs = (CoordinateReferenceSystem) crsFactory.createObject("NAD27/UTM zone 11N"); The returned crs is null;

Re: [Geotools-devel] javax/vecmath/SingularMatrixException

2007-07-26 Thread Jody Garnett
You may be interested in the picture here - it shows the kind of jars GeoTools expects to have around. - http://docs.codehaus.org/display/GEOTDOC/04+How+to+Read+a+Shapefile I think the *vecmath* jar is the one you are looking for here - it vame from Java 3D initially but is now available as a st

[Geotools-devel] javax/vecmath/SingularMatrixException

2007-07-26 Thread lareina sun
Hi, Which jar file should I include to get rid of this exception : Can't load a service for category "CoordinateOperationFactory". Cause is "NoClassDefFoundError: javax/vecmath/SingularMatrixException"? Sun - Yahoo! oneSearch: Finally, mobile search tha

Re: [Geotools-devel] Problems running as Applet

2007-07-26 Thread Lareina Sun
I changed my build.xml file. It was like this "" and now I removed "excludes": . Same change to and . But I can't sign the jar file because it caused conflict: both gt2-referencing-2.3.2.jar and gt2-epsg-wkt-2.3.2.jar have META-INF/services/org.opengis.referencing.crs.CRSAuthorityFactory. Then

Re: [Geotools-devel] Problems running as Applet

2007-07-26 Thread Martin Desruisseaux
lareina sun a écrit : > Thanks for answering my questions. Now I still got problem. When I run > the app as applet it always reportes "No factory of kind > MathThransformFactory found" and "No factory of kind > CoordinateOperationFactory found". It may be that some META-INF/services files were

[Geotools-devel] Problems running as Applet

2007-07-26 Thread lareina sun
Hi, Thanks for answering my questions. Now I still got problem. When I run the app as applet it always reportes "No factory of kind MathThransformFactory found" and "No factory of kind CoordinateOperationFactory found". Why did that happen? Is that related to jar file "gt2-epsg-hsql-2.3.2.jar"

Re: [Geotools-devel] [udig-devel] Overworked CPU

2007-07-26 Thread David Zwiers
Tom, that would be my assessment. I forwarded this to both the geotools and geoserver lists as I am unsure whether this is an oracle driver issue or not. David On 7/25/07, Tom (JDi Solutions) <[EMAIL PROTECTED]> wrote: I don't have a profiler and I wouldn't know where to start so if that's re

Re: [Geotools-devel] Getting DB2 running on trunk

2007-07-26 Thread Jody Garnett
When you did your maven build did you do a -U ? David Adler wrote: > I'm having problems getting the existing junit tests to run. I suspect > there may be a problem with the version of 'geoapi-nogenerics' that is > built against vs runtime. > > The following is part of the Java stack trace: > >

Re: [Geotools-devel] Getting DB2 running on trunk

2007-07-26 Thread Justin Deoliveira
Hi David, David Adler wrote: > I'm having problems getting the existing junit tests to run. I suspect > there may be a problem with the version of 'geoapi-nogenerics' that is > built against vs runtime. > > The following is part of the Java stack trace: > > java.lang.NoSuchMethodError: > org

[Geotools-devel] Getting DB2 running on trunk

2007-07-26 Thread David Adler
I'm having problems getting the existing junit tests to run. I suspect there may be a problem with the version of 'geoapi-nogenerics' that is built against vs runtime. The following is part of the Java stack trace: java.lang.NoSuchMethodError: org.opengis.feature.simple.SimpleFeatureType.getA

Re: [Geotools-devel] Can't load a service for category "MathTransformProvider"

2007-07-26 Thread Jody Garnett
You will need to install it into your JRE, on the machine running the applet. You may be able to use JAI in the form of a jar, but I have not tried it. It has been ages since I have written an applet. Jody lareina sun wrote: > Hi, > How can I add javax/media/jai/WarpAffine in? I can run app wi

Re: [Geotools-devel] datasource changes

2007-07-26 Thread Jody Garnett
Maven shoudl download it for you ... It should be in the repository at http://lists.refractions.net/ but I don't see it. The introduction of this dependency is the subject of this proposal: - http://docs.codehaus.org/display/GEOTOOLS/Connection+pool+subsystem+upgrade Cheers, Jody David Adler wr

Re: [Geotools-devel] Can't load a service for category "MathTransformProvider"

2007-07-26 Thread Martin Desruisseaux
lareina sun a écrit : > How can I add javax/media/jai/WarpAffine in? I can run app with this > warning locally but it cannot be ignored when I ran it as applet. If a user can have JAI installed, the warning should disaspear. Otherwise, maybe the easiest way is to delete the following line org.

[Geotools-devel] Can't load a service for category "MathTransformProvider"

2007-07-26 Thread lareina sun
Hi, How can I add javax/media/jai/WarpAffine in? I can run app with this warning locally but it cannot be ignored when I ran it as applet. Thanks, Sun - Got a little couch potato? Check out fun summer activities for kids.---

Re: [Geotools-devel] No factory of kind "CoordinateOperationFactory" found

2007-07-26 Thread Jody Garnett
What *epsg* plugin are you using? For an applet you will need to use epsg-wkt if I remember correctly. An applet will not have the ability to write to disk (which is needed for the epsg-hsql plugin to work). This information needed to choose the appropriate epsg plugin for your application, web