[Gdal-dev] Problem creating MapInfo tab files using C# (via
theC API)
Ethan Alpert
ealpert at digitalglobe.com
Wed Mar 29 18:14:43 EST 2006
Frank, this sounds like the problem I had with perl/swig where I needed
to undef the output datasource variable in order for the driver to
properly flush the file.
Sorry if I'm coming into the conversation late but this sounds very much
like the problem.
-e
-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Frank
Warmerdam
Sent: Tuesday, March 21, 2006 3:41 PM
To: Richard Matsunaga
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Problem creating MapInfo tab files using C# (via
theC API)
Richard Matsunaga wrote:
> Hi all,
>
> I've been building a C# wrapper for OGR (following on the good work on
a
> GDAL wrapper by Sy Perkins) and am very new to OGR development.
>
> Everything was going swimmingly until I tried to write to a MapInfo
tab
> file. Basically, I am trying to write multiple layers, each with some
> number of polygon objects. All my fields are being written correctly.
> But for some reason, only the 2nd layer that I create is good. If I
> create only one layer, it is corrupt. All layers other than the 2nd
> layer are corrupt.
>
> How do I define corrupt? The files open in MapInfo, but the polygons
> have invalid coordinates and certain actions within MapInfo cause
> crashes (such as Export). The fields are all correct. If you check the
> projection in table maintenance, MapInfo cannot find the projection
for
> all layers except the 2nd.
Richard,
This might be worth taking up on the mitab list - this issue sounds
vaguely
familiar. I wonder if it might already have been fixed. Are you using
GDAL CVS?
If you can boil down a small C program that demonstrates the problem
that
would be helpful. I don't have any mapinfo software myself though, so
it
is hard for me to test files that cause it problems.
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 | President OSGF,
http://osgeo.org
_______________________________________________
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