[Gdal-dev] projection info in mapinfo tab files corrupt
whenspecifying -a_srs or -s_srs and -t_srs in ogr2ogr
Peter.Rushforth at statcan.ca
Peter.Rushforth at statcan.ca
Thu Jun 1 10:12:35 EDT 2006
Hi Daniel and Frank,
I added the -DMITAB_AFFINE_PARAMS option to the compilation, using
a cvs from 2006.05.30.
I get the following error:
g++ -Wall -fPIC -O2 -I.. -I../.. -I/bilbo05/rushpet/gdal/src/gdal-cvs-2006.05.30/port -I/bilbo05/rushpet/gdal/src/gdal-cvs-2006.05.30/gcore -I/bilbo05/rushpet/gdal/src/gdal-cvs-2006.05.30/alg -I/bilbo05/rushpet/gdal/src/gdal-cvs-2006.05.30/ogr -I/bilbo05/rushpet/gdal/src/gdal-cvs-2006.05.30/ogr/ogrsf_frmts -DOGR_ENABLED -I/bilbo05/rushpet/gdal/src/gdal-cvs-2006.05.30/port -DOGR -DMITAB_AFFINE_PARAMS -c -o ../o/mitab_coordsys.o mitab_coordsys.cpp
mitab_coordsys.cpp: In function `OGRSpatialReference* MITABCoordSys2SpatialRef(const char*)':
mitab_coordsys.cpp:199: error: 'class OGRSpatialReference' has no member named 'nAffineFlag'
mitab_coordsys.cpp:200: error: 'class OGRSpatialReference' has no member named 'nAffineUnit'
mitab_coordsys.cpp:201: error: 'class OGRSpatialReference' has no member named 'dAffineParamA'
mitab_coordsys.cpp:202: error: 'class OGRSpatialReference' has no member named 'dAffineParamB'
mitab_coordsys.cpp:203: error: 'class OGRSpatialReference' has no member named 'dAffineParamC'
mitab_coordsys.cpp:204: error: 'class OGRSpatialReference' has no member named 'dAffineParamD'
mitab_coordsys.cpp:205: error: 'class OGRSpatialReference' has no member named 'dAffineParamE'
mitab_coordsys.cpp:206: error: 'class OGRSpatialReference' has no member named 'dAffineParamF'
mitab_coordsys.cpp:210: error: 'class OGRSpatialReference' has no member named 'nAffineFlag'
make: *** [../o/mitab_coordsys.o] Error 1
Can you see what the problem is from this?
Thanks for your suggestions.
Cheers,
Peter Rushforth
Geography Division
Statistics Canada
Ottawa Ontario
K1A 0T6
> -----Original Message-----
> From: gdal-dev-bounces at lists.maptools.org
> [mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of
> Daniel Morissette
> Sent: May 31, 2006 10:42 PM
> To: Peter Rushforth
> Cc: gdal-dev at lists.maptools.org
> Subject: Re: [Gdal-dev] projection info in mapinfo tab files
> corrupt whenspecifying -a_srs or -s_srs and -t_srs in ogr2ogr
>
>
> This may be related to a bug in the MITAB library which is
> used by OGR
> to read/write TAB files:
> http://bugzilla.maptools.org/show_bug.cgi?id=1319#c7
> See also:
> http://bugzilla.maptools.org/show_bug.cgi?id=1254
>
> Perhaps try rebuilding gdal/ogr/ogrsf_frmts/mitab with
> -DMITAB_AFFINE_PARAMS (and then relink ogr2ogr) and see if the crash
> goes away.
>
> Daniel
>
>
> Peter Rushforth wrote:
> > Hi,
> >
> > I've done a little more testing and have a little more
> info. I attach
> > a csv file which demonstrates when the corruption of the tab file
> > occurs.
> >
> > It appears to occur whenever the -a_srs option is used in
> ogr2ogr, or
> > when the data is reprojected using -s_srs and -t_srs.
> >
> > The symptoms include crashing and irregular behaviour of mapinfo.
> > When one views the Change Current view dialog, the coordinates are
> > garbage and the map units are incorrect.
> >
> > I am using fwtools 1.01 on windows, which *believe* is pretty up to
> > date wrt cvs snapshots.
> >
> > I've been looking at the data files in mapinfo pro viewer 8.0 and
> > tatuk
> > viewer.
> > Tatuk doesn't seem to notice the problem, mapinfo doesn't like it.
> >
> > Does this info lead anyone to conclude anything about
> possible causes?
> >
> > Cheers,
> > Peter
> >
> >
> >
> ----------------------------------------------------------------------
> > --
> >
> > _______________________________________________
> > Gdal-dev mailing list
> > Gdal-dev at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/gdal-dev
>
>
> --
> Daniel Morissette
> http://www.mapgears.com/
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
More information about the Gdal-dev
mailing list