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

Reply via email to