Opened 19 years ago

Last modified 17 years ago

#960 closed defect (fixed)

the current CVS version of ogr2ogr (10/14/05) produces mapinfo files that don't display in mapinfo

Reported by: ethan@… Owned by: Daniel Morissette
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc: ethan@…

Description

The following is my command line invocation:

ogr2ogr -f 'MapInfo File' -a_srs /dg/cots/apps/dgeographic_1.2.1/etc/wgs84.wkt -
spat -179.5 -89.5 179.5 89.5 test_1_3_1  ./test_all_good_snaps.shp

Using the CVS version of ogr2ogr I get mapinfo files that do not display in 
mapinfo. mapinfo (both 7.x and 8.0) provides no error message, the features 
just don't appear. The original shapefile being translated (attached to this 
report) was generated using pgsql2shp. Below are the file sizes of my three 
tests. Versions 1.2.6 and 1.3.1 create files that can be view and 1.3.2a is the 
current CVS version.

It appears the .map file is different between 1_3_1 and 1_3_2a:

-bash-2.05b$ diff test_1_3_1/b.dat test_1_3_2a/c.dat
-bash-2.05b$ diff test_1_3_1/b.id test_1_3_2a/c.id 
-bash-2.05b$ diff test_1_3_1/b.tab test_1_3_2a/c.tab
-bash-2.05b$ diff test_1_3_1/b.map test_1_3_2a/c.map
Binary files test_1_3_1/b.map and test_1_3_2a/c.map differ



-rw-r--r--    1 ealpert  users      180338 Oct 14 12:39 test_1_2_6/a.dat
-rw-r--r--    1 ealpert  users        1336 Oct 14 12:39 test_1_2_6/a.id
-rw-r--r--    1 ealpert  users       46080 Oct 14 12:39 test_1_2_6/a.map
-rw-r--r--    1 ealpert  users        1043 Oct 14 12:39 test_1_2_6/a.tab

-rw-r--r--    1 ealpert  users      193698 Oct 14 12:39 test_1_3_1/b.dat
-rw-r--r--    1 ealpert  users        1336 Oct 14 12:39 test_1_3_1/b.id
-rw-r--r--    1 ealpert  users       46080 Oct 14 12:39 test_1_3_1/b.map
-rw-r--r--    1 ealpert  users        1023 Oct 14 12:39 test_1_3_1/b.tab

-rw-r--r--    1 ealpert  users      193698 Oct 14 12:40 test_1_3_2a/c.dat
-rw-r--r--    1 ealpert  users        1336 Oct 14 12:40 test_1_3_2a/c.id
-rw-r--r--    1 ealpert  users       46080 Oct 14 12:40 test_1_3_2a/c.map
-rw-r--r--    1 ealpert  users        1023 Oct 14 12:40 test_1_3_2a/c.tab


-bash-2.05b$ ogrinfo test_1_2_6/a.tab
Had to open data source read-only.
INFO: Open of `test_1_2_6/a.tab'
using driver `MapInfo File' successful.
1: a (Polygon)
-bash-2.05b$ ogrinfo test_1_3_1/b.tab
Had to open data source read-only.
INFO: Open of `test_1_3_1/b.tab'
using driver `MapInfo File' successful.
1: b (Polygon)
-bash-2.05b$ ogrinfo test_1_3_2a/c.tab
Had to open data source read-only.
INFO: Open of `test_1_3_2a/c.tab'
using driver `MapInfo File' successful.
1: c (Polygon)

Please let me know if there is anymore data you'd like.

Thanks,

-e

Attachments (1)

test_ogr2ogr.zip (64.9 KB ) - added by ethan@… 19 years ago.
This file contains initial shapefile I converted to

Download all attachments as: .zip

Change History (2)

by ethan@…, 19 years ago

Attachment: test_ogr2ogr.zip added

This file contains initial shapefile I converted to

comment:1 by Daniel Morissette, 17 years ago

MITAB 1.5.0 contained some bugs in it that caused similar issues. This bug dates from about 1 year ago and it is quite possible that OGR had that version of MITAB in it at the time.

The current CVS contains MITAB v1.5.1 which has these bugs fixed, can you please try the latest OGR from CVS and see if the problem is still there?

I'll mark this bug as fixed for now, please test and reopen if the issue is still present in the latest CVS.
Note: See TracTickets for help on using tickets.