Changes between Initial Version and Version 1 of Ticket #230


Ignore:
Timestamp:
Feb 25, 2009, 3:13:45 PM (15 years ago)
Author:
mloskot
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #230

    • Property Owner changed from geos-devel@… to mloskot
    • Property Status newassigned
  • Ticket #230 – Description

    initial v1  
     1Given the code:
     2{{{
     3std::string str = "POLYGON ((112.3903710739794900 22.3851129617344210, 114.1261324827294900 22.3851129617344210, 114.1261324827294900 23.5479374992368590, 112.3903710739794900 23.5479374992368590, 112.3903710739794900 22.3851129617344210)) ";
    14
    2 {{{
    3         std::string str = "POLYGON ((112.3903710739794900 22.3851129617344210, 114.1261324827294900 22.3851129617344210, 114.1261324827294900 23.5479374992368590, 112.3903710739794900 23.5479374992368590, 112.3903710739794900 22.3851129617344210)) ";
    4         geos::geom::Geometry* pgeom0 = reader.read( str );
     5geos::geom::Geometry* pgeom0 = reader.read( str );
    56               
    6         str = "POLYGON ((114.0876590000000000 22.5249449999999990, 114.1853440000000000 22.5531790000000000, 114.1704040000000000 22.5438380000000010, 114.1423630000000000 22.5351350000000000, 114.0874290000000000 22.5245199999999990, 114.0892680000000000 22.5255820000000000, 114.0936350000000100 22.5266430000000000, 114.0876590000000000 22.5249449999999990))";
    7         geos::geom::Geometry* pgeom1 = reader.read( str );
     7str = "POLYGON ((114.0876590000000000 22.5249449999999990, 114.1853440000000000 22.5531790000000000, 114.1704040000000000 22.5438380000000010, 114.1423630000000000 22.5351350000000000, 114.0874290000000000 22.5245199999999990, 114.0892680000000000 22.5255820000000000, 114.0936350000000100 22.5266430000000000, 114.0876590000000000 22.5249449999999990))";
    88
    9         geos::geom::Geometry* pint = pgeom0->intersection( pgeom1 );
     9geos::geom::Geometry* pgeom1 = reader.read( str );
    1010
     11geos::geom::Geometry* pint = pgeom0->intersection( pgeom1 );
    1112}}}
    1213