Dear Ari and Frank:<br>Thanks very much for helping figure out the problem. <br>Yes, I have checked. I am using Xerces 2.7+ GDAL 1.6 win32.<br>&nbsp;but I download the lastest one from <a href="http://download.osgeo.org/gdal/win32/1.6/gdalwin32exe160.zip">http://download.osgeo.org/gdal/win32/1.6/gdalwin32exe160.zip</a><br>
It is would be nice to replace Xerces 2.7 with 3.0 in that packages. I don&#39;t know whether possbile just replace dll files.<br>or do I need to install Visual studio to compile it by myself?<br>or some people want to share their Xerces 3.0 +GDAL 1.6<br>
or I can reinstall GDAL 1.5 + Xerces 2.7<br><br>Could you give me some suggestions?<br>Thanks in advance<br><br>All the best <br><br>Xiaoyu<br><br><br><div class="gmail_quote">On Thu, Dec 18, 2008 at 10:05 PM, Ari Jolma <span dir="ltr">&lt;<a href="mailto:ari.jolma@tkk.fi">ari.jolma@tkk.fi</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Frank Warmerdam kirjoitti:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Ari Jolma wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Frank Warmerdam kirjoitti:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Xiaoyu Guan wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The GML which i used is located at <a href="http://www.openlayers.org/dev/examples/gml/multipolygon.xml" target="_blank">http://www.openlayers.org/dev/examples/gml/multipolygon.xml</a><br>
but the polygon.shp file does not contain the first feature&#39;s and the third feature&#39;s attribute<br>
</blockquote></blockquote></blockquote></div>
Interesting. On my 64bit ubuntu system I can access this file without<div class="Ih2E3d"><br>
problems back as far as 1.5 branch. &nbsp;I&#39;d suggest filing a ticket once<br>
you narrow things down. &nbsp;Items to keep an eye on include the Xerces<br>
version. &nbsp;I appear to be building against Xerces 2.7.0.<br>
</div></blockquote>
<br>
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&#39;m using Xerces 3.0 in Windows with MinGW (couldn&#39;t compile Xerces 2.7 if I remember correctly). The ogrinfo output is now:<br>

<br>
OGRFeature(multipolygon):1<br>
&nbsp;ogc_fid (Integer) = 1<br>
&nbsp;name (String) = My first Multipolygon<br>
&nbsp;id (Integer) = 0<div class="Ih2E3d"><br>
&nbsp;MULTIPOLYGON (((1.313216 46.69077,1.000968 46.861086999999998,0.887424 47.0597<br>
9,1.142899 47.244300000000003,1.355795 47.244300000000003,1.554498 47.0172110000<br>
00003,1.710622 47.05979,1.767394 46.747542000000003,1.313216 46.69077,1.313216 4<br>
6.69077)),((0.7313 46.605612,-0.19125 46.704962999999999,-0.19125 46.84689399999<br>
9999,0.17777 46.988824,0.447438 46.960438000000003,0.589369 46.804315000000003,0<br>
.688721 46.832701,0.7313 46.605612,0.7313 46.605612)),((-1.610557 46.73334899999<br>
9997,-1.184765 46.704962999999999,-1.198958 46.704962999999999,-0.943483 46.6198<br>
04999999999,-0.915096 46.818508,-0.659621 46.775928,-0.688007 47.017211000000003<br>
,-0.943483 47.003017999999997,-1.127992 47.088175999999997,-1.397661 47.10236900<br>
0000003,-1.62475 47.073982999999998,-1.738295 46.917859,-1.610557 46.73334899999<br>
9997)))<br>
<br>
OGRFeature(multipolygon):2<br>
&nbsp;ogc_fid (Integer) = 2<br>
&nbsp;name (String) = My second Multipolygon<br>
&nbsp;id (Integer) = 0<br>
&nbsp;POLYGON ((2.959612 46.392716,2.789295 46.775928,3.172508 46.903666,3.498949 46<br>
.903666,3.498949 46.662384000000003,3.754424 46.563032,2.959612 46.392716))<br>
<br>
OGRFeature(multipolygon):3<br></div>
&nbsp;ogc_fid (Integer) = 3<br>
&nbsp;name (String) = My third Multipolygon<br>
&nbsp;id (Integer) = 0<div class="Ih2E3d"><br>
&nbsp;MULTIPOLYGON (((2.292538 46.804315000000003,2.207379 47.017211000000003,2.3918<br>
89 47.045597,2.562206 46.832701,2.292538 46.804315000000003)),((2.789295 46.3075<br>
57000000003,2.789295 46.307557000000003,2.803488 46.506259999999997,2.618978 46.<br>
676577000000002,2.34931 46.633997999999998,2.448661 46.392716,2.789295 46.307557<br>
000000003)))<br>
<br></div>
thus it seems that with Xerces 3.0 the latest from trunk is needed<div><div></div><div class="Wj3C7c"><br>
<br>
Ari<br>
<br>
<br>
-- <br>
Prof. Ari Jolma<br>
Environmental Management Information Technology<br>
Teknillinen Korkeakoulu / Helsinki University of Technology<br>
tel: +358 9 4511 address: POBox 5300, 02015 TKK, Finland<br>
Email: ari.jolma at <a href="http://tkk.fi" target="_blank">tkk.fi</a> URL: <a href="http://geoinformatics.tkk.fi" target="_blank">http://geoinformatics.tkk.fi</a><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Xiaoyu Guan (Sam)<br><a href="http://guanxiaoyu.net">http://guanxiaoyu.net</a><br><br>