<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed"
style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">Hi
list,
<br>
<br>
I've a big problem with ogrinfo.
<br>
I've tried with several versions of FWTools (1.3.9 to 2.2.1).
<br>
I've a web application that uses ogrinfo to validate MapInfo® files.
<br>
Ogrinfo doesn't return the right geometry with TAB file that contains
polygons. Ogrinfo reports "Geometry: Unknown (any)".
<br>
Why ?
<br>
I've create a simple table (3polygons.TAB) with three polygons (not
multi-polygons and without holes).
<br>
<br>
Thanks for your help
<br>
<br>
C:\Program Files\FWTools2.2.1>ogrinfo -al "C:\Documents and
Settings\SAEZ\Mes do
<br>
cuments\PND\Cartelie\Assistance\DDE36\Pb_multi_polygon\3polygons.TAB"
<br>
Had to open data source read-only.
<br>
INFO: Open of `C:\Documents and Settings\SAEZ\Mes
documents\PND\Cartelie\Assista
<br>
nce\DDE36\Pb_multi_polygon\3polygons.TAB'
<br>
using driver `MapInfo File' successful.
<br>
<br>
Layer name: 3polygons
<br>
Geometry: Unknown (any)
<br>
Feature Count: 3
<br>
Extent: (403854.671855, 1842431.627930) - (903318.834241,
2502740.253993)
<br>
Layer SRS WKT:
<br>
PROJCS["unnamed",
<br>
GEOGCS["unnamed",
<br>
DATUM["NTF_Paris_Meridian",
<br>
SPHEROID["Clarke 1880 (modified for
IGN)",6378249.2,293.4660213],
<br>
TOWGS84[-168,-60,320,0,0,0,0]],
<br>
PRIMEM["non-Greenwich",2.337229166667],
<br>
UNIT["degree",0.0174532925199433]],
<br>
PROJECTION["Lambert_Conformal_Conic_2SP"],
<br>
PARAMETER["standard_parallel_1",45.898918889],
<br>
PARAMETER["standard_parallel_2",47.69601444],
<br>
PARAMETER["latitude_of_origin",46.8],
<br>
PARAMETER["central_meridian",0],
<br>
PARAMETER["false_easting",600000],
<br>
PARAMETER["false_northing",2200000],
<br>
UNIT["Meter",1.0]]
<br>
toto: String (10.0)
<br>
OGRFeature(3polygons):1
<br>
toto (String) =
<br>
Style =
BRUSH(fc:#ffffff,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1p
<br>
x,c:#000000,id:"mapinfo-pen-2.ogr-pen-0")
<br>
POLYGON ((440538.58623868006 2319321.0652825623,403854.67185532011
2217735.297
<br>
1555861,491332.03755388007 2102040.1427357462,598561.43249788007
2135902.1598812
<br>
821,522372.3575743601 2214913.5332208662,553412.67759484006
2257241.1254801941,6
<br>
18314.56379260006 2322142.8292172821,544946.73502588004
2432194.4557676823,47157
<br>
8.90625916008 2420907.400028802,440538.58623868006 2319321.0652825623))
<br>
<br>
OGRFeature(3polygons):2
<br>
toto (String) =
<br>
Style =
BRUSH(fc:#ffffff,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1p
<br>
x,c:#000000,id:"mapinfo-pen-2.ogr-pen-0")
<br>
POLYGON ((722722.71257980005 2350361.6018030099,719900.36437372002
2197982.666
<br>
3029143,832773.35368060006 2195160.619058562,894852.89167228003
2291102.85931609
<br>
8,818664.91879804002 2384223.3356389143,674751.60947068012
2502740.2539934739,61
<br>
2670.96942972008 2437837.983637122,635245.34688124002
2392688.6274430742,643711.
<br>
28945020004 2308034.009543682,680395.20383356011
2333430.4515754259,722722.71257
<br>
980005 2350361.6018030099))
<br>
<br>
OGRFeature(3polygons):3
<br>
toto (String) =
<br>
Style =
BRUSH(fc:#ffffff,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1p
<br>
x,c:#000000,id:"mapinfo-pen-2.ogr-pen-0")
<br>
POLYGON ((688860.04435324005 1977879.4132021139,508262.82064252009
1944017.396
<br>
056578,522372.3575743601 1856540.7309128339,598561.43249788007
1842431.627929602
<br>
1,750940.6843942001 1879115.409009858,894852.89167228003
1935552.104252418,90331
<br>
8.83424124005 2056890.786541698,813021.32443516003
2076643.7007040021,807377.730
<br>
07228004 1983523.2243811861,714256.77001084003
2059712.8337860501,575987.0550463
<br>
6012 2056890.786541698,567521.11247740011
2014563.4775920021,688860.04435324005
<br>
1977879.4132021139))
<br>
</div>
</body>
</html>