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>=7 PRIM<Integer>=1 GRUP<Integer>=2 OBJL<Integer>=9 RVER<Integer>=1 AGEN<Integer>=550 FIDN<Integer>=2738 LNAM<String>=022608917DEF0AB2 LNAM_REFS<StringList>=<1: 022608917DEF0AB2> LNAME_RIND<IntegerList>=<1:2> BCNSHP <Integer>=<NULL> CATSPM<String>=27 COLOUR<String>= COLPAT<String>=<NULL> CONDTN<Integer>=<NULL> CONRAD<Integer>=<NULL> CONVIS<Integer>=<NULL> DATEND<Integer>=<NULL> DATSTA<Integer>=<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>=7 PRIM<Integer>=1 GRUP<Integer>=2 OBJL<Integer>=9 RVER<Integer>=1 AGEN<Integer>=550 FIDN<Integer>=2738 LNAM<String>=022608917DEF0AB2 LNAM_REFS<StringList>=<1: 022608917DEF0AB2> LNAME_RIND<IntegerList>=<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’t get attributes' fields either. Thanks for your care about my problem and thanks in advance! Best Regards, Randy -----邮件原件----- 发件人: Mateusz Loskot [mailto:mate...@loskot.net] 发送时间: 2009年10月11日 20:43 收件人: Randy 抄送: GDAL/OGR mailing list 主题: [?? Probable Spam] Re: [gdal-dev] different result of ogrinfo between GDAL/OGR and FWTools Randy wrote: > Hi list, > > 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, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev