Changes between Initial Version and Version 1 of Ticket #236


Ignore:
Timestamp:
Mar 10, 2009, 7:51:12 PM (15 years ago)
Author:
mloskot
Comment:

First of all, you have not provided us with complete, compilable and runnable code. So, it's hard to answer if there is anything wrong with your code.

  1. The polygons you specified (numbers on braces) are in unknown format.
  2. You do not show us how you

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #236 – Description

    initial v1  
    11I have built two polygons named PG1 and PG2. One is (0,0),(1,0),(1,1),(0,1), the other is (0.25,0.25),(0.75,0.25),(0.75,0.75),(0.25,0.75). At this time the distance returned is 0.25 and closestPoints() returns successfully. However, if I move PG2 out of PG1 and run it aggin. The project crashed in closestPoints(). The package I use is geos-3.1.0rc2. Now I need to find the nearest points of two polygons and the related distance. If there is something wrong in my codes or other solution, please tell me in time. Thanks.
    22
     3{{{
    34CoordinateSequence *cs;
    45
     
    1314cs=Dis->closestPoints();
    1415cout<<"out"<<endl;
    15 
     16}}}