Dear Ari and Frank: Thanks very much for helping figure out the problem. Yes, I have checked. I am using Xerces 2.7+ GDAL 1.6 win32. but I download the lastest one from http://download.osgeo.org/gdal/win32/1.6/gdalwin32exe160.zip It is would be nice to replace Xerces 2.7 with 3.0 in that packages. I don't know whether possbile just replace dll files. or do I need to install Visual studio to compile it by myself? or some people want to share their Xerces 3.0 +GDAL 1.6 or I can reinstall GDAL 1.5 + Xerces 2.7
Could you give me some suggestions? Thanks in advance All the best Xiaoyu On Thu, Dec 18, 2008 at 10:05 PM, Ari Jolma <[email protected]> wrote: > Frank Warmerdam kirjoitti: > >> Ari Jolma wrote: >> >>> Frank Warmerdam kirjoitti: >>> >>>> Xiaoyu Guan wrote: >>>> >>>>> The GML which i used is located at >>>>> http://www.openlayers.org/dev/examples/gml/multipolygon.xml >>>>> but the polygon.shp file does not contain the first feature's and the >>>>> third feature's attribute >>>>> >>>> Interesting. On my 64bit ubuntu system I can access this file without >> problems back as far as 1.5 branch. I'd suggest filing a ticket once >> you narrow things down. Items to keep an eye on include the Xerces >> version. I appear to be building against Xerces 2.7.0. >> > > It works when updated to the latest in trunk. I reported wrongly the > revision I had, I did not have the latest (for example 12/13/08) changes to > gml*.cpp. I'm using Xerces 3.0 in Windows with MinGW (couldn't compile > Xerces 2.7 if I remember correctly). The ogrinfo output is now: > > OGRFeature(multipolygon):1 > ogc_fid (Integer) = 1 > name (String) = My first Multipolygon > id (Integer) = 0 > MULTIPOLYGON (((1.313216 46.69077,1.000968 46.861086999999998,0.887424 > 47.0597 > 9,1.142899 47.244300000000003,1.355795 47.244300000000003,1.554498 > 47.0172110000 > 00003,1.710622 47.05979,1.767394 46.747542000000003,1.313216 > 46.69077,1.313216 4 > 6.69077)),((0.7313 46.605612,-0.19125 46.704962999999999,-0.19125 > 46.84689399999 > 9999,0.17777 46.988824,0.447438 46.960438000000003,0.589369 > 46.804315000000003,0 > .688721 46.832701,0.7313 46.605612,0.7313 46.605612)),((-1.610557 > 46.73334899999 > 9997,-1.184765 46.704962999999999,-1.198958 46.704962999999999,-0.943483 > 46.6198 > 04999999999,-0.915096 46.818508,-0.659621 46.775928,-0.688007 > 47.017211000000003 > ,-0.943483 47.003017999999997,-1.127992 47.088175999999997,-1.397661 > 47.10236900 > 0000003,-1.62475 47.073982999999998,-1.738295 46.917859,-1.610557 > 46.73334899999 > 9997))) > > OGRFeature(multipolygon):2 > ogc_fid (Integer) = 2 > name (String) = My second Multipolygon > id (Integer) = 0 > POLYGON ((2.959612 46.392716,2.789295 46.775928,3.172508 > 46.903666,3.498949 46 > .903666,3.498949 46.662384000000003,3.754424 46.563032,2.959612 46.392716)) > > OGRFeature(multipolygon):3 > ogc_fid (Integer) = 3 > name (String) = My third Multipolygon > id (Integer) = 0 > MULTIPOLYGON (((2.292538 46.804315000000003,2.207379 > 47.017211000000003,2.3918 > 89 47.045597,2.562206 46.832701,2.292538 46.804315000000003)),((2.789295 > 46.3075 > 57000000003,2.789295 46.307557000000003,2.803488 > 46.506259999999997,2.618978 46. > 676577000000002,2.34931 46.633997999999998,2.448661 46.392716,2.789295 > 46.307557 > 000000003))) > > thus it seems that with Xerces 3.0 the latest from trunk is needed > > > Ari > > > -- > Prof. Ari Jolma > Environmental Management Information Technology > Teknillinen Korkeakoulu / Helsinki University of Technology > tel: +358 9 4511 address: POBox 5300, 02015 TKK, Finland > Email: ari.jolma at tkk.fi URL: http://geoinformatics.tkk.fi > > > -- Xiaoyu Guan (Sam) http://guanxiaoyu.net
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
