=?gb2312?B?tPC4tDogUmU6IFtnZGFsLWRldl0gZGlmZmVyZW50IHJlc3VsdCBvZg==?= =?gb2312?B?IG9ncmluZm8gYmV0d2VlbiBHREFML09HUiBhbmQgRldUb29scw==?=

Randy randyqiuxy at hotmail.com
Sun Oct 11 09:53:48 EDT 2009


Mateusz,
Thank you and Jukka!
We know there is a ogrinfo application in GDAL/OGR after building GDAL =
from
source on windows and also the FWTools has one too.
When I use ogrinfo of FWTools by command line"ogrinfo -ro -al -q =
mys_57file.
000 |more", what I got was as follows(just some part of it):

Layer name: BCNSPP
OGRFeature<BCNSPP>:6
RCID <Integer>=3D7
PRIM<Integer>=3D1
GRUP<Integer>=3D2
OBJL<Integer>=3D9
RVER<Integer>=3D1
AGEN<Integer>=3D550
FIDN<Integer>=3D2738
LNAM<String>=3D022608917DEF0AB2
LNAM_REFS<StringList>=3D<1: 022608917DEF0AB2>
LNAME_RIND<IntegerList>=3D<1:2>
BCNSHP <Integer>=3D<NULL>
CATSPM<String>=3D27
COLOUR<String>=3D
COLPAT<String>=3D<NULL>
CONDTN<Integer>=3D<NULL>
CONRAD<Integer>=3D<NULL>
CONVIS<Integer>=3D<NULL>
DATEND<Integer>=3D<NULL>
DATSTA<Integer>=3D<NULL>
....
POINT<-177.639010000000001 68.3285500000007>

Then I use the ogrinfo from GDAL/OGR, the following was what I could =
got:
Layer name: Point
OGRFeature<Point>:6
RCID <Integer>=3D7
PRIM<Integer>=3D1
GRUP<Integer>=3D2
OBJL<Integer>=3D9
RVER<Integer>=3D1
AGEN<Integer>=3D550
FIDN<Integer>=3D2738
LNAM<String>=3D022608917DEF0AB2
LNAM_REFS<StringList>=3D<1: 022608917DEF0AB2>
LNAME_RIND<IntegerList>=3D<1:2>
POINT<-177.639010000000001 68.3285500000007>

Yes, maybe you've see the last one lost a feature's attribute subfield =
like
CATSPM. And when I retrieve feature's fields in my own application, I
couldn=A1=AFt get attributes' fields either.
Thanks for your care about my problem and thanks in advance!
Best Regards,
Randy
-----=D3=CA=BC=FE=D4=AD=BC=FE-----
=B7=A2=BC=FE=C8=CB: Mateusz Loskot [mailto:mateusz at loskot.net]=20
=B7=A2=CB=CD=CA=B1=BC=E4: 2009=C4=EA10=D4=C211=C8=D5 20:43
=CA=D5=BC=FE=C8=CB: Randy
=B3=AD=CB=CD: GDAL/OGR mailing list
=D6=F7=CC=E2: [?? Probable Spam] Re: [gdal-dev] different result of =
ogrinfo between
GDAL/OGR and FWTools

Randy wrote:
> Hi list,
>=20
> I find the ogrinfo which GDAL/OGR source code

Which version? There are number of versions of GDAL thus number of
versions of ogrinfo.

> produced cannot get all fields(such as attribute fields) of a
> feature(s_57), while the ogrinfo in fwtools can make it.

If you have problem with any particular command and its results,
it is almost mandatory to provide example of commands and their results
so everybody can see how the problem leaks.
Otherwise, it's not really possible to help.

> Anyone knows its reason?

No reason, unless you provide more precise information

http://catb.org/~esr/faqs/smart-questions.html#beprecise

Best regards,
--=20
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org



More information about the gdal-dev mailing list