Opened 13 years ago
Closed 13 years ago
#3971 closed defect (fixed)
.mif file with intended DATA section should be recognised as correct
Reported by: | sfkeller | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | 1.7.0 |
Severity: | normal | Keywords: | mif reader |
Cc: | Daniel Morissette, aboudreault |
Description
I got a .mif/.mid file from the Canadian Wind Speed Atlas (http://www.windatlas.ca/en/nav.php?field=EU&height=80&season=ANU&no=26 ) and ogr2ogr would not read ist (ERROR 6: ...).
The problem was already reported in OSGEO mailing list (http://tinyurl.com/6coy7yh ) and it seems to stem from the DATA section in the .mif file which is intended by one space as shown below:
*** Not recognised .mif file *** VERSION 450 Charset "Neutral" delimiter ";" CoordSys Earth Projection 20, 999, 12, 0, 0, 0, 7, -100.0000 , 90, 0.9330127, 0, 0 Columns 9 E1_12031_CAN___ decimal (10,3) E2_12031_CAN___ decimal (10,3) EU_12031_CAN___ decimal (10,3) EU2_12031_CAN__ decimal (10,3) MG_0_CAN1D000 decimal (10,3) ME_0_CAN1D000 decimal (10,3) LA_1_LATITUDE decimal (10,3) LO_1_LONGITUD decimal (10,3) _2B_0_RUGOSITE decimal (10,3) DATA RECT 665009.6 -4729370. 670010.0 -4724370. RECT 670010.0 -4729370. 675009.9 -4724369. RECT 675009.9 -4729370. 680010.0 -4724370. RECT 680010.0 -4729370. 685010.3 -4724369. ... *** currently recognised by OGR *** VERSION 450 Charset "Neutral" delimiter ";" CoordSys Earth Projection 20, 999, 12, 0, 0, 0, 7, -100.0000 , 90, 0.9330127, 0, 0 Columns 9 E1_12031_CAN___ decimal (10,3) E2_12031_CAN___ decimal (10,3) EU_12031_CAN___ decimal (10,3) EU2_12031_CAN__ decimal (10,3) MG_0_CAN1D000 decimal (10,3) ME_0_CAN1D000 decimal (10,3) LA_1_LATITUDE decimal (10,3) LO_1_LONGITUD decimal (10,3) _2B_0_RUGOSITE decimal (10,3) DATA RECT 665009.6 -4729370. 670010.0 -4724370. RECT 670010.0 -4729370. 675009.9 -4724369. RECT 675009.9 -4729370. 680010.0 -4724370. RECT 680010.0 -4729370. 685010.3 -4724369. ...
Change History (2)
comment:1 by , 13 years ago
Cc: | added |
---|
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I have verified that this is fixed in GDAL/OGR 1.8.0 (see ticket #3694)