Belaid MOA wrote:
That's excellent to know! Thanks a lot Martin. Instead of getting segfault,
I could use that to exist peacefully in case the driver does support the
Create() function.
Just of out of curiosity, why JPEG driver does not have the create
function and only supports CreateCopy()?
The Create() function could be easily implemented using MEM and
CreateCopy(); instead of relying on the user to do this every time a
JPEG driver is used.
Belaid,
Many of us work with images that would be impractical to hold in memory,
and that might be quite inefficient to first marshall on disk in a directly
creatable format like TIFF.
The Create/CreateCopy distinction in writing with drivers is an important
one within GDAL and something that developers (and even to some extent
users) are expected to learn something about even if it is not immediately
obvious. I do think it is addressed in the FAQ.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev