[gdal-dev] How to use GDAL C++ dynamically?

Frank Warmerdam warmerdam at pobox.com
Wed Feb 23 14:05:01 EST 2011


On 11-02-22 08:41 PM, Mikhail Tchernychev wrote:
>
> I just tried: If I declare make functions of OGRSFDriverRegistrar as virtual,
> everything is working as expected.
>
> Most of the functions of other classes are virtual, why those are not?
>

Mikhail,

They are not virtual because it is not part of our pattern to
derive subclasses from OGRSFDriverRegistrar.  I think you will find there
are other classes that don't use virtual methods including OGRFeature.  If
your technique depends on this, I think you will get frustrated.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list