|
Re: Assertions in CoordinateArraySequence: msg#00071gis.geos.devel
Better idea is to provide two accessors: safe and unsafe, just as at() Yes, this would be ok. IMO, no profiling is needed because this is well-known issue. Um, well, it would be nice to see proof of this. I have a hard time imagining an if statement is going to make such a big difference. Exceptions would of course be raised very rarely so that should have no impact on performance. IMHO, the most reasonable solution is to follow C++ STL design and take Yes, I'd be happy with that. I think a scripting language should use the "safe" version because its much more forgiving and if performance is really such a big deal then you wouldn't be using Ruby or Python - instead you'd write a C/C++ client against GEOS. Strk - what do you think of adding a "safe" version of these calls to the C API? Also, it seems natural that from Ruby or Python you'd create a vector/array/list of points and send them off the GEOS. I can do the translation in the wrapper code from array like structures to GEOSCoordSeq_setX, GEOSCoordSeq_setY. However, should the the C API have an array getter/setter method also? The client passes in an array and its size, and the C API munges it into the coordinate sequence. Charlie Charlie
geos-devel mailing list geos-devel@xxxxxxxxxxxxxxxxxxxx http://geos.refractions.net/mailman/listinfo/geos-devel |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Encounter Segmentation Fault with GEOS 2.2.2: 00071, Mateusz Loskot |
|---|---|
| Next by Date: | RE: Encounter Segmentation Fault with GEOS 2.2.2: 00071, Sheng Liang (SH/CBC) |
| Previous by Thread: | Re: Assertions in CoordinateArraySequencei: 00071, Mateusz Loskot |
| Next by Thread: | Re: Assertions in CoordinateArraySequence: 00071, Mateusz Loskot |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |