[Qgis-developer] intersect error

Carson Farmer carson.farmer at gmail.com
Mon Jan 26 17:17:02 EST 2009


Martin,
> I've took your code, modified it slightly and commited in r10026 :-)
>
> Not sure what was the reason of your problems (I've modified it to my
> preferences before trying it out). One thing worth mentioning -
> casting from const to non-const isn't a good idea as the const
> modifier usually has some reason, e.g. when constructing a geometry
> with QgsGeometry::fromGeos() you should pass a new instance. Passing
> an existing instance will probably cause havoc when deleting the
> geometries (because both original geometry collection and its part
> will try to delete the same geos geometry).
>
> Looks like it's working now..
I'm sure if we could clone you, and put all those clones to work on 
QGIS, it would be the greatest software ever written!

Thanks,

Carson


More information about the Qgis-developer mailing list