[geos-devel] GEOS Exceptions

Artem Pavlenko artem at pavlenko.uklinux.net
Tue Apr 19 15:03:13 EDT 2005


Mark Coletti wrote:

>On 4/19/05, Artem Pavlenko <artem at pavlenko.uklinux.net> wrote:
>  
>
>>Hi strk,
>>I've coded a couple of tests:
>>
>>data =  usa counties WKT 84Mb  3140 MULTIPOLYGONS (created like shp ->
>>postgis -> wkt)
>>
>>1.  GEOS  WKT  reader
>>     real    0m24.642s
>>     user    0m24.374s
>>     sys     0m0.235s
>>
>>2. Mapnik WKT Reader
>>    real    0m15.651s
>>    user    0m15.215s
>>    sys     0m0.223s
>>
>>    
>>
>
>Actually it would be best to run these tests multiple times so that
>you can assay aggregate behavior -- and use multiple datasets, too.
>
>MAC
>  
>
Yep, have you got multiple datasets?
I'll have a go writing WKTReader for GEOS when I got some time.
This is just to show that there're alternatives to StringTokenizer

Meanwhile , could anyone explain to me why do we need 
vector<Coordinate>*  and not just vector<Coordinate>
in DefaultCoordinateSequence? And again, why  not write:
   struct A
  {
      A(B const& b)
        : b_(b) {}
       B b_;
  };

 instead of:

 struct A
{
    A(B const& b)
   {
        b_=b;
   }
B b_;
};  ???

cheers
Artem



More information about the geos-devel mailing list