Thanks for the info. We are going to try running this in a debugger as you suggested. I've got the source code for JUMP 1.1.0 and JCS 1.0.1 but I can't track down source for JTS 1.4.0. The link to it on the jump-project.org pages: http://www.jump-project.org/project.php?PID=JTS&SID=DOWN is dead - all the other versions are there, of course :)
Do you know where I can get the source for JTS 1.4.0? Thanks again. Paul PS. I tried with a different tolerance value and got a different flavour of the same error message: java.lang.IllegalArgumentException: Number of points must be 0 or >3 ... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Davis Sent: Tuesday, September 18, 2007 4:47 PM To: JUMP Users Discussion Subject: Re: [jump-users] newbie question -ClassCastException duringBoundaryMatch Unfortunately this code was never fully brought up to production-quality standards. If it was me, I would fire the code up in a debugger and find out what geometry was causing the problem. This might give a clue on how to work around this. Short of this, about all you can do is try different tolerance values (if it gives you an option to set some - I can't offhand remember). Martin Paul Johnston wrote: > > Thanks Stefan. > > I downloaded and installed both these and the process ran for a good > 45 min. This is a step in the right direction. Unfortunately it > resulted in the following error: > > java.lang.IllegalArgumentException: point array must contain 0 or >1 > elements > > at com.vividsolutions.jts.geom.LineString.<init>(Unknown Source) > > at com.vividsolutions.jts.geom.LinearRing.<init>(Unknown Source) > > at > com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(Unknown > Source) > > at > com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(Unknown > Source) > > at > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryFeature.getAdjustedGeometry(BoundaryFeature.java:179) > > at > com.vividsolutions.jcs.conflate.boundarymatch.BoundaryMatcher.getAdjustedFeatures(BoundaryMatcher.java:125) > > at > com.vividsolutions.jcs.plugin.conflate.BoundaryMatcherPlugIn.createOutput(BoundaryMatcherPlugIn.java:124) > > at > com.vividsolutions.jcs.plugin.conflate.BoundaryMatcherPlugIn.run(BoundaryMatcherPlugIn.java:117) > > at > com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:118) > > at java.lang.Thread.run(Unknown Source) > > Can you shed some light on this? > > Thanks for all the help. > > Paul > > ------------------------------------------------------------------------ > > *From:* [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] *On Behalf Of > *Ziegler Stefan > *Sent:* Tuesday, September 18, 2007 3:27 PM > *To:* jump-users > *Subject:* AW: RE: RE: [jump-users] newbie question - > ClassCastException duringBoundaryMatch > > Paul, > > try JUMP 1.1.0 and jcs 1.0.1, both from > http://www.vividsolutions.com/jcs/download.htm > > Stefan > > -----Ursprüngliche Nachricht----- > *Von:* Paul Johnston [mailto:[EMAIL PROTECTED] > *Gesendet am:* Dienstag, 18. September 2007 18:29 > *An:* JUMP Users Discussion > *Betreff:* RE: RE: [jump-users] newbie question - Class > CastException duringBoundaryMatch > > 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 > -- 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
