[Gdal-dev] .tab file support for jpeg format
Sebastien Grignard
sebastien.grignard at archivideo.com
Wed Nov 17 05:21:06 EST 2004
Hello all.
I've added support for reading georeferences from MapInfo .tab files in
the jpeg driver.
The code has been taken from the GeoTiff driver so it should support the
same file parameters.
Included is the diff against the current cvs.
--
Sebastien Grignard
R&D Developer
Archivideo
40, rue des Veyettes - 35000 Rennes FRANCE
Phone: +033 2 99 86 30 20
-------------- next part --------------
Index: jpgdataset.cpp
===================================================================
RCS file: /cvs/maptools/cvsroot/gdal/frmts/jpeg/jpgdataset.cpp,v
retrieving revision 1.17
diff -r1.17 jpgdataset.cpp
114a115
> char *pszProjection;
254a256,257
>
> pszProjection = NULL;
273a277,280
>
> if( pszProjection != NULL )
> CPLFree( pszProjection );
>
456a464,466
> int nGCPCount = 0;
> GDAL_GCP *pasGCPList = NULL;
> char* pszTabWKT = NULL;
463,464c473,478
< poDS->adfGeoTransform );
<
---
> poDS->adfGeoTransform )
> || (GDALReadTabFile(poOpenInfo->pszFilename, poDS->adfGeoTransform,
> &pszTabWKT, &nGCPCount, &pasGCPList) && nGCPCount==0);
> if ( pszTabWKT != NULL )
> poDS->pszProjection = pszTabWKT;
>
More information about the Gdal-dev
mailing list