Hi Paul, You can check the JTS version by looking in the jump/lib folder for the jts*.jar (where * is 1.4 or whatever). If it isn't the right version, you can replace it. Also, ensure that there aren't two JTS jars in the lib folder.
regards, Larry On 9/18/07, Paul Johnston <[EMAIL PROTECTED]> wrote: > > > > > Thanks Stefan, > > > > I tried this combination and I'm still getting the Incompatible Class Change > Error: java.lang.IncompatibleClassChangeError: Expecting > non-static method > com.vividsolutions.jts.algorithm.RobustCGAlgorithms.isCCW([Lcom/vividsolutions/jts/geom/Coordinate;)Z > > … > > > > I'm using JUMP 1.1.2., the JCS conflation suite is showing up in the list of > Extensions, but the JTS is not – should it be? > > I apologize if this line of questioning is getting annoying J. But this > boundary match feature looks very promising for a task, if I can it working. > > > > Thanks > > Paul > > > > ________________________________ > > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Ziegler Stefan > Sent: Tuesday, September 18, 2007 11:02 AM > To: jump-users > Subject: AW: RE: [jump-users] newbie question - Class CastException > duringBoundaryMatch > > > > > Hi Paul > > > > A combination that works: jts-1.4.0 and jcs-1.0.1 > > > > Stefan > > > > -----Ursprüngliche Nachricht----- > Von: Paul Johnston [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 18. September 2007 15:10 > An: JUMP Users Discussion > Betreff: RE: [jump-users] newbie question - Class Cast Exception > duringBoundaryMatch > > > > Thanks again for the suggestions. > > > > I've tried numerous older versions of the JTS and keep getting the same > error results. > > > > I've looked for detailed version requirements but have been unsuccessful > so far. Is there anyone who could suggest a combination of JTC and JCS > versions that will work for the Boundary Match? > > > > I appreciate all the help! > > > > thanks > Paul > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Martin > Davis > Sent: Friday, September 14, 2007 3:40 PM > To: JUMP Users Discussion > Subject: Re: [jump-users] newbie question - Class Cast Exception > duringBoundaryMatch > > > > This looks like a jar version issue. The JCS codebase is a few years > old, and hence needs an older version of JTS to run. I'm not sure what > that version actually is, but the site you got JCS from in the first > place whould tell you. > > > > Paul Johnston wrote: > > Thanks Martin, > > > > I exploded all the multipart polygons and ran it again, however I get > a > > new error message now: > > > > java.lang.IncompatibleClassChangeError: Expecting > non-static method > > > com.vividsolutions.jts.algorithm.RobustCGAlgorithms.isCCW([Lcom/vividsol > > utions/jts/geom/Coordinate;)Z > > at > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeature.setFeature > > (BoundaryFeature.java:225) > > at > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeature.<init>(Bou > > ndaryFeature.java:57) > > at > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeatureFilter.getB > > oundaryFeature(BoundaryFeatureFilter.java:95) > > at > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeatureFilter.filt > > erBoundaryFeaturesWithIndex(BoundaryFeatureFilter.java:134) > > at > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeatureFilter.filt > > erBoundaryFeatures(BoundaryFeatureFilter.java:118) > > at > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryMatcher.match(Boun > > daryMatcher.java:69) > > at > > > com.vividsolutions.jcs.plugin.conflate.BoundaryMatcherPlugIn.run(Boundar > > yMatcherPlugIn.java:116) > > at > > > com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper > > .run(TaskMonitorManager.java:118) > > at java.lang.Thread.run(Unknown Source) > > > > Thanks for the help! > > > > > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > Behalf Of Martin > > Davis > > Sent: Friday, September 14, 2007 11:39 AM > > To: JUMP Users Discussion > > Subject: Re: [jump-users] newbie question - Class Cast Exception > > duringBoundary Match > > > > It's been quite a while since I wrote this, but I believe that > Boundary > > Matcher was coded to work only with Polygons, not MultiPolygons. Try > > exploding all MPs in your dataset. > > > > Paul Johnston wrote: > > > >> Hi, > >> > >> Brand new user here. > >> I'm, trying to boundary match boundaries of a number of polygons in > >> > > one > > > >> coverage to another coverage with more precise boundaries and I'm > >> getting the following error: > >> > >> java.lang.ClassCastException: > >> > > com.vividsolutions.jts.geom.MultiPolygon > > > >> cannot be cast to com.vividsolutions.jts.geom.Polygon > >> > >> at > >> > >> > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeature.setFeature > > > >> (BoundaryFeature.java:220) > >> > >> at > >> > >> > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeature.<init>(Bou > > > >> ndaryFeature.java:57) > >> > >> at > >> > >> > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeatureFilter.getB > > > >> oundaryFeature(BoundaryFeatureFilter.java:95) > >> > >> at > >> > >> > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeatureFilter.filt > > > >> erBoundaryFeaturesWithIndex(BoundaryFeatureFilter.java:134) > >> > >> at > >> > >> > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeatureFilter.filt > > > >> erBoundaryFeatures(BoundaryFeatureFilter.java:118) > >> > >> at > >> > >> > > > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryMatcher.match(Boun > > > >> daryMatcher.java:69) > >> > >> at > >> > >> > > > com.vividsolutions.jcs.plugin.conflate.BoundaryMatcherPlugIn.run(Boundar > > > >> yMatcherPlugIn.java:116) > >> > >> at > >> > >> > > > com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper > > > >> .run(TaskMonitorManager.java:118) > >> > >> at java.lang.Thread.run(Unknown Source) > >> > >> > >> > >> If somebody can give me an idea as to what the problem is I would > >> greatly appreciate it. > >> Also, can someone give me a little more info on the distance > tolerance > >> (units?) > >> > >> Thanks in advance! > >> > >> Paul > >> _______________________________________________ > >> jump-users mailing list > >> [email protected] > >> > http://lists.refractions.net/mailman/listinfo/jump-users > >> > >> > >> > > > > > > > > -- > Martin Davis > Senior Technical Architect > Refractions Research, Inc. > (250) 383-3022 > > > > _______________________________________________ > jump-users mailing list > [email protected] > http://lists.refractions.net/mailman/listinfo/jump-users > _______________________________________________ > jump-users mailing list > [email protected] > http://lists.refractions.net/mailman/listinfo/jump-users > _______________________________________________ > jump-users mailing list > [email protected] > http://lists.refractions.net/mailman/listinfo/jump-users > > -- http://amusingprogrammer.blogspot.com/ _______________________________________________ jump-users mailing list [email protected] http://lists.refractions.net/mailman/listinfo/jump-users
