Re: [mapserver-users] did something change in reading in empty TAB files?
Bart, The Invalid Block Type message comes from the MITAB driver in GDAL/OGR. GDAL 1.3.2 is quite old, is there any way you could switch to a more recent version of GDAL? Based on Jeff's tests this error doesn't seem to happen with MS 5.0.2/GDAL 1.5.0 ... it may also be that the problem is a side-effect of something that changed in MapServer (and would now be fixed in 5.0.x), but the first thing I'd suggest is using a newer GDAL. Daniel Bart van den Eijnden (OSGIS) wrote: Hi list, at least starting Mapserver 4.10 (GDAL 1.3.2) there seems to be a problem with reading empty MapInfo TAB files, whereas in the past (4.6 for sure) this used to work. Is this issue known to someone? The error I get is: 09-Jul-2008 18:08:23] PHP Warning: [MapServer Error]: msOGRFileNextShape(): InitBlockFromData(): Invalid Block Type: got 0 expected 2 in D:\ms4w\apps\stragisweb\htdocs\common\chameleon\htdocs\common\wrapper\drawmap.php on line 533 An example TAB file can be found here: www.osgis.nl/download/mapserver/gemgrens.zip Best regards, Bart -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] did something change in reading in empty TAB files?
Hi list, at least starting Mapserver 4.10 (GDAL 1.3.2) there seems to be a problem with reading empty MapInfo TAB files, whereas in the past (4.6 for sure) this used to work. Is this issue known to someone? The error I get is: 09-Jul-2008 18:08:23] PHP Warning: [MapServer Error]: msOGRFileNextShape(): InitBlockFromData(): Invalid Block Type: got 0 expected 2 in D:\ms4w\apps\stragisweb\htdocs\common\chameleon\htdocs\common\wrapper\drawmap.php on line 533 An example TAB file can be found here: www.osgis.nl/download/mapserver/gemgrens.zip Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] did something change in reading in empty TAB files?
On 9-Jul-08, at 12:14 PM, Bart van den Eijnden (OSGIS) wrote: Hi list, at least starting Mapserver 4.10 (GDAL 1.3.2) there seems to be a problem with reading empty MapInfo TAB files, whereas in the past (4.6 for sure) this used to work. Is this issue known to someone? The error I get is: 09-Jul-2008 18:08:23] PHP Warning: [MapServer Error]: msOGRFileNextShape(): InitBlockFromData(): Invalid Block Type: got 0 expected 2 in D:\ms4w\apps\stragisweb\htdocs\common\chameleon\htdocs\common \wrapper\drawmap.php on line 533 An example TAB file can be found here: www.osgis.nl/download/mapserver/gemgrens.zip Best regards, Bart Bart, I tried your test TAB with ms4w 2.2.7 (GDAL 1.5.0 and Mapserver 5.0.2) and: 1) ogrinfo reads the tab normally, 2) shp2img created the blank map image properly with no errors, and 3) I modified /ms4w/Apache/ htdocs/quickmap.php to point to this test mapfile and it also correctly produced a blank map image in the browser. The key points in my test mapfile are: ... EXTENT 14 34 15 35 UNITS METERS ... LAYER NAME gemgrens TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION ./gemgrens.TAB CLASS NAME gemgrens STYLE COLOR 240 240 240 OUTLINECOLOR 199 199 199 END END END # layer --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users